clang-tools  16.0.0git
Classes | Public Member Functions | List of all members
clang::tidy::NoLintDirectiveHandler Class Reference

This class is used to locate NOLINT comments in the file being analyzed, to decide whether a diagnostic should be suppressed. More...

#include <NoLintDirectiveHandler.h>

Classes

class  Impl
 

Public Member Functions

 NoLintDirectiveHandler ()
 
 ~NoLintDirectiveHandler ()
 
bool shouldSuppress (DiagnosticsEngine::Level DiagLevel, const Diagnostic &Diag, llvm::StringRef DiagName, llvm::SmallVectorImpl< tooling::Diagnostic > &NoLintErrors, bool AllowIO, bool EnableNoLintBlocks)
 

Detailed Description

This class is used to locate NOLINT comments in the file being analyzed, to decide whether a diagnostic should be suppressed.

This class keeps a cache of every NOLINT comment found so that files do not have to be repeatedly parsed each time a new diagnostic is raised.

Definition at line 33 of file NoLintDirectiveHandler.h.

Constructor & Destructor Documentation

◆ NoLintDirectiveHandler()

clang::tidy::NoLintDirectiveHandler::NoLintDirectiveHandler ( )

Definition at line 401 of file NoLintDirectiveHandler.cpp.

◆ ~NoLintDirectiveHandler()

clang::tidy::NoLintDirectiveHandler::~NoLintDirectiveHandler ( )
default

Member Function Documentation

◆ shouldSuppress()

bool clang::tidy::NoLintDirectiveHandler::shouldSuppress ( DiagnosticsEngine::Level  DiagLevel,
const Diagnostic Diag,
llvm::StringRef  DiagName,
llvm::SmallVectorImpl< tooling::Diagnostic > &  NoLintErrors,
bool  AllowIO,
bool  EnableNoLintBlocks 
)

Definition at line 406 of file NoLintDirectiveHandler.cpp.


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