9#ifndef LLVM_CLANG_FRONTEND_LOGDIAGNOSTICPRINTER_H
10#define LLVM_CLANG_FRONTEND_LOGDIAGNOSTICPRINTER_H
14#include "llvm/ADT/SmallVector.h"
15#include "llvm/ADT/StringRef.h"
18class DiagnosticOptions;
36 unsigned DiagnosticID;
39 std::string WarningOption;
45 void EmitDiagEntry(llvm::raw_ostream &OS,
46 const LogDiagnosticPrinter::DiagEntry &DE);
52 std::unique_ptr<raw_ostream> StreamOwner;
61 std::string MainFilename;
62 std::string DwarfDebugFlags;
66 std::unique_ptr<raw_ostream> StreamOwner);
69 DwarfDebugFlags = std::string(
Value);
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...
Options for controlling the compiler diagnostics engine.
A little helper class (which is basically a smart pointer that forwards info from DiagnosticsEngine) ...
Level
The level of the diagnostic, after it has been through mapping.
A SourceLocation and its associated SourceManager.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
void setDwarfDebugFlags(StringRef Value)
void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override
Handle this diagnostic, reporting it to the user or capturing it to a log as needed.
void EndSourceFile() override
Callback to inform the diagnostic client that processing of a source file has ended.
void BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) override
Callback to inform the diagnostic client that processing of a source file is beginning.
Engages in a tight little dance with the lexer to efficiently preprocess tokens.
Encodes a location in the source.
The JSON file list parser is used to communicate input to InstallAPI.