Home
last modified time | relevance | path

Searched refs:inSection (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/Support/
H A DSpecialCaseListTest.cpp54 EXPECT_TRUE(SCL->inSection("", "src", "hello")); in TEST_F()
55 EXPECT_TRUE(SCL->inSection("", "src", "bye")); in TEST_F()
58 EXPECT_FALSE(SCL->inSection("", "src", "hi")); in TEST_F()
59 EXPECT_FALSE(SCL->inSection("", "fun", "hello")); in TEST_F()
127 EXPECT_FALSE(SCL->inSection("", "type", "t1")); in TEST_F()
128 EXPECT_FALSE(SCL->inSection("", "type", "t2")); in TEST_F()
134 EXPECT_FALSE(SCL->inSection("", "src", "bye")); in TEST_F()
183 EXPECT_TRUE(SCL->inSection("", "src", "bar")); in TEST_F()
184 EXPECT_TRUE(SCL->inSection("", "src", "baz")); in TEST_F()
196 EXPECT_TRUE(SCL->inSection("", "fun", "bar")); in TEST_F()
[all …]
/llvm-project-15.0.7/clang/lib/Basic/
H A DXRayLists.cpp39 if (AlwaysInstrument->inSection("xray_always_instrument", "fun", FunctionName, in shouldImbueFunction()
41 AttrList->inSection("always", "fun", FunctionName, "arg1")) in shouldImbueFunction()
43 if (AlwaysInstrument->inSection("xray_always_instrument", "fun", in shouldImbueFunction()
45 AttrList->inSection("always", "fun", FunctionName)) in shouldImbueFunction()
48 if (NeverInstrument->inSection("xray_never_instrument", "fun", in shouldImbueFunction()
50 AttrList->inSection("never", "fun", FunctionName)) in shouldImbueFunction()
59 if (AlwaysInstrument->inSection("xray_always_instrument", "src", Filename, in shouldImbueFunctionsInFile()
61 AttrList->inSection("always", "src", Filename, Category)) in shouldImbueFunctionsInFile()
63 if (NeverInstrument->inSection("xray_never_instrument", "src", Filename, in shouldImbueFunctionsInFile()
65 AttrList->inSection("never", "src", Filename, Category)) in shouldImbueFunctionsInFile()
H A DNoSanitizeList.cpp32 return SSCL->inSection(Mask, "global", GlobalName, Category); in containsGlobal()
37 return SSCL->inSection(Mask, "type", MangledTypeName, Category); in containsType()
42 return SSCL->inSection(Mask, "fun", FunctionName); in containsFunction()
47 return SSCL->inSection(Mask, "src", FileName, Category); in containsFile()
52 return SSCL->inSection(Mask, "mainfile", FileName, Category); in containsMainFile()
H A DProfileList.cpp92 if (SCL->inSection(Section, "!fun", FunctionName)) in isFunctionExcluded()
94 if (SCL->inSection(Section, "fun", FunctionName)) in isFunctionExcluded()
109 if (SCL->inSection(Section, "!src", FileName)) in isFileExcluded()
111 if (SCL->inSection(Section, "src", FileName)) in isFileExcluded()
H A DSanitizerSpecialCaseList.cpp56 bool SanitizerSpecialCaseList::inSection(SanitizerMask Mask, StringRef Prefix, in inSection() function in SanitizerSpecialCaseList
/llvm-project-15.0.7/llvm/tools/llvm-cov/
H A DCoverageFilters.cpp40 return Allowlist.inSection("llvmcov", "allowlist_fun", Function.Name); in matches()
47 return Whitelist.inSection("llvmcov", "whitelist_fun", Function.Name); in matches()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSanitizerSpecialCaseList.h43 bool inSection(SanitizerMask Mask, StringRef Prefix, StringRef Query,
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DSpecialCaseList.h93 bool inSection(StringRef Section, StringRef Prefix, StringRef Query,
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DSanitizerCoverage.cpp367 !Allowlist->inSection("coverage", "src", M.getSourceFileName())) in instrumentModule()
370 Blocklist->inSection("coverage", "src", M.getSourceFileName())) in instrumentModule()
616 if (Allowlist && !Allowlist->inSection("coverage", "fun", F.getName())) in instrumentFunction()
618 if (Blocklist && Blocklist->inSection("coverage", "fun", F.getName())) in instrumentFunction()
H A DDataFlowSanitizer.cpp304 SCL->inSection("dataflow", "fun", F.getName(), Category); in isIn()
316 return SCL->inSection("dataflow", "fun", GA.getName(), Category); in isIn()
318 return SCL->inSection("dataflow", "global", GA.getName(), Category) || in isIn()
319 SCL->inSection("dataflow", "type", getGlobalTypeString(GA), in isIn()
325 return SCL->inSection("dataflow", "src", M.getModuleIdentifier(), Category); in isIn()
/llvm-project-15.0.7/llvm/tools/sancov/
H A Dsancov.cpp501 DefaultIgnorelist->inSection("sancov", "fun", I.FunctionName)) in isIgnorelisted()
504 DefaultIgnorelist->inSection("sancov", "src", I.FileName)) in isIgnorelisted()
507 UserIgnorelist->inSection("sancov", "fun", I.FunctionName)) in isIgnorelisted()
510 UserIgnorelist->inSection("sancov", "src", I.FileName)) in isIgnorelisted()
/llvm-project-15.0.7/llvm/lib/Support/
H A DSpecialCaseList.cpp203 bool SpecialCaseList::inSection(StringRef Section, StringRef Prefix, in inSection() function in llvm::SpecialCaseList