clang-tools 20.0.0git
Namespaces | Functions | Variables
ReservedIdentifierCheck.cpp File Reference
#include "ReservedIdentifierCheck.h"
#include "../utils/Matchers.h"
#include "../utils/OptionsUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Token.h"
#include <algorithm>
#include <cctype>
#include <optional>

Go to the source code of this file.

Namespaces

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

Functions

static int clang::tidy::bugprone::getMessageSelectIndex (StringRef Tag)
 
static std::string clang::tidy::bugprone::collapseConsecutive (StringRef Str, char C)
 
static bool clang::tidy::bugprone::hasReservedDoubleUnderscore (StringRef Name, const LangOptions &LangOpts)
 
static std::optional< std::string > clang::tidy::bugprone::getDoubleUnderscoreFixup (StringRef Name, const LangOptions &LangOpts)
 
static bool clang::tidy::bugprone::startsWithUnderscoreCapital (StringRef Name)
 
static std::optional< std::string > clang::tidy::bugprone::getUnderscoreCapitalFixup (StringRef Name)
 
static bool clang::tidy::bugprone::startsWithUnderscoreInGlobalNamespace (StringRef Name, bool IsInGlobalNamespace, bool IsMacro)
 
static std::optional< std::string > clang::tidy::bugprone::getUnderscoreGlobalNamespaceFixup (StringRef Name, bool IsInGlobalNamespace, bool IsMacro)
 
static std::string clang::tidy::bugprone::getNonReservedFixup (std::string Name)
 
static std::optional< RenamerClangTidyCheck::FailureInfo > clang::tidy::bugprone::getFailureInfoImpl (StringRef Name, bool IsInGlobalNamespace, bool IsMacro, const LangOptions &LangOpts, bool Invert, ArrayRef< llvm::Regex > AllowedIdentifiers)
 

Variables

static const char clang::tidy::bugprone::DoubleUnderscoreTag [] = "du"
 
static const char clang::tidy::bugprone::UnderscoreCapitalTag [] = "uc"
 
static const char clang::tidy::bugprone::GlobalUnderscoreTag [] = "global-under"
 
static const char clang::tidy::bugprone::NonReservedTag [] = "non-reserved"
 
static const char clang::tidy::bugprone::Message []