21 : Message(Message), FileOffset(0) {}
33 if (!FilePath.empty())
39 : DiagnosticName(DiagnosticName), DiagLevel(DiagLevel),
40 BuildDirectory(BuildDirectory) {}
44 const llvm::StringMap<Replacements> &
Fix,
47 : DiagnosticName(DiagnosticName), Message(Message), Fix(Fix), Notes(Notes),
48 DiagLevel(DiagLevel), BuildDirectory(BuildDirectory) {}
Defines the SourceManager interface.
unsigned getFileOffset(SourceLocation SpellingLoc) const
Returns the offset from the start of the file that the specified SourceLocation represents.
StringRef getFilename(SourceLocation SpellingLoc) const
Return the filename of the file containing a SourceLocation.
Encodes a location in the source.
Dataflow Directional Tag Classes.
bool isValid() const
Return true if this is a valid SourceLocation object.
This class handles loading and caching of source files into memory.