Home
last modified time | relevance | path

Searched refs:namedDecl (Results 1 – 25 of 62) sorted by relevance

123

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DNonCopyableObjects.cpp37 namedDecl(hasAnyName("::FILE", "FILE", "std::FILE")).bind("type_decl")); in registerMatchers()
39 hasType(namedDecl(hasAnyName("::pthread_cond_t", "::pthread_mutex_t", in registerMatchers()
45 namedDecl(anyOf(varDecl(BadFILEType), fieldDecl(BadFILEType))) in registerMatchers()
H A DUnusedUsingDeclsCheck.cpp43 auto DeclMatcher = hasDeclaration(namedDecl().bind("used")); in registerMatchers()
46 refsToTemplatedDecl(namedDecl().bind("used")))), in registerMatchers()
60 auto ThroughShadowMatcher = throughUsingDecl(namedDecl().bind("usedShadow")); in registerMatchers()
H A DDefinitionsInHeadersCheck.cpp55 Finder->addMatcher(namedDecl(DefinitionMatcher, in registerMatchers()
61 namedDecl(DefinitionMatcher, in registerMatchers()
/llvm-project-15.0.7/clang/unittests/AST/
H A DDeclPrinterTest.cpp64 return PrintedDeclMatches(Code, Args, namedDecl(hasName(DeclName)).bind("id"), in PrintedDeclCXX98Matches()
85 return PrintedDeclMatches(Code, Args, namedDecl(hasName(DeclName)).bind("id"), in PrintedDeclCXX11Matches()
1385 namedDecl(hasName("A:inRange:"), in TEST()
1386 hasDescendant(namedDecl(hasName("printThis")))).bind("id"), in TEST()
1393 namedDecl(hasName("P1")).bind("id"), in TEST()
1397 namedDecl(hasName("P2")).bind("id"), in TEST()
1405 namedDecl(hasName("P1")).bind("id"), in TEST()
1412 namedDecl(hasName("Extension")).bind("id"), in TEST()
1419 namedDecl(hasName("Extension")).bind("id"), in TEST()
1425 "int a = 0x15;", namedDecl(hasName("a")).bind("id"), "int a = 21")); in TEST()
[all …]
H A DNamedDeclPrinterTest.cpp98 namedDecl(hasName(DeclName)).bind("id"), in PrintedNamedDeclCXX98Matches()
108 namedDecl(hasName(DeclName)).bind("id"), in PrintedWrittenNamedDeclCXX11Matches()
126 return PrintedDeclMatches(Code, Args, namedDecl(hasName(DeclName)).bind("id"), in PrintedNestedNameSpecifierMatches()
230 namedDecl(hasName("data")).bind("id"), in TEST()
H A DASTImporterObjCTest.cpp41 FromTU, namedDecl(hasName("method"))); in TEST_P()
62 FromTU, namedDecl(hasName("DupProp"))); in TEST_P()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DPreferIsaOrDynCastInConditionalsCheck.cpp30 anyOf(callee(namedDecl(hasName("cast"))), in registerMatchers()
31 callee(namedDecl(hasName("dyn_cast")).bind("dyn_cast"))))) in registerMatchers()
39 callee(namedDecl(hasName("cast"))))) in registerMatchers()
47 allOf(callee(namedDecl(hasAnyName("isa", "cast", "cast_or_null", in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DNonTrivialTypesLibcMemoryCallsCheck.cpp90 callExpr(callee(namedDecl(hasAnyName( in registerMatchers()
96 callExpr(callee(namedDecl(hasAnyName( in registerMatchers()
102 callExpr(callee(namedDecl(hasAnyName( in registerMatchers()
H A DLimitedRandomnessCheck.cpp20 Finder->addMatcher(callExpr(callee(functionDecl(namedDecl(hasName("::rand")), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseAutoCheck.cpp170 namedDecl(hasStdIteratorName()), in standardIterator()
189 auto HasIteratorDecl = hasDeclaration(namedDecl(hasStdIteratorName())); in iteratorFromUsingDeclaration()
195 namedDecl(hasStdContainerName(), isInStdNamespace()))))), in iteratorFromUsingDeclaration()
H A DShrinkToFitCheck.cpp39 hasType(hasCanonicalType(hasDeclaration(namedDecl(hasAnyName( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DRedundantStringInitCheck.cpp102 namedDecl(varDecl(StringType, hasInitializer(EmptyStringInit)) in registerMatchers()
108 namedDecl(fieldDecl(StringType, hasInClassInitializer(EmptyStringInit)) in registerMatchers()
H A DStaticDefinitionInAnonymousNamespaceCheck.cpp27 namedDecl(anyOf(functionDecl(isDefinition(), isStaticStorageClass()), in registerMatchers()
H A DSimplifySubscriptExprCheck.cpp41 callee(namedDecl(hasName("data")))) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DUnnecessaryCopyInitialization.cpp91 hasCanonicalType(recordType(hasDeclaration(namedDecl( in AST_MATCHER_FUNCTION_P()
237 unless(hasDeclaration(namedDecl( in registerMatchers()
239 unless(hasDeclaration(namedDecl( in registerMatchers()
H A DNoAutomaticMoveCheck.cpp33 unless(hasDeclaration(namedDecl( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/android/
H A DCloexecAccept4Check.cpp23 auto SockLenPointerType = hasType(pointsTo(namedDecl(hasName("socklen_t")))); in registerMatchers()
H A DCloexecCreatCheck.cpp21 auto MODETType = hasType(namedDecl(hasName("mode_t"))); in registerMatchers()
H A DCloexecAcceptCheck.cpp22 auto SockLenPointerType = hasType(pointsTo(namedDecl(hasName("socklen_t")))); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/portability/
H A DStdAllocatorConstCheck.cpp49 hasDeclaration(namedDecl(hasContainerName))))))) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-move/
H A DMove.cpp506 auto ForwardClassDecls = namedDecl( in registerMatchers()
520 auto AllDeclsInHeader = namedDecl( in registerMatchers()
534 Finder->addMatcher(namedDecl(ForwardClassDecls, InOldHeader).bind("fwd_decl"), in registerMatchers()
545 Finder->addMatcher(namedDecl(anyOf(usingDecl(IsOldCCTopLevelDecl), in registerMatchers()
586 namedDecl(notInMacro(), anyOf(functionDecl(IsOldCCHelper), in registerMatchers()
592 namedDecl(anyOf(HelperFuncOrVar, HelperClasses)).bind("helper_decls"), in registerMatchers()
656 Finder->addMatcher(namedDecl(anyOf(typedefDecl().bind("typedef"), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/
H A DFindAllSymbols.cpp197 auto Types = namedDecl(anyOf(CRecords, CXXRecords, Enums)); in registerMatchers()
198 auto Decls = namedDecl(anyOf(CRecords, CXXRecords, Enums, Typedefs, Vars, in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DOwningMemoryCheck.cpp96 namedDecl( in registerMatchers()
128 traverse(TK_AsIs, namedDecl(varDecl(allOf(hasInitializer(CreatesOwner), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/
H A DExceptionBaseclassCheck.cpp36 eachOf(has(expr(hasType(namedDecl().bind("decl")))), anything())) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/tool-template/
H A DToolTemplate.cpp110 namedDecl(cxxRecordDecl(), isExpansionInMainFile()).bind("decl"), in main()

123