clang API Documentation

Classes | Namespaces | Enumerations
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 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::CommaSeparatedList::ColumnFormat
 A struct that holds information on how to format a given list with a specific number of columns.
struct  clang::format::AdditionalKeywords
 Encapsulates keywords that are context sensitive or for languages not properly supported by Clang's lexer. More...

Namespaces

namespace  clang
namespace  clang::format

Enumerations

enum  clang::format::TokenType {
  clang::format::TT_ArrayInitializerLSquare, clang::format::TT_ArraySubscriptLSquare, clang::format::TT_AttributeParen, clang::format::TT_BinaryOperator,
  clang::format::TT_BitFieldColon, clang::format::TT_BlockComment, clang::format::TT_CastRParen, clang::format::TT_ConditionalExpr,
  clang::format::TT_ConflictAlternative, clang::format::TT_ConflictEnd, clang::format::TT_ConflictStart, clang::format::TT_CtorInitializerColon,
  clang::format::TT_CtorInitializerComma, clang::format::TT_DesignatedInitializerPeriod, clang::format::TT_DictLiteral, clang::format::TT_FunctionDeclarationName,
  clang::format::TT_FunctionLBrace, clang::format::TT_FunctionTypeLParen, clang::format::TT_ImplicitStringLiteral, clang::format::TT_InheritanceColon,
  clang::format::TT_InlineASMColon, clang::format::TT_JavaAnnotation, clang::format::TT_LambdaLSquare, clang::format::TT_LeadingJavaAnnotation,
  clang::format::TT_LineComment, clang::format::TT_ObjCBlockLBrace, clang::format::TT_ObjCBlockLParen, clang::format::TT_ObjCDecl,
  clang::format::TT_ObjCForIn, clang::format::TT_ObjCMethodExpr, clang::format::TT_ObjCMethodSpecifier, clang::format::TT_ObjCProperty,
  clang::format::TT_OverloadedOperator, clang::format::TT_OverloadedOperatorLParen, clang::format::TT_PointerOrReference, clang::format::TT_PureVirtualSpecifier,
  clang::format::TT_RangeBasedForLoopColon, clang::format::TT_RegexLiteral, clang::format::TT_SelectorName, clang::format::TT_StartOfName,
  clang::format::TT_TemplateCloser, clang::format::TT_TemplateOpener, clang::format::TT_TrailingAnnotation, clang::format::TT_TrailingReturnArrow,
  clang::format::TT_TrailingUnaryOperator, clang::format::TT_UnaryOperator, clang::format::TT_Unknown
}
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 }

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.