#include "ClangTidyDiagnosticConsumer.h"
#include "ClangTidyOptions.h"
#include "GlobList.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>
Go to the source code of this file.
|
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...
|
|
◆ 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 |