26 lines
779 B
C++
26 lines
779 B
C++
#pragma once
|
|
|
|
#include <clang/AST/RecursiveASTVisitor.h>
|
|
#include <clang/Basic/Diagnostic.h>
|
|
#include <clang/Frontend/CompilerInstance.h>
|
|
#include <clang/Frontend/FrontendActions.h>
|
|
#include <clang/Frontend/TextDiagnosticPrinter.h>
|
|
#include <clang/Sema/Sema.h>
|
|
#include <clang/Tooling/CompilationDatabase.h>
|
|
#include <clang/Tooling/Syntax/Tokens.h>
|
|
#include <clang/Lex/PPCallbacks.h>
|
|
#include "clang/Sema/TemplateDeduction.h"
|
|
|
|
namespace clice {
|
|
|
|
class Diagnostic : 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
|