clang-tools  12.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 dependency graph for ReservedIdentifierCheck.cpp:

Go to the source code of this file.

Namespaces

 clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
 clang::tidy
 
 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 Optional< std::string > clang::tidy::bugprone::getDoubleUnderscoreFixup (StringRef Name, const LangOptions &LangOpts)
 
static bool clang::tidy::bugprone::startsWithUnderscoreCapital (StringRef Name)
 
static Optional< std::string > clang::tidy::bugprone::getUnderscoreCapitalFixup (StringRef Name)
 
static bool clang::tidy::bugprone::startsWithUnderscoreInGlobalNamespace (StringRef Name, bool IsInGlobalNamespace)
 
static Optional< std::string > clang::tidy::bugprone::getUnderscoreGlobalNamespaceFixup (StringRef Name, bool IsInGlobalNamespace)
 
static std::string clang::tidy::bugprone::getNonReservedFixup (std::string Name)
 
static Optional< RenamerClangTidyCheck::FailureInfo > clang::tidy::bugprone::getFailureInfoImpl (StringRef Name, bool IsInGlobalNamespace, const LangOptions &LangOpts, bool Invert, ArrayRef< std::string > 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 []