|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 2552 hasAnyName;
References
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp 241 REGISTER_MATCHER(hasAnyName);
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp 331 hasAnyName("::std::move", "::std::forward"))),
392 unless(callee(namedDecl(hasAnyName(
tools/clang/lib/StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp 105 return callee(functionDecl(hasAnyName(toRefs(FunctionNames))));
tools/clang/tools/extra/clang-tidy/abseil/DurationRewriter.cpp 77 match(callExpr(callee(functionDecl(hasAnyName(
tools/clang/tools/extra/clang-tidy/abseil/DurationRewriter.h 103 hasAnyName("::absl::ToDoubleHours", "::absl::ToDoubleMinutes",
114 return functionDecl(hasAnyName("::absl::Nanoseconds", "::absl::Microseconds",
122 return functionDecl(hasAnyName(
tools/clang/tools/extra/clang-tidy/abseil/DurationUnnecessaryConversionCheck.cpp 40 callee(functionDecl(hasAnyName(FloatConversion, IntegerConversion))),
tools/clang/tools/extra/clang-tidy/abseil/RedundantStrcatCallsCheck.cpp 37 callee(functionDecl(hasAnyName("::absl::StrCat", "::absl::StrAppend"))));
tools/clang/tools/extra/clang-tidy/abseil/StringFindStartswithCheck.cpp 36 auto StringClassMatcher = cxxRecordDecl(hasAnyName(SmallVector<StringRef, 4>(
tools/clang/tools/extra/clang-tidy/abseil/UpgradeDurationConversionsCheck.cpp 43 hasAnyName("operator*=", "operator/="))))
55 hasAnyName("operator*=", "operator/="))),
67 hasAnyName("::absl::operator*", "::absl::operator/"))),
tools/clang/tools/extra/clang-tidy/android/CloexecOpenCheck.cpp 23 hasAnyName("open", "open64"),
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp 57 hasAnyName("NewCallback", "NewPermanentCallback")))))
tools/clang/tools/extra/clang-tidy/bugprone/DanglingHandleCheck.cpp 48 return hasAnyName("::std::deque", "::std::forward_list", "::std::list",
53 return hasAnyName("::std::set", "::std::multiset", "::std::unordered_set",
58 return hasAnyName("::std::map", "::std::multimap", "::std::unordered_map",
76 callee(functionDecl(hasAnyName("assign", "push_back", "resize"))),
97 IsAHandle(cxxRecordDecl(hasAnyName(std::vector<StringRef>(
tools/clang/tools/extra/clang-tidy/bugprone/FoldInitTypeCheck.cpp 43 hasAnyName("::std::accumulate", "::std::reduce"),
tools/clang/tools/extra/clang-tidy/bugprone/InaccurateEraseCheck.cpp 28 callee(functionDecl(hasAnyName("remove", "remove_if", "unique"))),
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp 557 hasAnyName("::std::vector", "::std::list", "::std::deque"))))))))));
579 callExpr(callee(functionDecl(hasAnyName("::strlen", "::wcslen"))))
586 has(memberExpr(member(hasAnyName("size", "length"))))))
624 hasAnyName("::alloca", "::calloc", "malloc", "realloc"))),
728 hasAnyName(CharHandlerFuncName, WcharHandlerFuncName))),
tools/clang/tools/extra/clang-tidy/bugprone/StringIntegerAssignmentCheck.cpp 37 hasAnyName("tolower", "std::tolower", "toupper",
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousStringCompareCheck.cpp 100 functionDecl(hasAnyName(std::vector<StringRef>(FunctionNames.begin(),
tools/clang/tools/extra/clang-tidy/bugprone/UndefinedMemoryManipulationCheck.cpp 33 Finder->addMatcher(callExpr(callee(functionDecl(hasAnyName(
42 callExpr(callee(functionDecl(hasAnyName("::memcpy", "::memmove"))),
tools/clang/tools/extra/clang-tidy/bugprone/UnhandledSelfAssignmentCheck.cpp 81 hasAnyName("::std::shared_ptr", "::std::unique_ptr",
tools/clang/tools/extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp 58 isInstantiatedFrom(hasAnyName(
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp 275 recordType(hasDeclaration(cxxRecordDecl(hasAnyName(
283 recordType(hasDeclaration(cxxRecordDecl(hasAnyName(
306 callee(cxxMethodDecl(hasAnyName("clear", "assign")))),
tools/clang/tools/extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp 34 auto RandomGeneratorEngineDecl = cxxRecordDecl(hasAnyName(
73 callExpr(callee(functionDecl(hasAnyName("::srand", "::std::srand"))))
tools/clang/tools/extra/clang-tidy/cert/SetLongJmpCheck.cpp 67 callExpr(callee(functionDecl(hasAnyName("setjmp", "longjmp"))))
tools/clang/tools/extra/clang-tidy/cert/StrToNumCheck.cpp 28 functionDecl(hasAnyName("::atoi", "::atof", "::atol", "::atoll"))
30 functionDecl(hasAnyName("::scanf", "::sscanf", "::fscanf",
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp 36 hasAnyName("::ceil", "::std::ceil", "::floor", "::std::floor")))));
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NoMallocCheck.cpp 29 return hasAnyName(std::vector<StringRef>(NameList.begin(), NameList.end()));
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp 30 return hasAnyName(std::vector<StringRef>(NameList.begin(), NameList.end()));
tools/clang/tools/extra/clang-tidy/darwin/AvoidSpinlockCheck.cpp 21 callExpr(callee((functionDecl(hasAnyName(
tools/clang/tools/extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp 146 hasAnyName("SetUpTestCase", "TearDownTestCase"),
160 hasAnyName("OnTestCaseStart", "OnTestCaseEnd"),
167 hasAnyName("current_test_case", "successful_test_case_count",
tools/clang/tools/extra/clang-tidy/hicpp/SignedBitwiseCheck.cpp 29 hasAnyName("::std::locale::category", "::std::ctype_base::mask",
tools/clang/tools/extra/clang-tidy/linuxkernel/MustCheckErrsCheck.cpp 21 functionDecl(hasAnyName("ERR_PTR", "PTR_ERR", "IS_ERR", "IS_ERR_OR_NULL",
tools/clang/tools/extra/clang-tidy/misc/NonCopyableObjects.cpp 37 namedDecl(hasAnyName("::FILE", "FILE", "std::FILE")).bind("type_decl"));
39 hasType(namedDecl(hasAnyName("::pthread_cond_t", "::pthread_mutex_t",
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedIosBaseAliasesCheck.cpp 37 auto IoStateDecl = typedefDecl(hasAnyName(DeprecatedTypes)).bind("TypeDecl");
tools/clang/tools/extra/clang-tidy/modernize/ShrinkToFitCheck.cpp 46 hasAnyName("std::basic_string", "std::deque", "std::vector")))))),
tools/clang/tools/extra/clang-tidy/modernize/UseEmplaceCheck.cpp 56 on(hasType(cxxRecordDecl(hasAnyName(SmallVector<StringRef, 5>(
63 auto IsCtorOfSmartPtr = hasDeclaration(cxxConstructorDecl(ofClass(hasAnyName(
100 to(functionDecl(hasAnyName(SmallVector<StringRef, 2>(
108 hasDeclaration(cxxConstructorDecl(ofClass(hasAnyName(
tools/clang/tools/extra/clang-tidy/modernize/UseNodiscardCheck.cpp 95 cxxRecordDecl(hasAnyName("::std::function", "::boost::function"));
tools/clang/tools/extra/clang-tidy/modernize/UseTransparentFunctorsCheck.cpp 35 hasAnyName("::std::plus", "::std::minus", "::std::multiplies",
tools/clang/tools/extra/clang-tidy/objc/ForbiddenSubclassingCheck.cpp 60 hasAnyName(
tools/clang/tools/extra/clang-tidy/performance/FasterStringFindCheck.cpp 68 hasAnyName("find", "rfind", "find_first_of", "find_first_not_of",
78 recordDecl(hasAnyName(SmallVector<StringRef, 4>(
tools/clang/tools/extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp 36 hasAnyName("::std::find", "::std::count", "::std::equal_range",
38 const auto ContainerMatcher = classTemplateSpecializationDecl(hasAnyName(
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp 66 return hasType(cxxRecordDecl(hasAnyName(
155 const auto VectorDecl = cxxRecordDecl(hasAnyName(SmallVector<StringRef, 5>(
158 cxxMethodDecl(hasAnyName("push_back", "emplace_back"));
tools/clang/tools/extra/clang-tidy/performance/TypePromotionInMathFnCheck.cpp 65 auto OneDoubleArgFns = hasAnyName(
80 auto TwoDoubleArgFns = hasAnyName("::atan2", "::copysign", "::fdim", "::fmax",
tools/clang/tools/extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp 34 return recordDecl(hasAnyName("::std::unique_ptr", "::std::shared_ptr"));
tools/clang/tools/extra/clang-tidy/readability/RedundantStringCStrCheck.cpp 94 callee(cxxMethodDecl(hasAnyName("c_str", "data"))))
126 cxxMemberCallExpr(on(StringExpr), callee(decl(cxxMethodDecl(hasAnyName(
141 callee(decl(cxxMethodDecl(hasAnyName(
162 hasDeclaration(cxxMethodDecl(hasAnyName(
tools/clang/tools/extra/clang-tidy/readability/SimplifySubscriptExprCheck.cpp 34 recordType(hasDeclaration(cxxRecordDecl(hasAnyName(
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp 1497 EXPECT_TRUE(matches(Code, recordDecl(hasAnyName("XX", "a::b::C"))));
1498 EXPECT_TRUE(matches(Code, recordDecl(hasAnyName("a::b::C", "XX"))));
1499 EXPECT_TRUE(matches(Code, recordDecl(hasAnyName("XX::C", "a::b::C"))));
1500 EXPECT_TRUE(matches(Code, recordDecl(hasAnyName("XX", "C"))));
1502 EXPECT_TRUE(notMatches(Code, recordDecl(hasAnyName("::C", "::b::C"))));
1504 matches(Code, recordDecl(hasAnyName("::C", "::b::C", "::a::b::C"))));
1507 EXPECT_TRUE(matches(Code, recordDecl(hasAnyName(Names))));
tools/clang/unittests/Tooling/TransformerTest.cpp 143 auto StringType = namedDecl(hasAnyName("::basic_string", "::string"));
503 makeRule(callExpr(callee(functionDecl(hasAnyName("f1", "f2")))),
528 makeRule(callExpr(callee(functionDecl(hasAnyName("f1", "f2")))),
556 makeRule(callExpr(callee(functionDecl(hasAnyName("f1", "f2")))),