class StoredDiagnostic
Declaration
class StoredDiagnostic { /* full declaration omitted */ };
Description
Represents a diagnostic in a form that can be retained until its corresponding source manager is destroyed.
Declared at: clang/include/clang/Basic/Diagnostic.h:1685
Member Variables
- private unsigned int ID
- private DiagnosticsEngine::Level Level
- private clang::FullSourceLoc Loc
- private std::string Message
- private std::vector<CharSourceRange> Ranges
- private std::vector<FixItHint> FixIts
Method Overview
- public StoredDiagnostic(DiagnosticsEngine::Level Level, const clang::Diagnostic & Info)
- public StoredDiagnostic(DiagnosticsEngine::Level Level, unsigned int ID, llvm::StringRef Message)
- public StoredDiagnostic(DiagnosticsEngine::Level Level, unsigned int ID, llvm::StringRef Message, clang::FullSourceLoc Loc, ArrayRef<clang::CharSourceRange> Ranges, ArrayRef<clang::FixItHint> Fixits)
- public StoredDiagnostic()
- public clang::StoredDiagnostic::fixit_iterator fixit_begin() const
- public clang::StoredDiagnostic::fixit_iterator fixit_end() const
- public unsigned int fixit_size() const
- public ArrayRef<clang::FixItHint> getFixIts() const
- public unsigned int getID() const
- public DiagnosticsEngine::Level getLevel() const
- public const clang::FullSourceLoc & getLocation() const
- public llvm::StringRef getMessage() const
- public ArrayRef<clang::CharSourceRange> getRanges() const
- public bool operator bool() const
- public clang::StoredDiagnostic::range_iterator range_begin() const
- public clang::StoredDiagnostic::range_iterator range_end() const
- public unsigned int range_size() const
- public void setLocation(clang::FullSourceLoc Loc)
Methods
¶StoredDiagnostic(DiagnosticsEngine::Level Level,
const clang::Diagnostic& Info)
StoredDiagnostic(DiagnosticsEngine::Level Level,
const clang::Diagnostic& Info)
Declared at: clang/include/clang/Basic/Diagnostic.h:1695
Parameters
- DiagnosticsEngine::Level Level
- const clang::Diagnostic& Info
¶StoredDiagnostic(DiagnosticsEngine::Level Level,
unsigned int ID,
llvm::StringRef Message)
StoredDiagnostic(DiagnosticsEngine::Level Level,
unsigned int ID,
llvm::StringRef Message)
Declared at: clang/include/clang/Basic/Diagnostic.h:1696
Parameters
- DiagnosticsEngine::Level Level
- unsigned int ID
- llvm::StringRef Message
¶StoredDiagnostic(
DiagnosticsEngine::Level Level,
unsigned int ID,
llvm::StringRef Message,
clang::FullSourceLoc Loc,
ArrayRef<clang::CharSourceRange> Ranges,
ArrayRef<clang::FixItHint> Fixits)
StoredDiagnostic(
DiagnosticsEngine::Level Level,
unsigned int ID,
llvm::StringRef Message,
clang::FullSourceLoc Loc,
ArrayRef<clang::CharSourceRange> Ranges,
ArrayRef<clang::FixItHint> Fixits)
Declared at: clang/include/clang/Basic/Diagnostic.h:1698
Parameters
- DiagnosticsEngine::Level Level
- unsigned int ID
- llvm::StringRef Message
- clang::FullSourceLoc Loc
- ArrayRef<clang::CharSourceRange> Ranges
- ArrayRef<clang::FixItHint> Fixits
¶StoredDiagnostic()
StoredDiagnostic()
Declared at: clang/include/clang/Basic/Diagnostic.h:1694
¶clang::StoredDiagnostic::fixit_iterator
fixit_begin() const
clang::StoredDiagnostic::fixit_iterator
fixit_begin() const
Declared at: clang/include/clang/Basic/Diagnostic.h:1725
¶clang::StoredDiagnostic::fixit_iterator
fixit_end() const
clang::StoredDiagnostic::fixit_iterator
fixit_end() const
Declared at: clang/include/clang/Basic/Diagnostic.h:1726
¶unsigned int fixit_size() const
unsigned int fixit_size() const
Declared at: clang/include/clang/Basic/Diagnostic.h:1727
¶ArrayRef<clang::FixItHint> getFixIts() const
ArrayRef<clang::FixItHint> getFixIts() const
Declared at: clang/include/clang/Basic/Diagnostic.h:1729
¶unsigned int getID() const
unsigned int getID() const
Declared at: clang/include/clang/Basic/Diagnostic.h:1706
¶DiagnosticsEngine::Level getLevel() const
DiagnosticsEngine::Level getLevel() const
Declared at: clang/include/clang/Basic/Diagnostic.h:1707
¶const clang::FullSourceLoc& getLocation() const
const clang::FullSourceLoc& getLocation() const
Declared at: clang/include/clang/Basic/Diagnostic.h:1708
¶llvm::StringRef getMessage() const
llvm::StringRef getMessage() const
Declared at: clang/include/clang/Basic/Diagnostic.h:1709
¶ArrayRef<clang::CharSourceRange> getRanges() const
ArrayRef<clang::CharSourceRange> getRanges() const
Declared at: clang/include/clang/Basic/Diagnostic.h:1719
¶bool operator bool() const
bool operator bool() const
Description
Evaluates true when this object stores a diagnostic.
Declared at: clang/include/clang/Basic/Diagnostic.h:1704
¶clang::StoredDiagnostic::range_iterator
range_begin() const
clang::StoredDiagnostic::range_iterator
range_begin() const
Declared at: clang/include/clang/Basic/Diagnostic.h:1715
¶clang::StoredDiagnostic::range_iterator
range_end() const
clang::StoredDiagnostic::range_iterator
range_end() const
Declared at: clang/include/clang/Basic/Diagnostic.h:1716
¶unsigned int range_size() const
unsigned int range_size() const
Declared at: clang/include/clang/Basic/Diagnostic.h:1717
¶void setLocation(clang::FullSourceLoc Loc)
void setLocation(clang::FullSourceLoc Loc)
Declared at: clang/include/clang/Basic/Diagnostic.h:1711