clang-tools 20.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>

Go to the source code of this file.

Classes

class  clang::tidy::modernize::MacroToEnumCallbacks
 

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::tidy
 
namespace  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 = 0

Definition at line 98 of file MacroToEnumCheck.cpp.

◆ Directive

const MacroDirective* Directive

◆ GuardScanner

IncludeGuard GuardScanner = IncludeGuard::None

Definition at line 100 of file MacroToEnumCheck.cpp.

◆ LastLine

unsigned int LastLine = 0

Definition at line 99 of file MacroToEnumCheck.cpp.

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

◆ LastMacroLocation

SourceLocation LastMacroLocation

Definition at line 101 of file MacroToEnumCheck.cpp.

◆ Name

Token Name

Definition at line 87 of file MacroToEnumCheck.cpp.