Home
last modified time | relevance | path

Searched refs:CurrentToken (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DTokenAnnotator.cpp128 : Style(Style), Line(Line), CurrentToken(Line.First), AutoFound(false), in AnnotatingParser()
150 if (!CurrentToken) in parseAngle()
153 auto *Left = CurrentToken->Previous; // The '<'. in parseAngle()
172 if (BeforeLess->is(tok::kw_operator) && CurrentToken->is(tok::l_paren)) in parseAngle()
185 if (Style.isJava() && CurrentToken->is(tok::question)) in parseAngle()
188 for (bool SeenTernaryOperator = false, MaybeAngles = true; CurrentToken;) { in parseAngle()
190 if (CurrentToken->is(tok::greater)) { in parseAngle()
191 const auto *Next = CurrentToken->Next; in parseAngle()
192 if (CurrentToken->isNot(TT_TemplateCloser)) { in parseAngle()
201 CurrentToken->getStartOfNonWhitespace() == in parseAngle()
[all …]
H A DDefinitionBlockSeparator.cpp51 for (const FormatToken *CurrentToken = Line->First; CurrentToken; in separateBlocks() local
52 CurrentToken = CurrentToken->Next) { in separateBlocks()
54 if (CurrentToken->isOneOf(tok::kw_class, tok::kw_struct, in separateBlocks()
57 CurrentToken->is(ExtraKeywords.kw_function))) { in separateBlocks()
60 if (!ExcludeEnum && CurrentToken->is(tok::kw_enum)) in separateBlocks()
63 BracketLevel += GetBracketLevelChange(CurrentToken); in separateBlocks()
121 for (const FormatToken *CurrentToken = CurrentLine->First; CurrentToken; in separateBlocks() local
122 CurrentToken = CurrentToken->Next) { in separateBlocks()
124 if (CurrentToken->is(tok::kw_enum)) in separateBlocks()
126 else if (FoundEnumKeyword && CurrentToken->is(tok::l_brace)) in separateBlocks()
[all …]
H A DTokenAnnotator.h265 FormatToken *CurrentToken,
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DBuiltinTargetFeatures.h45 char CurrentToken = FeatureList[i]; in getAndFeatures() local
46 switch (CurrentToken) { in getAndFeatures()
63 HasFeatures = CurrentToken == ')' ? hasRequiredFeatures(F) in getAndFeatures()
67 if (CurrentToken == '|') { in getAndFeatures()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DMustache.cpp290 Token &CurrentToken, Token::Type CurrentType) { in stripTokenBefore() argument
297 CurrentToken.setIndentation(Indentation); in stripTokenBefore()
351 Token &CurrentToken = Tokens[Idx]; in tokenize() local
352 Token::Type CurrentType = CurrentToken.getType(); in tokenize()
373 stripTokenBefore(Tokens, Idx, CurrentToken, CurrentType); in tokenize()
471 Token CurrentToken = Tokens[CurrentPtr]; in parseMustache() local
473 Accessor A = CurrentToken.getAccessor(); in parseMustache()
476 switch (CurrentToken.getType()) { in parseMustache()
478 CurrentNode = createTextNode(std::move(CurrentToken.TokenBody), Parent, in parseMustache()
498 CurrentNode->setIndentation(CurrentToken.getIndentation()); in parseMustache()