clang-tools  10.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, DiagnosticsEngine *ExternalDiagEngine=nullptr, bool RemoveIncompatibleErrors=true)
 
void HandleDiagnostic (DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override
 
std::vector< ClangTidyErrortake ()
 

Detailed Description

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

Definition at line 229 of file ClangTidyDiagnosticConsumer.h.

Constructor & Destructor Documentation

◆ ClangTidyDiagnosticConsumer()

ClangTidyDiagnosticConsumer::ClangTidyDiagnosticConsumer ( ClangTidyContext Ctx,
DiagnosticsEngine *  ExternalDiagEngine = nullptr,
bool  RemoveIncompatibleErrors = true 
)

Definition at line 237 of file ClangTidyDiagnosticConsumer.cpp.

Member Function Documentation

◆ HandleDiagnostic()

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

◆ take()

std::vector< ClangTidyError > ClangTidyDiagnosticConsumer::take ( )

Definition at line 718 of file ClangTidyDiagnosticConsumer.cpp.


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