clang-tools  6.0.0svn
Public Member Functions | List of all members
clang::tidy::ClangTidyDiagnosticConsumer Class Reference

A diagnostic consumer that turns each Diagnostic into a SourceManager-independent ClangTidyError. More...

#include <ClangTidyDiagnosticConsumer.h>

Inheritance diagram for clang::tidy::ClangTidyDiagnosticConsumer:
Inheritance graph
[legend]
Collaboration diagram for clang::tidy::ClangTidyDiagnosticConsumer:
Collaboration graph
[legend]

Public Member Functions

 ClangTidyDiagnosticConsumer (ClangTidyContext &Ctx, bool RemoveIncompatibleErrors=true)
 
void HandleDiagnostic (DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override
 
void finish () override
 Flushes the internal diagnostics buffer to the ClangTidyContext. More...
 

Detailed Description

A diagnostic consumer that turns each Diagnostic into a SourceManager-independent ClangTidyError.

Definition at line 227 of file ClangTidyDiagnosticConsumer.h.

Constructor & Destructor Documentation

◆ ClangTidyDiagnosticConsumer()

ClangTidyDiagnosticConsumer::ClangTidyDiagnosticConsumer ( ClangTidyContext Ctx,
bool  RemoveIncompatibleErrors = true 
)

Definition at line 261 of file ClangTidyDiagnosticConsumer.cpp.

Member Function Documentation

◆ finish()

void ClangTidyDiagnosticConsumer::finish ( )
override

Flushes the internal diagnostics buffer to the ClangTidyContext.

Definition at line 663 of file ClangTidyDiagnosticConsumer.cpp.

◆ HandleDiagnostic()

void ClangTidyDiagnosticConsumer::HandleDiagnostic ( DiagnosticsEngine::Level  DiagLevel,
const Diagnostic &  Info 
)
override

The documentation for this class was generated from the following files: