Definition at line 51 of file clang_tool.h.
#include <clang_tool.h>
◆ diagnostic_consumer()
clanguml::generators::diagnostic_consumer::diagnostic_consumer |
( |
std::filesystem::path |
relative_to | ) |
|
◆ HandleDiagnostic()
void clanguml::generators::diagnostic_consumer::HandleDiagnostic |
( |
DiagnosticsEngine::Level |
diag_level, |
|
|
const Diagnostic & |
info |
|
) |
| |
|
override |
Definition at line 84 of file clang_tool.cc.
86{
87 SmallVector<char> buf{};
88 info.FormatDiagnostic(buf);
89
90 diagnostic d;
91 d.level = diag_level;
92 d.description = std::string{buf.data(), buf.size()};
93
94 if (info.hasSourceManager() && info.getLocation().isValid()) {
98 }
99
100 if (diag_level == clang::DiagnosticsEngine::Level::Error ||
101 diag_level == clang::DiagnosticsEngine::Level::Fatal) {
103 }
104
106}
◆ diagnostics
std::vector<diagnostic> clanguml::generators::diagnostic_consumer::diagnostics |
List of all diagnostics collected for a given TU
Definition at line 62 of file clang_tool.h.
◆ failed
bool clanguml::generators::diagnostic_consumer::failed {false} |
If true, at least one of the diagnostics represents an error
Definition at line 59 of file clang_tool.h.
◆ relative_to_
std::filesystem::path clanguml::generators::diagnostic_consumer::relative_to_ |
|
private |
The documentation for this class was generated from the following files: