clang  8.0.0svn
Namespaces | Macros | Functions
TokenAnnotator.cpp File Reference

This file implements a token annotator, i.e. More...

#include "TokenAnnotator.h"
#include "clang/Basic/SourceManager.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Support/Debug.h"
Include dependency graph for TokenAnnotator.cpp:

Go to the source code of this file.

Namespaces

 clang
 Dataflow Directional Tag Classes.
 
 clang::format
 

Macros

#define DEBUG_TYPE   "format-token-annotator"
 

Functions

static unsigned clang::format::maxNestingDepth (const AnnotatedLine &Line)
 
static bool clang::format::isFunctionDeclarationName (const FormatToken &Current, const AnnotatedLine &Line)
 
static bool clang::format::isAllmanBrace (const FormatToken &Tok)
 

Detailed Description

This file implements a token annotator, i.e.

creates AnnotatedTokens out of FormatTokens with required extra information.

Definition in file TokenAnnotator.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "format-token-annotator"

Definition at line 21 of file TokenAnnotator.cpp.

Variable Documentation

◆ BindingStrength

unsigned BindingStrength

Definition at line 1169 of file TokenAnnotator.cpp.

◆ CanBeExpression

bool CanBeExpression = true

Definition at line 1177 of file TokenAnnotator.cpp.

◆ CaretFound

bool CaretFound = false

Definition at line 1181 of file TokenAnnotator.cpp.

◆ ColonIsDictLiteral

bool ColonIsDictLiteral = false

Definition at line 1173 of file TokenAnnotator.cpp.

◆ ColonIsForRangeExpr

bool ColonIsForRangeExpr = false

Definition at line 1172 of file TokenAnnotator.cpp.

◆ ColonIsObjCMethodExpr

bool ColonIsObjCMethodExpr = false

Definition at line 1174 of file TokenAnnotator.cpp.

◆ ContextKind

tok::TokenKind ContextKind

◆ FirstObjCSelectorName

FormatToken* FirstObjCSelectorName = nullptr

Definition at line 1175 of file TokenAnnotator.cpp.

◆ FirstStartOfName

FormatToken* FirstStartOfName = nullptr

Definition at line 1176 of file TokenAnnotator.cpp.

◆ InCpp11AttributeSpecifier

bool InCpp11AttributeSpecifier = false

Definition at line 1183 of file TokenAnnotator.cpp.

◆ InCtorInitializer

bool InCtorInitializer = false

Definition at line 1179 of file TokenAnnotator.cpp.

◆ InInheritanceList

bool InInheritanceList = false

Definition at line 1180 of file TokenAnnotator.cpp.

◆ InTemplateArgument

bool InTemplateArgument = false

Definition at line 1178 of file TokenAnnotator.cpp.

◆ IsExpression

bool IsExpression

Definition at line 1170 of file TokenAnnotator.cpp.

◆ IsForEachMacro

bool IsForEachMacro = false

Definition at line 1182 of file TokenAnnotator.cpp.

◆ LongestObjCSelectorName

unsigned LongestObjCSelectorName = 0

Definition at line 1171 of file TokenAnnotator.cpp.

◆ P

AnnotatingParser& P

Definition at line 1189 of file TokenAnnotator.cpp.