Files
clice/include/Compiler/Diagnostic.h
2024-10-15 17:52:29 +08:00

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