Home
last modified time | relevance | path

Searched refs:CallDescription (Results 1 – 24 of 24) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallDescription.h43 class CallDescription {
66 CallDescription(CallDescriptionFlags Flags,
72 CallDescription(ArrayRef<const char *> QualifiedName,
76 CallDescription(std::nullptr_t) = delete;
145 const CallDescription &CD1) { in matchesAnyAsWritten()
152 const CallDescription &CD1, in matchesAnyAsWritten()
173 std::vector<std::pair<CallDescription, T>> LinearMap;
177 std::initializer_list<std::pair<CallDescription, T>> &&List) in CallDescriptionMap() argument
188 CallDescriptionMap &operator=(const CallDescription &) = delete;
196 for (const std::pair<CallDescription, T> &I : LinearMap) in lookup()
[all …]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DCallDescription.cpp38 ento::CallDescription::CallDescription(CallDescriptionFlags Flags, in CallDescription() function in ento::CallDescription
51 ento::CallDescription::CallDescription(ArrayRef<const char *> QualifiedName, in CallDescription() function in ento::CallDescription
54 : CallDescription(CDF_None, QualifiedName, RequiredArgs, RequiredParams) {} in CallDescription()
56 bool ento::CallDescription::matches(const CallEvent &Call) const { in matches()
68 bool ento::CallDescription::matchesAsWritten(const CallExpr &CE) const { in matchesAsWritten()
76 bool ento::CallDescription::matchesImpl(const FunctionDecl *Callee, in matchesImpl()
93 const auto MatchNameOnly = [](const CallDescription &CD, in matchesImpl()
108 const CallDescription &CD) -> bool { in matchesImpl()
115 const auto MatchQualifiedNameParts = [](const CallDescription &CD, in matchesImpl()
156 std::initializer_list<CallDescription> &&List) { in CallDescriptionSet()
[all …]
H A DCMakeLists.txt14 CallDescription.cpp
/llvm-project-15.0.7/clang/unittests/StaticAnalyzer/
H A DCallDescriptionTest.cpp135 TEST(CallDescription, SimpleNameMatching) { in TEST() argument
144 TEST(CallDescription, RequiredArguments) { in TEST() argument
153 TEST(CallDescription, LackOfRequiredArguments) { in TEST() argument
177 TEST(CallDescription, QualifiedNames) { in TEST() argument
192 TEST(CallDescription, MatchConstructor) { in TEST() argument
213 TEST(CallDescription, MatchConversionOperator) { in TEST() argument
287 TEST(CallDescription, SkipTopInlineNamespaces) { in TEST() argument
343 TEST(CallDescription, AliasNames) { in TEST() argument
415 TEST(CallDescription, AliasSingleNamespace) { in TEST() argument
487 TEST(CallDescription, MatchBuiltins) { in TEST() argument
[all …]
H A DNoStateChangeFuncVisitorTest.cpp89 if (CallDescription{"preventError", 0}.matches(Call)) { in checkPreCall()
94 if (CallDescription{"allowError", 0}.matches(Call)) { in checkPreCall()
99 if (CallDescription{"error", 0}.matches(Call)) { in checkPreCall()
H A DConflictingEvalCallsTest.cpp21 const CallDescription Foo = {"foo", 0};
/llvm-project-15.0.7/bolt/include/bolt/Passes/
H A DInstrumentationSummary.h47 struct CallDescription { struct
97 std::vector<CallDescription> Calls;
136 Func.Calls.size() * sizeof(CallDescription) + in getFDSize()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DMmapWriteExecChecker.cpp29 CallDescription MmapFn;
30 CallDescription MprotectFn;
H A DMIGChecker.cpp48 std::vector<std::pair<CallDescription, unsigned>> Deallocators = {
89 CallDescription OsRefRetain{"os_ref_retain", 1};
201 [&](const std::pair<CallDescription, unsigned> &Item) { in checkPostCall() argument
H A DValistChecker.cpp35 CallDescription Func;
39 static const CallDescription VaStart, VaEnd, VaCopy;
120 const CallDescription
H A DStringChecker.cpp29 const CallDescription TwoParamStdStringCtor = {
H A DChrootChecker.cpp46 const CallDescription Chroot{"chroot", 1}, Chdir{"chdir", 1};
H A DBlockInCriticalSectionChecker.cpp33 CallDescription LockFn, UnlockFn, SleepFn, GetcFn, FgetsFn, ReadFn, RecvFn,
H A DSimpleStreamChecker.cpp55 CallDescription OpenFn, CloseFn;
H A DGenericTaintChecker.cpp300 using RulesContTy = std::vector<std::pair<CallDescription, GenericTaintRule>>;
462 Rules.emplace_back(CallDescription(CallDescParts), std::move(Rule)); in consumeRulesFromConfig()
523 std::vector<std::pair<CallDescription, GenericTaintRule>>; in initTaintRules()
H A DSmartPtrModeling.cpp92 const CallDescription StdSwapCall{{"std", "swap"}, 2};
93 const CallDescription StdMakeUniqueCall{{"std", "make_unique"}};
94 const CallDescription StdMakeUniqueForOverwriteCall{
H A DInnerPointerChecker.cpp38 CallDescription AppendFn, AssignFn, AddressofFn, AddressofFn_, ClearFn,
H A DCStringChecker.cpp159 CallDescription StdCopy{{"std", "copy"}, 3},
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/cert/
H A DPutenvWithAutoChecker.cpp33 const CallDescription Putenv{"putenv", 1};
/llvm-project-15.0.7/bolt/runtime/
H A Dinstr.cpp445 struct CallDescription { struct
484 const CallDescription *Calls;
494 NumCalls * sizeof(CallDescription) + in getSize()
573 Calls = reinterpret_cast<const CallDescription *>( in FunctionDescription()
578 NumEdges * sizeof(EdgeDescription) + NumCalls * sizeof(CallDescription)); in FunctionDescription()
582 NumEdges * sizeof(EdgeDescription) + NumCalls * sizeof(CallDescription)); in FunctionDescription()
1023 const CallDescription &CallDesc = D.Calls[CallID]; in visitAllCallsIn()
1288 const CallDescription *Desc = &F.Calls[I]; in writeFunctionProfile()
/llvm-project-15.0.7/llvm/utils/gn/secondary/clang/lib/StaticAnalyzer/Core/
H A DBUILD.gn23 "CallDescription.cpp",
/llvm-project-15.0.7/bolt/lib/RuntimeLibs/
H A DInstrumentationRuntimeLibrary.cpp297 for (const CallDescription &Call : Desc.Calls) { in buildTables()
/llvm-project-15.0.7/bolt/lib/Passes/
H A DInstrumentation.cpp103 CallDescription CD; in createCallDescription()
/llvm-project-15.0.7/clang/docs/tools/
H A Dclang-formatted-files.txt548 clang/lib/StaticAnalyzer/Core/CallDescription.cpp