Files
clice/include/Compiler/Diagnostic.h
2025-01-16 22:48:35 +08:00

18 lines
421 B
C++

#pragma once
#include "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