clang-tools  9.0.0
Classes | Namespaces | Functions
ClangTidyDiagnosticConsumer.cpp File Reference
#include "ClangTidyDiagnosticConsumer.h"
#include "ClangTidyOptions.h"
#include "clang/AST/ASTDiagnostic.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Frontend/DiagnosticRenderer.h"
#include "clang/Tooling/Core/Diagnostic.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include <tuple>
#include <vector>
Include dependency graph for ClangTidyDiagnosticConsumer.cpp:

Go to the source code of this file.

Classes

class  clang::tidy::ClangTidyContext::CachedGlobList
 

Namespaces

 clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
 clang::tidy
 

Functions

static bool ConsumeNegativeIndicator (StringRef &GlobList)
 
static llvm::Regex ConsumeGlob (StringRef &GlobList)
 
static bool IsNOLINTFound (StringRef NolintDirectiveText, StringRef Line, unsigned DiagID, const ClangTidyContext &Context)
 
static bool LineIsMarkedWithNOLINT (const SourceManager &SM, SourceLocation Loc, unsigned DiagID, const ClangTidyContext &Context)
 
static bool LineIsMarkedWithNOLINTinMacro (const SourceManager &SM, SourceLocation Loc, unsigned DiagID, const ClangTidyContext &Context)
 
bool clang::tidy::ShouldSuppressDiagnostic (DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info, ClangTidyContext &Context, bool CheckMacroExpansion=true)
 Check whether a given diagnostic should be suppressed due to the presence of a "NOLINT" suppression comment. More...
 

Function Documentation

◆ ConsumeGlob()

static llvm::Regex ConsumeGlob ( StringRef &  GlobList)
static

Definition at line 133 of file ClangTidyDiagnosticConsumer.cpp.

◆ ConsumeNegativeIndicator()

static bool ConsumeNegativeIndicator ( StringRef &  GlobList)
static

Definition at line 123 of file ClangTidyDiagnosticConsumer.cpp.

◆ IsNOLINTFound()

static bool IsNOLINTFound ( StringRef  NolintDirectiveText,
StringRef  Line,
unsigned  DiagID,
const ClangTidyContext Context 
)
static

◆ LineIsMarkedWithNOLINT()

static bool LineIsMarkedWithNOLINT ( const SourceManager &  SM,
SourceLocation  Loc,
unsigned  DiagID,
const ClangTidyContext Context 
)
static

◆ LineIsMarkedWithNOLINTinMacro()

static bool LineIsMarkedWithNOLINTinMacro ( const SourceManager &  SM,
SourceLocation  Loc,
unsigned  DiagID,
const ClangTidyContext Context 
)
static