clang 19.0.0git
Namespaces | Macros | Functions | Variables
FormatToken.cpp File Reference

This file implements specific functions of FormatTokens and their roles. More...

#include "FormatToken.h"
#include "ContinuationIndenter.h"
#include "clang/Basic/TransformTypeTraits.def"

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
namespace  clang::format
 

Macros

#define TYPE(X)   #X,
 
#define TRANSFORM_TYPE_TRAIT_DEF(_, Trait)   case tok::kw___##Trait:
 

Functions

const char * clang::format::getTokenTypeName (TokenType Type)
 Determines the name of a token type.
 
static unsigned clang::format::CodePointsBetween (const FormatToken *Begin, const FormatToken *End)
 

Variables

bool clang::format::IsCpp = false
 Whether the language is C/C++/Objective-C/Objective-C++.
 
static SmallVector< StringRef > clang::format::CppNonKeywordTypes
 

Detailed Description

This file implements specific functions of FormatTokens and their roles.

Definition in file FormatToken.cpp.

Macro Definition Documentation

◆ TRANSFORM_TYPE_TRAIT_DEF

#define TRANSFORM_TYPE_TRAIT_DEF (   _,
  Trait 
)    case tok::kw___##Trait:

◆ TYPE

#define TYPE (   X)    #X,