clang
15.0.0git
|
#include "TokenAnnotator.h"
#include "FormatToken.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/TokenKinds.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Support/Debug.h"
Go to the source code of this file.
Namespaces | |
clang | |
clang::format | |
Macros | |
#define | DEBUG_TYPE "format-token-annotator" |
Functions | |
static unsigned | clang::format::maxNestingDepth (const AnnotatedLine &Line) |
static bool | clang::format::isFunctionDeclarationName (bool IsCpp, const FormatToken &Current, const AnnotatedLine &Line) |
static bool | clang::format::isAllmanBrace (const FormatToken &Tok) |
static bool | clang::format::IsFunctionArgument (const FormatToken &Tok) |
static bool | clang::format::isItAnEmptyLambdaAllowed (const FormatToken &Tok, FormatStyle::ShortLambdaStyle ShortLambdaOption) |
static bool | clang::format::isAllmanLambdaBrace (const FormatToken &Tok) |
static const FormatToken * | clang::format::getFirstNonComment (const AnnotatedLine &Line) |
This file implements a token annotator, i.e. creates AnnotatedTokens
out of FormatTokens
with required extra information.
Definition in file TokenAnnotator.cpp.
#define DEBUG_TYPE "format-token-annotator" |
Definition at line 22 of file TokenAnnotator.cpp.
unsigned BindingStrength |
Definition at line 1546 of file TokenAnnotator.cpp.
Definition at line 1554 of file TokenAnnotator.cpp.
Definition at line 1555 of file TokenAnnotator.cpp.
Definition at line 1550 of file TokenAnnotator.cpp.
Definition at line 1549 of file TokenAnnotator.cpp.
Definition at line 1551 of file TokenAnnotator.cpp.
tok::TokenKind ContextKind |
Definition at line 1545 of file TokenAnnotator.cpp.
Referenced by clang::Sema::getCurrentMangleNumberContext().
enum { ... } ContextType |
Referenced by clang::Sema::computeDeclContext().
FormatToken* FirstObjCSelectorName = nullptr |
Definition at line 1552 of file TokenAnnotator.cpp.
FormatToken* FirstStartOfName = nullptr |
Definition at line 1553 of file TokenAnnotator.cpp.
Definition at line 1556 of file TokenAnnotator.cpp.
Definition at line 1557 of file TokenAnnotator.cpp.
bool IsExpression |
Definition at line 1547 of file TokenAnnotator.cpp.
unsigned LongestObjCSelectorName = 0 |
Definition at line 1548 of file TokenAnnotator.cpp.
AnnotatingParser& P |
Definition at line 1579 of file TokenAnnotator.cpp.