clang: include/clang/Frontend/TextDiagnosticBuffer.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13#ifndef LLVM_CLANG_FRONTEND_TEXTDIAGNOSTICBUFFER_H
14#define LLVM_CLANG_FRONTEND_TEXTDIAGNOSTICBUFFER_H
15
18#include
19#include
20#include
21#include
22
24
26public:
27 using DiagList = std::vector<std::pair<SourceLocation, std::string>>;
30
31private:
32 DiagList Errors, Warnings, Remarks, Notes;
33
34
35
36
37
38 std::vector<std::pair<DiagnosticsEngine::Level, size_t>> All;
39
40public:
43
46
49
52
55
56
57
59};
60
61}
62
63#endif
Defines the Diagnostic-related interfaces.
Defines the clang::SourceLocation class and associated facilities.
Abstract interface, implemented by clients of the front-end, which formats and prints fully processed...
A little helper class (which is basically a smart pointer that forwards info from DiagnosticsEngine a...
Concrete class used by the front-end to report problems and issues.
Level
The level of the diagnostic, after it has been through mapping.
void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override
HandleDiagnostic - Store the errors, warnings, and notes that are reported.
DiagList::const_iterator const_iterator
DiagList::iterator iterator
std::vector< std::pair< SourceLocation, std::string > > DiagList
const_iterator warn_end() const
const_iterator note_begin() const
const_iterator err_begin() const
void FlushDiagnostics(DiagnosticsEngine &Diags) const
FlushDiagnostics - Flush the buffered diagnostics to an given diagnostic engine.
const_iterator note_end() const
const_iterator warn_begin() const
const_iterator remark_begin() const
const_iterator remark_end() const
const_iterator err_end() const
The JSON file list parser is used to communicate input to InstallAPI.