Home
last modified time | relevance | path

Searched refs:TypeMatcher (Results 1 – 25 of 26) sorted by relevance

12

/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/jsontype/
DBasicPolymorphicTypeValidator.java40 public abstract static class TypeMatcher { // note: public since 2.11 class in BasicPolymorphicTypeValidator
77 protected List<TypeMatcher> _baseTypeMatchers;
87 protected List<TypeMatcher> _subTypeClassMatchers;
105 return _appendBaseMatcher(new TypeMatcher() { in allowIfBaseType()
131 return _appendBaseMatcher(new TypeMatcher() { in allowIfBaseType()
151 return _appendBaseMatcher(new TypeMatcher() {
170 public Builder allowIfBaseType(final TypeMatcher matcher) {
208 return _appendSubClassMatcher(new TypeMatcher() {
272 public Builder allowIfSubType(final TypeMatcher matcher) {
291 return _appendSubClassMatcher(new TypeMatcher() {
[all …]
/external/llvm-project/lldb/unittests/DataFormatter/
DFormattersContainerTest.cpp27 TypeMatcher matcher(ConstString(prefix + "Name")); in TEST()
48 TypeMatcher matcher(RegularExpression("^a[a-z]c$")); in TEST()
69 TypeMatcher matcher(RegularExpression("a[a-z]c")); in TEST()
89 EXPECT_EQ(TypeMatcher(ConstString("aa")).GetMatchString(), "aa"); in TEST()
90 EXPECT_EQ(TypeMatcher(ConstString("")).GetMatchString(), ""); in TEST()
91 EXPECT_EQ(TypeMatcher(ConstString("[a]")).GetMatchString(), "[a]"); in TEST()
96 EXPECT_EQ(TypeMatcher(RegularExpression("aa")).GetMatchString(), "aa"); in TEST()
97 EXPECT_EQ(TypeMatcher(RegularExpression("")).GetMatchString(), ""); in TEST()
98 EXPECT_EQ(TypeMatcher(RegularExpression("[a]")).GetMatchString(), "[a]"); in TEST()
103 TypeMatcher empty_str(ConstString("")); in TEST()
[all …]
/external/llvm-project/lldb/include/lldb/DataFormatters/
DFormattersContainer.h41 class TypeMatcher {
71 TypeMatcher() = delete;
73 TypeMatcher(ConstString type_name) in TypeMatcher() function
76 TypeMatcher(RegularExpression regex) in TypeMatcher() function
102 bool CreatedBySameMatchString(TypeMatcher other) const { in CreatedBySameMatchString()
110 typedef std::vector<std::pair<TypeMatcher, ValueSP>> MapType;
111 typedef std::function<bool(const TypeMatcher &, const ValueSP &)>
120 void Add(TypeMatcher matcher, const ValueSP &entry) { in Add()
133 bool Delete(TypeMatcher matcher) { in Delete()
156 bool GetExact(TypeMatcher matcher, ValueSP &entry) { in GetExact()
[all …]
DDataVisualization.h72 static void ForEach(std::function<bool(const TypeMatcher &,
DTypeCategory.h31 typedef TypeMatcher ExactMatchMap;
32 typedef TypeMatcher RegexMatchMap;
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/vld/
DCustomPTVMatchersTest.java51 .allowIfBaseType(new BasicPolymorphicTypeValidator.TypeMatcher() { in testCustomBaseMatchers()
83 .allowIfSubType(new BasicPolymorphicTypeValidator.TypeMatcher() { in testCustomSubtypeMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DForwardingReferenceOverloadCheck.cpp56 clang::ast_matchers::internal::Matcher<QualType>, TypeMatcher) { in AST_MATCHER_P() argument
58 TypeMatcher.matches(Node.getDefaultArgument(), Finder, Builder); in AST_MATCHER_P()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DPassByValueCheck.cpp49 static TypeMatcher notTemplateSpecConstRefType() { in notTemplateSpecConstRefType()
54 static TypeMatcher nonConstValueType() { in nonConstValueType()
DUseAutoCheck.cpp176 TypeMatcher typedefIterator() { in typedefIterator()
182 TypeMatcher nestedIterator() { in nestedIterator()
188 TypeMatcher iteratorFromUsingDeclaration() { in iteratorFromUsingDeclaration()
DLoopConvertCheck.cpp74 static const TypeMatcher AnyType() { return anything(); } in AnyType()
280 TypeMatcher RecordWithBeginEnd = qualType(anyOf( in makePseudoArrayLoopMatcher()
/external/clang/include/clang/ASTMatchers/
DASTMatchFinder.h151 void addMatcher(const TypeMatcher &NodeMatch,
205 std::vector<std::pair<TypeMatcher, MatchCallback *>> Type;
DASTMatchersMacros.h379 template <typename T> struct TypeMatcher##MatcherName##Getter { \
385 ::clang::ast_matchers::internal::TypeMatcher##MatcherName##Getter, \
DASTMatchers.h125 typedef internal::Matcher<QualType> TypeMatcher; typedef
/external/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchersMacros.h367 template <typename T> struct TypeMatcher##MatcherName##Getter { \
374 ::clang::ast_matchers::internal::TypeMatcher##MatcherName##Getter, \
381 ::clang::ast_matchers::internal::TypeMatcher##MatcherName##Getter, \
394 template <typename T> struct TypeMatcher##MatcherName##Getter { \
400 ::clang::ast_matchers::internal::TypeMatcher##MatcherName##Getter, \
DASTMatchFinder.h150 void addMatcher(const TypeMatcher &NodeMatch,
207 std::vector<std::pair<TypeMatcher, MatchCallback *>> Type;
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DMatchers.h41 AST_MATCHER_FUNCTION(ast_matchers::TypeMatcher, isReferenceToConst) { in AST_MATCHER_FUNCTION() argument
/external/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp147 TEST(TypeMatcher, MatchesClassType) { in TEST() argument
148 TypeMatcher TypeA = hasDeclaration(recordDecl(hasName("A"))); in TEST()
153 TypeMatcher TypeDerivedFromA = in TEST()
160 TypeMatcher TypeAHasClassB = hasDeclaration( in TEST()
170 TEST(TypeMatcher, MatchesDeclTypes) { in TEST() argument
245 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST()
257 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST()
1066 pointsTo(TypeMatcher(anything())))))); in TEST()
1077 pointsTo(TypeMatcher(anything())))))); in TEST()
DASTMatchersNarrowingTest.cpp555 TypeMatcher TypeAHasClassB = hasDeclaration( in TEST()
1297 const TypeMatcher AnyType = anything(); in TEST()
1310 expr(hasType(TypeMatcher( in TEST()
1312 TypeMatcher(hasDeclaration(anything())), in TEST()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp146 TEST(TypeMatcher, MatchesClassType) { in TEST() argument
147 TypeMatcher TypeA = hasDeclaration(recordDecl(hasName("A"))); in TEST()
152 TypeMatcher TypeDerivedFromA = in TEST()
159 TypeMatcher TypeAHasClassB = hasDeclaration( in TEST()
169 TEST(TypeMatcher, MatchesDeclTypes) { in TEST() argument
301 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST()
313 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST()
747 TypeMatcher IntType = qualType(isInteger()).bind("type"); in TEST()
760 TypeMatcher IntType = qualType(isInteger()).bind("type"); in TEST()
789 TypeMatcher IntType = qualType(isInteger()).bind("type"); in TEST()
[all …]
DASTMatchersNarrowingTest.cpp862 TypeMatcher TypeAHasClassB = hasDeclaration( in TEST_P()
2119 const TypeMatcher AnyType = anything(); in TEST_P()
2132 expr(hasType(TypeMatcher(anyOf(TypeMatcher(hasDeclaration(anything())), in TEST_P()
/external/llvm-project/lldb/source/DataFormatters/
DDataVisualization.cpp189 std::function<bool(const TypeMatcher &, const lldb::TypeSummaryImplSP &)> in ForEach() argument
/external/llvm-project/clang/unittests/Tooling/
DTransformerTest.cpp62 isOrPointsTo(const clang::ast_matchers::DeclarationMatcher &TypeMatcher) { in isOrPointsTo() argument
63 return anyOf(hasDeclaration(TypeMatcher), pointsTo(TypeMatcher)); in isOrPointsTo()
/external/llvm-project/lldb/source/Commands/
DCommandObjectType.cpp1105 const TypeMatcher &type_matcher, in DoExecute()
1130 const TypeMatcher &type_matcher, in DoExecute()
1725 [&result](const TypeMatcher &type_matcher, in FormatterSpecificList()
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp907 void MatchFinder::addMatcher(const TypeMatcher &NodeMatch, in addMatcher()
/external/llvm-project/clang/lib/ASTMatchers/
DASTMatchFinder.cpp1208 void MatchFinder::addMatcher(const TypeMatcher &NodeMatch, in addMatcher()

12