15 using namespace clang;
21 llvm::SpecialCaseList::createOrDie(AlwaysInstrumentPaths)),
22 NeverInstrument(llvm::SpecialCaseList::createOrDie(NeverInstrumentPaths)),
29 if (AlwaysInstrument->inSection(
"fun", FunctionName,
"arg1"))
31 if (AlwaysInstrument->inSection(
"fun", FunctionName))
33 if (NeverInstrument->inSection(
"fun", FunctionName))
41 if (AlwaysInstrument->inSection(
"src", Filename, Category))
43 if (NeverInstrument->inSection(
"src", Filename, Category))
ImbueAttribute shouldImbueFunctionsInFile(StringRef Filename, StringRef Category=StringRef()) const
SourceLocation getFileLoc(SourceLocation Loc) const
Given Loc, if it is a macro location return the expansion location or the spelling location...
ImbueAttribute shouldImbueLocation(SourceLocation Loc, 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.
bool isValid() const
Return true if this is a valid SourceLocation object.
ImbueAttribute shouldImbueFunction(StringRef FunctionName) const
This class handles loading and caching of source files into memory.