clang-tools 19.0.0git
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]

Public Member Functions

 ClangTidyDiagnosticConsumer (ClangTidyContext &Ctx, DiagnosticsEngine *ExternalDiagEngine=nullptr, bool RemoveIncompatibleErrors=true, bool GetFixesFromNotes=false, bool EnableNolintBlocks=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 274 of file ClangTidyDiagnosticConsumer.h.

Constructor & Destructor Documentation

◆ ClangTidyDiagnosticConsumer()

ClangTidyDiagnosticConsumer::ClangTidyDiagnosticConsumer ( ClangTidyContext Ctx,
DiagnosticsEngine *  ExternalDiagEngine = nullptr,
bool  RemoveIncompatibleErrors = true,
bool  GetFixesFromNotes = false,
bool  EnableNolintBlocks = true 
)
Parameters
EnableNolintBlocksEnables diagnostic-disabling inside blocks of code, delimited by NOLINTBEGIN and NOLINTEND.

Definition at line 307 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 744 of file ClangTidyDiagnosticConsumer.cpp.

Referenced by clang::tidy::runClangTidy().


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