clang  6.0.0svn
Classes | Namespaces | Macros | Enumerations | Functions
FormatToken.h File Reference

This file contains the declaration of the FormatToken, a wrapper around Token with additional information related to formatting. More...

#include "clang/Basic/IdentifierTable.h"
#include "clang/Basic/OperatorPrecedence.h"
#include "clang/Format/Format.h"
#include "clang/Lex/Lexer.h"
#include <memory>
#include <unordered_set>
Include dependency graph for FormatToken.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  clang::format::FormatToken
 A wrapper around a Token storing information about the whitespace characters preceding it. More...
 
class  clang::format::TokenRole
 
class  clang::format::CommaSeparatedList
 
struct  clang::format::AdditionalKeywords
 Encapsulates keywords that are context sensitive or for languages not properly supported by Clang's lexer. More...
 

Namespaces

 clang
 Dataflow Directional Tag Classes.
 
 clang::format
 

Macros

#define LIST_TOKEN_TYPES
 
#define TYPE(X)   TT_##X,
 

Enumerations

enum  clang::format::TokenType { clang::format::NUM_TOKEN_TYPES }
 
enum  clang::format::BraceBlockKind { clang::format::BK_Unknown, clang::format::BK_Block, clang::format::BK_BracedInit }
 
enum  clang::format::ParameterPackingKind { clang::format::PPK_BinPacked, clang::format::PPK_OnePerLine, clang::format::PPK_Inconclusive }
 
enum  clang::format::FormatDecision { clang::format::FD_Unformatted, clang::format::FD_Continue, clang::format::FD_Break }
 

Functions

const char * clang::format::getTokenTypeName (TokenType Type)
 Determines the name of a token type. More...
 

Detailed Description

This file contains the declaration of the FormatToken, a wrapper around Token with additional information related to formatting.

Definition in file FormatToken.h.

Macro Definition Documentation

◆ LIST_TOKEN_TYPES

#define LIST_TOKEN_TYPES

Definition at line 29 of file FormatToken.h.

Referenced by clang::format::getTokenTypeName().

◆ TYPE

#define TYPE (   X)    TT_##X,

Definition at line 98 of file FormatToken.h.