clang-tools  16.0.0git
Classes | Namespaces | Enumerations | Functions
NoLintDirectiveHandler.cpp File Reference
#include "NoLintDirectiveHandler.h"
#include "GlobList.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Tooling/Core/Diagnostic.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringSwitch.h"
#include <cassert>
#include <cstddef>
#include <iterator>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
Include dependency graph for NoLintDirectiveHandler.cpp:

Go to the source code of this file.

Classes

class  clang::tidy::NoLintDirectiveHandler::Impl
 

Namespaces

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

Enumerations

enum  clang::tidy::NoLintType { clang::tidy::NoLintType::NoLint, clang::tidy::NoLintType::NoLintNextLine, clang::tidy::NoLintType::NoLintBegin, clang::tidy::NoLintType::NoLintEnd }
 

Functions

static Optional< NoLintType > clang::tidy::strToNoLintType (StringRef Str)
 
static std::string clang::tidy::trimWhitespace (StringRef Checks)
 
static SmallVector< NoLintToken > clang::tidy::getNoLints (StringRef Buffer)
 
static SmallVector< NoLintBlockToken > clang::tidy::formNoLintBlocks (SmallVector< NoLintToken > NoLints, SmallVectorImpl< NoLintToken > &UnmatchedTokens)
 
static std::pair< size_t, size_t > clang::tidy::getLineStartAndEnd (StringRef Buffer, size_t From)
 
static bool clang::tidy::lineHasNoLint (StringRef Buffer, std::pair< size_t, size_t > LineStartAndEnd, NoLintType Type, StringRef DiagName)
 
static bool clang::tidy::withinNoLintBlock (ArrayRef< NoLintBlockToken > NoLintBlocks, size_t DiagPos, StringRef DiagName)
 
static Optional< StringRef > clang::tidy::getBuffer (const SourceManager &SrcMgr, FileID File, bool AllowIO)
 
static tooling::Diagnostic clang::tidy::makeNoLintError (const SourceManager &SrcMgr, FileID File, const NoLintToken &NoLint)
 

Variable Documentation

◆ Pos

size_t Pos

◆ Type

NoLintType Type

Definition at line 94 of file NoLintDirectiveHandler.cpp.