17 lines
404 B
C++
17 lines
404 B
C++
#pragma once
|
|
|
|
#include <Compiler/Clang.h>
|
|
|
|
namespace clice {
|
|
|
|
class DiagnosticCollector : public clang::DiagnosticConsumer {
|
|
public:
|
|
void BeginSourceFile(const clang::LangOptions& Opts, const clang::Preprocessor* PP) override;
|
|
|
|
void HandleDiagnostic(clang::DiagnosticsEngine::Level DiagLevel, const clang::Diagnostic& Info) override;
|
|
|
|
void EndSourceFile() override;
|
|
};
|
|
|
|
} // namespace clice
|