clang-tools  6.0.0svn
Classes | Namespaces | Macros | Enumerations | Functions | Variables
IdentifierNamingCheck.cpp File Reference
#include "IdentifierNamingCheck.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include "llvm/ADT/DenseMapInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Format.h"
Include dependency graph for IdentifierNamingCheck.cpp:

Go to the source code of this file.

Classes

struct  llvm::DenseMapInfo< clang::tidy::readability::IdentifierNamingCheck::NamingCheckId >
 Specialisation of DenseMapInfo to allow NamingCheckId objects in DenseMaps. More...
 

Namespaces

 llvm
 
 clang
 
 clang::tidy
 
 clang::tidy::readability
 

Macros

#define DEBUG_TYPE   "clang-tidy"
 
#define NAMING_KEYS(m)
 
#define ENUMERATE(v)   SK_ ## v,
 
#define STRINGIZE(v)   #v,
 

Enumerations

enum  clang::tidy::readability::StyleKind { clang::tidy::readability::SK_Count, clang::tidy::readability::SK_Invalid }
 

Functions

static bool clang::tidy::readability::matchesStyle (StringRef Name, IdentifierNamingCheck::NamingStyle Style)
 
static std::string clang::tidy::readability::fixupWithCase (StringRef Name, IdentifierNamingCheck::CaseType Case)
 
static std::string clang::tidy::readability::fixupWithStyle (StringRef Name, const IdentifierNamingCheck::NamingStyle &Style)
 
static StyleKind clang::tidy::readability::findStyleKind (const NamedDecl *D, const std::vector< llvm::Optional< IdentifierNamingCheck::NamingStyle >> &NamingStyles)
 
static void clang::tidy::readability::addUsage (IdentifierNamingCheck::NamingCheckFailureMap &Failures, const IdentifierNamingCheck::NamingCheckId &Decl, SourceRange Range, SourceManager *SourceMgr=nullptr)
 
static void clang::tidy::readability::addUsage (IdentifierNamingCheck::NamingCheckFailureMap &Failures, const NamedDecl *Decl, SourceRange Range, SourceManager *SourceMgr=nullptr)
 Convenience method when the usage to be added is a NamedDecl. More...
 

Variables

static StringRef const clang::tidy::readability::StyleNames []
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "clang-tidy"

Definition at line 20 of file IdentifierNamingCheck.cpp.

◆ ENUMERATE

#define ENUMERATE (   v)    SK_ ## v,

Definition at line 114 of file IdentifierNamingCheck.cpp.

◆ NAMING_KEYS

#define NAMING_KEYS (   m)

Definition at line 67 of file IdentifierNamingCheck.cpp.

◆ STRINGIZE

#define STRINGIZE (   v)    #v,