16#include "llvm/ADT/STLExtras.h"
22 : Message(Message), FileOffset(0) {}
27 : Message(Message), FileOffset(0) {
28 assert(
Loc.isValid() &&
Loc.isFileID());
40 : FileOffset(0), Length(0) {
50 : DiagnosticName(DiagnosticName), DiagLevel(DiagLevel),
51 BuildDirectory(BuildDirectory) {}
56 Level DiagLevel, llvm::StringRef BuildDirectory)
57 : DiagnosticName(DiagnosticName), Message(Message), Notes(Notes),
58 DiagLevel(DiagLevel), BuildDirectory(BuildDirectory) {}
61 if (!
D.Message.Fix.empty())
62 return &
D.Message.Fix;
64 return !D.Fix.empty();
66 if (
Iter !=
D.Notes.end())
Defines the clang::SourceLocation class and associated facilities.
Defines the SourceManager interface.
Represents a character-granular source range.
Encodes a location in the source.
This class handles loading and caching of source files into memory.
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.
The JSON file list parser is used to communicate input to InstallAPI.