| /llvm-project/lldb/unittests/DataFormatter/ |
| H A D | FormattersContainerTest.cpp | 35 TypeMatcher matcher(ConstString(prefix + "Name")); in TEST() 56 TypeMatcher matcher(RegularExpression("^a[a-z]c$")); in TEST() 77 TypeMatcher matcher(RegularExpression("a[a-z]c")); in TEST() 97 EXPECT_EQ(TypeMatcher(ConstString("aa")).GetMatchString(), "aa"); in TEST() 98 EXPECT_EQ(TypeMatcher(ConstString("")).GetMatchString(), ""); in TEST() 99 EXPECT_EQ(TypeMatcher(ConstString("[a]")).GetMatchString(), "[a]"); in TEST() 104 EXPECT_EQ(TypeMatcher(RegularExpression("aa")).GetMatchString(), "aa"); in TEST() 105 EXPECT_EQ(TypeMatcher(RegularExpression("")).GetMatchString(), ""); in TEST() 106 EXPECT_EQ(TypeMatcher(RegularExpression("[a]")).GetMatchString(), "[a]"); in TEST() 111 TypeMatcher empty_str(ConstString("")); in TEST() [all …]
|
| /llvm-project/lldb/include/lldb/DataFormatters/ |
| H A D | FormattersContainer.h | 41 class TypeMatcher { 77 TypeMatcher() = delete; 79 TypeMatcher(ConstString type_name) in TypeMatcher() function 82 TypeMatcher(RegularExpression regex) in TypeMatcher() function 87 TypeMatcher(lldb::TypeNameSpecifierImplSP type_specifier) in TypeMatcher() function 119 /// Returns the underlying match string for this TypeMatcher. 128 /// Returns true if this TypeMatcher and the given one were most created by 130 /// The main purpose of this function is to find existing TypeMatcher 136 bool CreatedBySameMatchString(TypeMatcher other) const { in CreatedBySameMatchString() 144 typedef std::vector<std::pair<TypeMatcher, ValueS [all...] |
| H A D | TypeCategory.h | 58 m_subcontainers[type_sp->GetMatchType()]->Add(TypeMatcher(type_sp), in Add() 65 TypeMatcher(type_sp)); in Delete() 149 void ForEach(std::function<bool(const TypeMatcher &, in ForEach() argument 188 std::function<bool(const TypeMatcher &, const std::shared_ptr<T> &)>
|
| H A D | DataVisualization.h | 72 static void ForEach(std::function<bool(const TypeMatcher &,
|
| /llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | ForwardingReferenceOverloadCheck.cpp | 54 clang::ast_matchers::internal::Matcher<QualType>, TypeMatcher) { in AST_MATCHER_P() 56 TypeMatcher.matches( in AST_MATCHER_P() 55 AST_MATCHER_P(TemplateTypeParmDecl,hasDefaultArgument,clang::ast_matchers::internal::Matcher<QualType>,TypeMatcher) AST_MATCHER_P() argument
|
| /llvm-project/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchersMacros.h | 368 template <typename T> struct TypeMatcher##MatcherName##Getter { \ 375 ::clang::ast_matchers::internal::TypeMatcher##MatcherName##Getter, \ 382 ::clang::ast_matchers::internal::TypeMatcher##MatcherName##Getter, \ 395 template <typename T> struct TypeMatcher##MatcherName##Getter { \ 401 ::clang::ast_matchers::internal::TypeMatcher##MatcherName##Getter, \
|
| H A D | ASTMatchFinder.h | 157 void addMatcher(const TypeMatcher &NodeMatch, 215 std::vector<std::pair<TypeMatcher, MatchCallback *>> Type;
|
| H A D | ASTMatchers.h | 145 using TypeMatcher = internal::Matcher<QualType>; variable 161 /// to an \c internal::Matcher<> type such as \c TypeMatcher.
|
| /llvm-project/clang-tools-extra/clang-tidy/utils/ |
| H A D | Matchers.h | 41 AST_MATCHER_FUNCTION(ast_matchers::TypeMatcher, isReferenceToConst) { in AST_MATCHER_FUNCTION() argument 47 AST_MATCHER_FUNCTION(ast_matchers::TypeMatcher, isPointerToConst) { in AST_MATCHER_FUNCTION() argument
|
| /llvm-project/clang-tools-extra/clang-tidy/modernize/ |
| H A D | PassByValueCheck.cpp | 47 static TypeMatcher notTemplateSpecConstRefType() { in notTemplateSpecConstRefType() 53 static TypeMatcher nonConstValueType() { in nonConstValueType()
|
| H A D | UseAutoCheck.cpp | 174 /// Returns a TypeMatcher that matches typedefs for standard iterators 176 TypeMatcher typedefIterator() { in typedefIterator() 180 /// Returns a TypeMatcher that matches records named for standard 182 TypeMatcher nestedIterator() { in nestedIterator() 186 /// Returns a TypeMatcher that matches types declared with using 188 TypeMatcher iteratorFromUsingDeclaration() { in iteratorFromUsingDeclaration()
|
| H A D | UseEmplaceCheck.cpp | 89 const ast_matchers::internal::Matcher<QualType> &TypeMatcher) { in hasTypeOrPointeeType() argument 90 return anyOf(hasType(TypeMatcher), in hasTypeOrPointeeType() 91 hasType(pointerType(pointee(TypeMatcher)))); in hasTypeOrPointeeType()
|
| H A D | LoopConvertCheck.cpp | 285 TypeMatcher RecordWithBeginEnd = qualType(anyOf( in makePseudoArrayLoopMatcher()
|
| /llvm-project/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersTraversalTest.cpp | 149 TEST(TypeMatcher, MatchesClassType) { in TEST() argument 150 TypeMatcher TypeA = hasDeclaration(recordDecl(hasName("A"))); in TEST() 155 TypeMatcher TypeDerivedFromA = in TEST() 162 TypeMatcher TypeAHasClassB = hasDeclaration( in TEST() 172 TEST(TypeMatcher, MatchesDeclTypes) { in TEST() argument 317 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST() 329 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST() 340 TypeMatcher ClassX = hasDeclaration(recordDecl(hasName("X"))); in TEST() 1025 TypeMatcher IntType = qualType(isInteger()).bind("type"); in TEST() 1038 TypeMatcher IntTyp in TEST() [all...] |
| H A D | ASTMatchersNarrowingTest.cpp | 1302 TypeMatcher TypeAHasClassB = hasDeclaration( in TEST_P() 2793 const TypeMatcher AnyType = anything(); in TEST_P() 2806 expr(hasType(TypeMatcher(anyOf(TypeMatcher(hasDeclaration(anything())), in TEST_P()
|
| /llvm-project/lldb/source/DataFormatters/ |
| H A D | DataVisualization.cpp | 189 std::function<bool(const TypeMatcher &, const lldb::TypeSummaryImplSP &)> in ForEach() argument
|
| /llvm-project/clang/unittests/Tooling/ |
| H A D | TransformerTest.cpp | 69 isOrPointsTo(const clang::ast_matchers::DeclarationMatcher &TypeMatcher) { in isOrPointsTo() argument 70 return anyOf(hasDeclaration(TypeMatcher), pointsTo(TypeMatcher)); in isOrPointsTo()
|
| /llvm-project/lldb/source/Commands/ |
| H A D | CommandObjectType.cpp | 1088 &any_printed](const TypeMatcher &type_matcher, in DoExecute() 1646 [&result](const TypeMatcher &type_matcher, in FormatterSpecificList()
|
| /llvm-project/clang/lib/ASTMatchers/ |
| H A D | ASTMatchFinder.cpp | 1598 void MatchFinder::addMatcher(const TypeMatcher &NodeMatch, in addMatcher()
|