Home
last modified time | relevance | path

Searched refs:hasAnyName (Results 1 – 25 of 75) sorted by relevance

123

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/concurrency/
H A DMtUnsafeCheck.cpp283 return hasAnyName(PosixFunctions); in hasAnyMtUnsafeNames()
285 return hasAnyName(GlibcFunctions); in hasAnyMtUnsafeNames()
287 return anyOf(hasAnyName(PosixFunctions), hasAnyName(GlibcFunctions)); in hasAnyMtUnsafeNames()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DDanglingHandleCheck.cpp48 return hasAnyName("::std::deque", "::std::forward_list", "::std::list", in isASequence()
53 return hasAnyName("::std::set", "::std::multiset", "::std::unordered_set", in isASet()
58 return hasAnyName("::std::map", "::std::multimap", "::std::unordered_map", in isAMap()
76 callee(functionDecl(hasAnyName("assign", "push_back", "resize"))), in makeContainerMatcher()
97 IsAHandle(cxxRecordDecl(hasAnyName(HandleClasses)).bind("handle")) {} in DanglingHandleCheck()
H A DMisplacedOperatorInStrlenInAllocCheck.cpp22 const auto StrLenFunc = functionDecl(hasAnyName( in registerMatchers()
44 hasAnyName("::malloc", "std::malloc", "::alloca", "std::alloca")); in registerMatchers()
46 hasAnyName("::calloc", "std::calloc", "::realloc", "std::realloc")); in registerMatchers()
H A DUndefinedMemoryManipulationCheck.cpp33 Finder->addMatcher(callExpr(callee(functionDecl(hasAnyName( in registerMatchers()
42 callExpr(callee(functionDecl(hasAnyName("::memcpy", "::memmove"))), 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()
104 ArgChecker(hasMethod(hasAnyName(ComparisonOperators)), in registerMatchers()
H A DProperlySeededRandomGeneratorCheck.cpp34 auto RandomGeneratorEngineDecl = cxxRecordDecl(hasAnyName( in registerMatchers()
75 callExpr(callee(functionDecl(hasAnyName("::srand", "::std::srand")))) in registerMatchers()
H A DDontModifyStdNamespaceCheck.cpp46 hasDeclContext(namespaceDecl(hasAnyName("std", "posix"), in registerMatchers()
51 hasAncestor(namespaceDecl(hasAnyName("std", "posix"), in registerMatchers()
H A DStrToNumCheck.cpp28 functionDecl(hasAnyName("::atoi", "::atof", "::atol", "::atoll")) in registerMatchers()
30 functionDecl(hasAnyName("::scanf", "::sscanf", "::fscanf", in registerMatchers()
H A DCommandProcessorCheck.cpp22 callee(functionDecl(hasAnyName("::system", "::popen", "::_popen")) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DNoMallocCheck.cpp33 Finder->addMatcher(callExpr(callee(functionDecl(hasAnyName( in registerMatchers()
41 hasAnyName(utils::options::parseStringList((ReallocList)))))) in registerMatchers()
48 hasAnyName(utils::options::parseStringList((DeallocList)))))) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DRedundantStringCStrCheck.cpp93 callee(cxxMethodDecl(hasAnyName("c_str", "data")))) in registerMatchers()
129 cxxMemberCallExpr(on(StringExpr), callee(decl(cxxMethodDecl(hasAnyName( in registerMatchers()
144 callee(decl(cxxMethodDecl(hasAnyName( in registerMatchers()
167 hasDeclaration(cxxMethodDecl(hasAnyName( in registerMatchers()
H A DRedundantStringInitCheck.cpp68 const auto HasStringTypeName = hasAnyName(StringNames); in registerMatchers()
69 const auto HasStringCtorName = hasAnyName(removeNamespaces(StringNames)); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DDurationRewriter.h103 hasAnyName("::absl::ToDoubleHours", "::absl::ToDoubleMinutes", in AST_MATCHER_FUNCTION()
114 return functionDecl(hasAnyName("::absl::Nanoseconds", "::absl::Microseconds", in AST_MATCHER_FUNCTION()
122 return functionDecl(hasAnyName( in AST_MATCHER_FUNCTION()
H A DUpgradeDurationConversionsCheck.cpp41 hasAnyName("operator*=", "operator/=")))) in registerMatchers()
53 hasAnyName("operator*=", "operator/="))), in registerMatchers()
65 hasAnyName("::absl::operator*", "::absl::operator/"))), in registerMatchers()
H A DDurationUnnecessaryConversionCheck.cpp40 callee(functionDecl(hasAnyName(FloatConversion, IntegerConversion))), in registerMatchers()
60 callExpr(callee(functionDecl(hasAnyName( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseEmplaceCheck.cpp132 on(hasType(cxxRecordDecl(hasAnyName(ContainersWithPushBack))))); in registerMatchers()
146 hasDeclaration(cxxConstructorDecl(ofClass(hasAnyName(SmartPointers)))); in registerMatchers()
182 to(functionDecl(hasAnyName(TupleMakeFunctions)))))))) in registerMatchers()
189 hasDeclaration(cxxConstructorDecl(ofClass(hasAnyName(TupleTypes)))))); in registerMatchers()
229 cxxRecordDecl(hasAnyName(SmallVector<StringRef, 2>( in registerMatchers()
/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()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DSingleWorkItemBarrierCheck.cpp31 forEachDescendant(callExpr(callee(functionDecl(hasAnyName( in registerMatchers()
36 hasAnyName("get_global_id", "get_local_id", "get_group_id", in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DFasterStringFindCheck.cpp66 hasAnyName("find", "rfind", "find_first_of", "find_first_not_of", in registerMatchers()
75 recordDecl(hasAnyName(StringLikeClasses)))))), in registerMatchers()
H A DInefficientVectorOperationCheck.cpp66 return hasType(cxxRecordDecl(hasAnyName( in supportedContainerTypesMatcher()
162 const auto VectorDecl = cxxRecordDecl(hasAnyName(VectorLikeClasses)); in registerMatchers()
164 cxxMethodDecl(hasAnyName("push_back", "emplace_back")); in registerMatchers()
H A DInefficientAlgorithmCheck.cpp31 hasAnyName("::std::find", "::std::count", "::std::equal_range", in registerMatchers()
33 const auto ContainerMatcher = classTemplateSpecializationDecl(hasAnyName( in registerMatchers()
H A DTypePromotionInMathFnCheck.cpp63 auto OneDoubleArgFns = hasAnyName( in registerMatchers()
78 auto TwoDoubleArgFns = hasAnyName("::atan2", "::copysign", "::fdim", "::fmax", in registerMatchers()
/llvm-project-15.0.7/clang/lib/Tooling/DumpTool/
H A DASTSrcLocProcessor.cpp30 hasAnyName( in ASTSrcLocProcessor()
40 cxxRecordDecl(isDefinition(), hasAnyName("clang::PointerLikeTypeLoc", in ASTSrcLocProcessor()
157 cxxRecordDecl(hasAnyName("clang::Stmt", "clang::Decl")) in CaptureMethods()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DUpgradeGoogletestCaseCheck.cpp142 hasAnyName("SetUpTestCase", "TearDownTestCase"), in registerMatchers()
156 hasAnyName("OnTestCaseStart", "OnTestCaseEnd"), in registerMatchers()
163 hasAnyName("current_test_case", "successful_test_case_count", in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/darwin/
H A DAvoidSpinlockCheck.cpp21 callExpr(callee((functionDecl(hasAnyName( in registerMatchers()

123