clang-tools
3.9.0
|
A detected error complete with information to display diagnostic and automatic fix. More...
#include <ClangTidyDiagnosticConsumer.h>
Public Types | |
enum | Level { Warning = DiagnosticsEngine::Warning, Error = DiagnosticsEngine::Error } |
Public Member Functions | |
ClangTidyError (StringRef CheckName, Level DiagLevel, bool IsWarningAsError, StringRef BuildDirectory) | |
Public Attributes | |
std::string | CheckName |
ClangTidyMessage | Message |
tooling::Replacements | Fix |
SmallVector< ClangTidyMessage, 1 > | Notes |
std::string | BuildDirectory |
Level | DiagLevel |
bool | IsWarningAsError |
A detected error complete with information to display diagnostic and automatic fix.
This is used as an intermediate format to transport Diagnostics without a dependency on a SourceManager.
FIXME: Make Diagnostics flexible enough to support this directly.
Definition at line 54 of file ClangTidyDiagnosticConsumer.h.
Enumerator | |
---|---|
Warning | |
Error |
Definition at line 55 of file ClangTidyDiagnosticConsumer.h.
ClangTidyError::ClangTidyError | ( | StringRef | CheckName, |
ClangTidyError::Level | DiagLevel, | ||
bool | IsWarningAsError, | ||
StringRef | BuildDirectory | ||
) |
Definition at line 117 of file ClangTidyDiagnosticConsumer.cpp.
std::string clang::tidy::ClangTidyError::BuildDirectory |
Definition at line 75 of file ClangTidyDiagnosticConsumer.h.
std::string clang::tidy::ClangTidyError::CheckName |
Definition at line 63 of file ClangTidyDiagnosticConsumer.h.
Level clang::tidy::ClangTidyError::DiagLevel |
Definition at line 77 of file ClangTidyDiagnosticConsumer.h.
tooling::Replacements clang::tidy::ClangTidyError::Fix |
Definition at line 65 of file ClangTidyDiagnosticConsumer.h.
bool clang::tidy::ClangTidyError::IsWarningAsError |
Definition at line 78 of file ClangTidyDiagnosticConsumer.h.
ClangTidyMessage clang::tidy::ClangTidyError::Message |
Definition at line 64 of file ClangTidyDiagnosticConsumer.h.
SmallVector<ClangTidyMessage, 1> clang::tidy::ClangTidyError::Notes |
Definition at line 66 of file ClangTidyDiagnosticConsumer.h.