clang-tools  15.0.0git
Classes | Namespaces | Functions
MacroToEnumCheck.cpp File Reference
#include "MacroToEnumCheck.h"
#include "IntegralLiteralExpressionMatcher.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Preprocessor.h"
#include "llvm/ADT/STLExtras.h"
#include <algorithm>
#include <cassert>
#include <cctype>
#include <string>
Include dependency graph for MacroToEnumCheck.cpp:

Go to the source code of this file.

Classes

class  clang::tidy::modernize::MacroToEnumCallbacks
 

Namespaces

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

Functions

static bool clang::tidy::modernize::hasOnlyComments (SourceLocation Loc, const LangOptions &Options, StringRef Text)
 
static StringRef clang::tidy::modernize::getTokenName (const Token &Tok)
 
static bool clang::tidy::modernize::isValid (SourceRange Range)
 
static bool clang::tidy::modernize::empty (SourceRange Range)
 

Variable Documentation

◆ ConditionScopes

int ConditionScopes

Definition at line 101 of file MacroToEnumCheck.cpp.

◆ Directive

const MacroDirective* Directive

Definition at line 90 of file MacroToEnumCheck.cpp.

◆ GuardScanner

IncludeGuard GuardScanner

Definition at line 103 of file MacroToEnumCheck.cpp.

◆ LastLine

unsigned int LastLine

Definition at line 102 of file MacroToEnumCheck.cpp.

Referenced by clang::clangd::renameRangeAdjustmentCost().

◆ LastMacroLocation

SourceLocation LastMacroLocation

Definition at line 104 of file MacroToEnumCheck.cpp.

◆ Name

Token Name

Definition at line 89 of file MacroToEnumCheck.cpp.

Referenced by EntityMap::add(), clang::pp_trace::PPCallbacksTracker::appendArgument(), clang::pp_trace::PPCallbacksTracker::appendFilePathArgument(), clang::pp_trace::PPCallbacksTracker::beginCallback(), clang::doc::calculateRelativeFilePath(), clang::tidy::RenamerClangTidyCheck::checkMacro(), clang::clangd::MemoryTree::child(), clang::clangd::cls(), clang::clangd::conceptSym(), clang::include_fixer::YamlSymbolIndex::createFromDirectory(), clang::clangd::ClangdServer::customAction(), clang::tidy::modernize::DeclFinderASTVisitor::DeclFinderASTVisitor(), clang::clangd::MemoryTree::detail(), clang::clangd::enm(), clang::tidy::RenamerClangTidyCheck::expandMacro(), clang::clangd::findDecl(), clang::clangd::findUnqualifiedDecl(), clang::clangd::func(), clang::tidy::bugprone::getDoubleUnderscoreFixup(), clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getEnumPrefix(), clang::tidy::bugprone::getFailureInfoImpl(), clang::tidy::bugprone::getName(), clang::tidy::bugprone::getNameOrUnnamed(), clang::tidy::bugprone::getNonReservedFixup(), clang::tidy::readability::getOperatorName(), clang::tidy::abseil::getScaleForDurationInverse(), clang::tidy::abseil::getScaleForTimeInverse(), clang::tidy::bugprone::getUnderscoreCapitalFixup(), clang::tidy::bugprone::getUnderscoreGlobalNamespaceFixup(), clang::tidy::bugprone::hasReservedDoubleUnderscore(), clang::tidy::cppcoreguidelines::isCapsOnly(), clang::clangd::isReservedName(), clang::tidy::bugprone::isStandardSmartPointer(), clang::tidy::matchers::MatchesAnyListedNameMatcher::MatchesAnyListedNameMatcher(), clang::clangd::ns(), clang::clangd::objcClass(), clang::clangd::objcProtocol(), clang::clangd::objcSym(), clang::clangd::Annotations::point(), clang::clangd::Annotations::points(), clang::pp_trace::PPCallbacksTracker::PragmaDetectMismatch(), clang::pp_trace::PPCallbacksTracker::PragmaOpenCLExtension(), clang::clangd::printName(), clang::clangd::printObjCContainer(), clang::clangd::printObjCMethod(), clang::clangd::printUsingNamespaceName(), clang::clangd::Annotations::range(), clang::clangd::Annotations::ranges(), clang::tidy::ClangTidyCheckFactories::registerCheck(), clang::tidy::ClangTidyCheckFactories::registerCheckFactory(), clang::query::LetQuery::run(), clang::clangd::AsyncTaskRunner::runAsync(), clang::clangd::sortText(), clang::tidy::bugprone::startsWithUnderscoreCapital(), clang::tidy::bugprone::startsWithUnderscoreInGlobalNamespace(), clang::clangd::StoreDiags::take(), clang::tidy::portability::trySuggestPpc(), clang::tidy::portability::trySuggestX86(), clang::clangd::var(), and CollectEntitiesVisitor::VisitNamedDecl().