clang 18.0.0git
|
This file implements a token annotator, i.e. More...
#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"
#include "clang/Basic/TransformTypeTraits.def"
Go to the source code of this file.
Namespaces | |
namespace | clang |
namespace | clang::format |
Macros | |
#define | DEBUG_TYPE "format-token-annotator" |
#define | TRANSFORM_TYPE_TRAIT_DEF(_, Trait) tok::kw___##Trait, |
Functions | |
static bool | clang::format::mustBreakAfterAttributes (const FormatToken &Tok, const FormatStyle &Style) |
static unsigned | clang::format::maxNestingDepth (const AnnotatedLine &Line) |
static FormatToken * | clang::format::getFunctionName (const AnnotatedLine &Line) |
static bool | clang::format::isCtorOrDtorName (const FormatToken *Tok) |
static bool | clang::format::isFunctionDeclarationName (bool IsCpp, const FormatToken &Current, const AnnotatedLine &Line, FormatToken *&ClosingParen) |
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) |
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.
#define TRANSFORM_TYPE_TRAIT_DEF | ( | _, | |
Trait | |||
) | tok::kw___##Trait, |
unsigned BindingStrength |
Definition at line 1740 of file TokenAnnotator.cpp.
Definition at line 1748 of file TokenAnnotator.cpp.
Definition at line 1749 of file TokenAnnotator.cpp.
Definition at line 1744 of file TokenAnnotator.cpp.
Definition at line 1743 of file TokenAnnotator.cpp.
Definition at line 1745 of file TokenAnnotator.cpp.
tok::TokenKind ContextKind |
Definition at line 1739 of file TokenAnnotator.cpp.
enum { ... } ContextType |
Referenced by clang::Sema::computeDeclContext(), and getPreferredTypeOfUnaryArg().
FormatToken* FirstObjCSelectorName = nullptr |
Definition at line 1746 of file TokenAnnotator.cpp.
FormatToken* FirstStartOfName = nullptr |
Definition at line 1747 of file TokenAnnotator.cpp.
Definition at line 1750 of file TokenAnnotator.cpp.
Definition at line 1751 of file TokenAnnotator.cpp.
bool IsExpression |
Definition at line 1741 of file TokenAnnotator.cpp.
unsigned LongestObjCSelectorName = 0 |
Definition at line 1742 of file TokenAnnotator.cpp.
AnnotatingParser& P |
Definition at line 1781 of file TokenAnnotator.cpp.
Definition at line 1752 of file TokenAnnotator.cpp.
Definition at line 1755 of file TokenAnnotator.cpp.