clang-tools 20.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/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 <optional>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  clang::tidy::NoLintDirectiveHandler::Impl
 

Namespaces

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

Enumerations

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

Functions

static std::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 std::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

Definition at line 96 of file NoLintDirectiveHandler.cpp.

Referenced by clang::clangd::abbreviatedString(), clang::clangd::allowImplicitCompletion(), clang::clangd::ClangdServer::codeComplete(), clang::clangd::codeComplete(), clang::query::QueryParser::complete(), clang::clangd::Range::contains(), clang::clangd::cook(), llvm::yaml::NormalizedPosition::denormalize(), clang::tidy::utils::escapeForDiagnostic(), clang::clangd::findDocumentHighlights(), clang::clangd::ClangdServer::findDocumentHighlights(), clang::clangd::ClangdServer::findHover(), clang::clangd::findImplementations(), clang::clangd::ClangdServer::findImplementations(), clang::clangd::findRecordTypeAt(), clang::clangd::findReferences(), clang::clangd::ClangdServer::findReferences(), clang::clangd::findType(), clang::clangd::ClangdServer::findType(), llvm::format_provider< clang::clangd::Position >::format(), clang::clangd::ClangdServer::formatOnType(), clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getAsteriskCount(), clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getDataTypePrefix(), clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getDeclTypeName(), clang::clangd::getHover(), clang::tidy::getNoLints(), clang::clangd::getSemanticRanges(), clang::clangd::getSymbolInfo(), clang::clangd::getTypeHierarchy(), clang::find_all_symbols::PragmaCommentHandler::HandleComment(), clang::clangd::inferFinalNewline(), clang::clangd::isLikelyIdentifier(), clang::clangd::locateSymbolAt(), clang::clangd::ClangdServer::locateSymbolAt(), main(), llvm::yaml::NormalizedPosition::NormalizedPosition(), clang::clangd::offsetToPosition(), clang::clangd::URI::parse(), clang::clangd::prepareCallHierarchy(), clang::clangd::ClangdServer::prepareCallHierarchy(), clang::clangd::ClangdServer::prepareRename(), clang::tidy::performance::TypePromotionInMathFnCheck::registerMatchers(), clang::clangd::ClangdServer::rename(), clang::clangd::runCodeComplete(), clang::clangd::runFindDocumentHighlights(), clang::clangd::runLocateSymbolAt(), clang::clangd::runPrepareRename(), clang::clangd::runRename(), clang::clangd::runSemanticRanges(), clang::clangd::runSignatureHelp(), clang::clangd::ClangdServer::semanticRanges(), clang::clangd::ClangdServer::signatureHelp(), clang::clangd::signatureHelp(), clang::clangd::splitQualifiedName(), clang::clangd::sym(), clang::clangd::symbol(), clang::clangd::ClangdServer::symbolInfo(), and clang::clangd::ClangdServer::typeHierarchy().

◆ Type

NoLintType Type

Definition at line 93 of file NoLintDirectiveHandler.cpp.