Home
last modified time | relevance | path

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

123

/external/llvm-project/clang-tools-extra/clang-tidy/concurrency/
DMtUnsafeCheck.cpp283 return hasAnyName(PosixFunctions); in hasAnyMtUnsafeNames()
285 return hasAnyName(GlibcFunctions); in hasAnyMtUnsafeNames()
287 return anyOf(hasAnyName(PosixFunctions), hasAnyName(GlibcFunctions)); in hasAnyMtUnsafeNames()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
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(std::vector<StringRef>( in DanglingHandleCheck()
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()
DUndefinedMemoryManipulationCheck.cpp33 Finder->addMatcher(callExpr(callee(functionDecl(hasAnyName( in registerMatchers()
42 callExpr(callee(functionDecl(hasAnyName("::memcpy", "::memmove"))), in registerMatchers()
DStringConstructorCheck.cpp104 cxxRecordDecl(hasAnyName(removeNamespaces(StringNames)))))), in registerMatchers()
127 hasAnyName(removeNamespaces(StringNames)))))), in registerMatchers()
DUseAfterMoveCheck.cpp297 recordType(hasDeclaration(cxxRecordDecl(hasAnyName( in getReinits()
305 recordType(hasDeclaration(cxxRecordDecl(hasAnyName( in getReinits()
328 callee(cxxMethodDecl(hasAnyName("clear", "assign")))), in getReinits()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
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()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseEmplaceCheck.cpp53 on(hasType(cxxRecordDecl(hasAnyName(SmallVector<StringRef, 5>( in registerMatchers()
60 auto IsCtorOfSmartPtr = hasDeclaration(cxxConstructorDecl(ofClass(hasAnyName( in registerMatchers()
97 to(functionDecl(hasAnyName(SmallVector<StringRef, 2>( in registerMatchers()
105 hasDeclaration(cxxConstructorDecl(ofClass(hasAnyName( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
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()
DUpgradeDurationConversionsCheck.cpp41 hasAnyName("operator*=", "operator/=")))) in registerMatchers()
53 hasAnyName("operator*=", "operator/="))), in registerMatchers()
65 hasAnyName("::absl::operator*", "::absl::operator/"))), in registerMatchers()
DDurationUnnecessaryConversionCheck.cpp40 callee(functionDecl(hasAnyName(FloatConversion, IntegerConversion))), in registerMatchers()
60 callExpr(callee(functionDecl(hasAnyName( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
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()
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DProperlySeededRandomGeneratorCheck.cpp34 auto RandomGeneratorEngineDecl = cxxRecordDecl(hasAnyName( in registerMatchers()
75 callExpr(callee(functionDecl(hasAnyName("::srand", "::std::srand")))) in registerMatchers()
DStrToNumCheck.cpp28 functionDecl(hasAnyName("::atoi", "::atof", "::atol", "::atoll")) in registerMatchers()
30 functionDecl(hasAnyName("::scanf", "::sscanf", "::fscanf", in registerMatchers()
DDontModifyStdNamespaceCheck.cpp22 hasAnyName("std", "posix"), in registerMatchers()
DCommandProcessorCheck.cpp22 callee(functionDecl(hasAnyName("::system", "::popen", "::_popen")) in registerMatchers()
DSetLongJmpCheck.cpp57 callExpr(callee(functionDecl(hasAnyName("setjmp", "longjmp")))) in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DFasterStringFindCheck.cpp66 hasAnyName("find", "rfind", "find_first_of", "find_first_not_of", in registerMatchers()
76 recordDecl(hasAnyName(SmallVector<StringRef, 4>( in registerMatchers()
DInefficientVectorOperationCheck.cpp66 return hasType(cxxRecordDecl(hasAnyName( in supportedContainerTypesMatcher()
155 const auto VectorDecl = cxxRecordDecl(hasAnyName(SmallVector<StringRef, 5>( in registerMatchers()
158 cxxMethodDecl(hasAnyName("push_back", "emplace_back")); in registerMatchers()
DInefficientAlgorithmCheck.cpp31 hasAnyName("::std::find", "::std::count", "::std::equal_range", in registerMatchers()
33 const auto ContainerMatcher = classTemplateSpecializationDecl(hasAnyName( in registerMatchers()
DTypePromotionInMathFnCheck.cpp63 auto OneDoubleArgFns = hasAnyName( in registerMatchers()
78 auto TwoDoubleArgFns = hasAnyName("::atan2", "::copysign", "::fdim", "::fmax", in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/google/
DUpgradeGoogletestCaseCheck.cpp142 hasAnyName("SetUpTestCase", "TearDownTestCase"), in registerMatchers()
156 hasAnyName("OnTestCaseStart", "OnTestCaseEnd"), in registerMatchers()
163 hasAnyName("current_test_case", "successful_test_case_count", in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/darwin/
DAvoidSpinlockCheck.cpp21 callExpr(callee((functionDecl(hasAnyName( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/android/
DCloexecOpenCheck.cpp23 hasAnyName("open", "open64"), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/linuxkernel/
DMustCheckErrsCheck.cpp21 functionDecl(hasAnyName("ERR_PTR", "PTR_ERR", "IS_ERR", "IS_ERR_OR_NULL", in registerMatchers()

123