15 using namespace clang;
21 llvm::SpecialCaseList::createOrDie(AlwaysInstrumentPaths)),
22 NeverInstrument(
llvm::SpecialCaseList::createOrDie(NeverInstrumentPaths)),
29 if (AlwaysInstrument->inSection(
"xray_always_instrument",
"fun", FunctionName,
32 if (AlwaysInstrument->inSection(
"xray_always_instrument",
"fun",
35 if (NeverInstrument->inSection(
"xray_never_instrument",
"fun", FunctionName))
43 if (AlwaysInstrument->inSection(
"xray_always_instrument",
"src", Filename,
46 if (NeverInstrument->inSection(
"xray_never_instrument",
"src", Filename,
DominatorTree GraphTraits specialization so the DominatorTree can be iterable by generic graph iterat...
ImbueAttribute shouldImbueFunctionsInFile(StringRef Filename, StringRef Category=StringRef()) const
XRayFunctionFilter(ArrayRef< std::string > AlwaysInstrumentPaths, ArrayRef< std::string > NeverInstrumentPaths, SourceManager &SM)
StringRef getFilename(SourceLocation SpellingLoc) const
Return the filename of the file containing a SourceLocation.
Encodes a location in the source.
SourceLocation getFileLoc(SourceLocation Loc) const
Given Loc, if it is a macro location return the expansion location or the spelling location...
Dataflow Directional Tag Classes.
bool isValid() const
Return true if this is a valid SourceLocation object.
ImbueAttribute shouldImbueFunction(StringRef FunctionName) const
ImbueAttribute shouldImbueLocation(SourceLocation Loc, StringRef Category=StringRef()) const
This class handles loading and caching of source files into memory.