Home
last modified time | relevance | path

Searched defs:Tok (Results 1 – 25 of 91) sorted by relevance

1234

/freebsd-11-stable/contrib/llvm-project/clang/lib/Format/
HDTokenAnnotator.cpp40 static bool canBeObjCSelectorComponent(const FormatToken &Tok) { in canBeObjCSelectorComponent()
295 for (FormatToken *Tok = Left; Tok != CurrentToken; Tok = Tok->Next) { in parseParens() local
358 FormatToken *Tok = CurrentToken; in parseParens() local
368 bool isCSharpAttributeSpecifier(const FormatToken &Tok) { in isCSharpAttributeSpecifier()
408 bool isCpp11AttributeSpecifier(const FormatToken &Tok) { in isCpp11AttributeSpecifier()
648 FormatToken *Tok = CurrentToken; in parseSquare() local
753 FormatToken *Tok = CurrentToken; in consumeToken() local
1110 FormatToken *Tok = CurrentToken; in parsePreprocessorDirective() local
1207 bool isClosureImportStatement(const FormatToken &Tok) { in isClosureImportStatement()
1601 bool isStartOfName(const FormatToken &Tok) { in isStartOfName()
[all …]
HDAffectedRangeManager.cpp84 bool AffectedRangeManager::affectsLeadingEmptyLines(const FormatToken &Tok) { in affectsLeadingEmptyLines()
119 for (FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) { in nonPPLineAffected() local
HDUnwrappedLineFormatter.cpp233 const FormatToken *Tok = I[-1]->First; in tryFitMultipleLinesInOne() local
538 const FormatToken *Tok = Line.First->getNextNonComment(); in tryMergeSimpleBlock() local
582 FormatToken *Tok = I[1]->First; in tryMergeSimpleBlock() local
689 for (const FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) { in containsMustBreak() local
705 for (FormatToken *Tok = B.First; Tok; Tok = Tok->Next) { in join() local
719 static void markFinalized(FormatToken *Tok) { in markFinalized()
1152 for (const FormatToken *Tok = TheLine.First; Tok; Tok = Tok->Next) in format() local
1176 for (FormatToken *Tok = TheLine.First->Next; Tok; Tok = Tok->Next) in format() local
HDBreakableToken.h234 BreakableToken(const FormatToken &Tok, bool InPPDirective, in BreakableToken()
239 const FormatToken &Tok; variable
HDContinuationIndenter.cpp37 static unsigned getLengthToMatchingParen(const FormatToken &Tok, in getLengthToMatchingParen()
107 static unsigned getLengthToNextOperator(const FormatToken &Tok) { in getLengthToNextOperator()
115 static bool startsSegmentOfBuilderTypeCall(const FormatToken &Tok) { in startsSegmentOfBuilderTypeCall()
552 const FormatToken *Tok = &Previous; in addTokenOnCurrentLine() local
1393 for (const FormatToken *Tok = &Current; in moveStatePastScopeOpener() local
1724 auto Tok = Current.getPreviousNonComment(); in getEnclosingFunctionName() local
HDFormatTokenLexer.cpp337 bool FormatTokenLexer::precedesOperand(FormatToken *Tok) { in precedesOperand()
619 Token Tok = FormatTok->Tok; in getStashedToken() local
841 void FormatTokenLexer::readRawToken(FormatToken &Tok) { in readRawToken()
HDWhitespaceManager.cpp27 WhitespaceManager::Change::Change(const FormatToken &Tok, in Change()
45 void WhitespaceManager::replaceWhitespace(FormatToken &Tok, unsigned Newlines, in replaceWhitespace()
58 void WhitespaceManager::addUntouchableToken(const FormatToken &Tok, in addUntouchableToken()
75 const FormatToken &Tok, unsigned Offset, unsigned ReplaceChars, in replaceWhitespaceInToken()
/freebsd-11-stable/contrib/llvm-project/clang/lib/Lex/
HDPPMacroExpansion.cpp767 Token Tok; in ReadMacroCallArgumentList() local
1155 static bool EvaluateHasIncludeCommon(Token &Tok, in EvaluateHasIncludeCommon()
1245 static bool EvaluateHasInclude(Token &Tok, IdentifierInfo *II, in EvaluateHasInclude()
1252 static bool EvaluateHasIncludeNext(Token &Tok, in EvaluateHasIncludeNext()
1286 static void EvaluateFeatureLikeBuiltinMacro(llvm::raw_svector_ostream& OS, in EvaluateFeatureLikeBuiltinMacro()
1287 Token &Tok, IdentifierInfo *II, in EvaluateFeatureLikeBuiltinMacro()
1393 static IdentifierInfo *ExpectFeatureIdentifierInfo(Token &Tok, in ExpectFeatureIdentifierInfo()
1467 void Preprocessor::ExpandBuiltinMacro(Token &Tok) { in ExpandBuiltinMacro()
1616 [this](Token &Tok, bool &HasLexedNextToken) -> int { in ExpandBuiltinMacro()
1623 [this](Token &Tok, bool &HasLexedNextToken) -> int { in ExpandBuiltinMacro()
[all …]
HDPragma.cpp102 PragmaIntroducer Introducer, Token &Tok) { in HandlePragma()
133 Token &Tok; member
171 Token Tok; in HandlePragmaDirective() local
183 void Preprocessor::Handle_Pragma(Token &Tok) { in Handle_Pragma()
336 void Preprocessor::HandleMicrosoft__pragma(Token &Tok) { in HandleMicrosoft__pragma()
417 Token Tok; in HandlePragmaPoison() local
547 IdentifierInfo *Preprocessor::ParsePragmaPushOrPopMacro(Token &Tok) { in ParsePragmaPushOrPopMacro()
660 void Preprocessor::HandlePragmaIncludeAlias(Token &Tok) { in HandlePragmaIncludeAlias()
746 Preprocessor &PP, Token &Tok, in LexModuleNameComponent()
767 Preprocessor &PP, Token &Tok, in LexModuleName()
[all …]
HDTokenLexer.cpp38 void TokenLexer::Init(Token &Tok, SourceLocation ELEnd, MacroInfo *MI, in Init()
623 bool TokenLexer::Lex(Token &Tok) { in Lex()
725 bool TokenLexer::pasteTokens(Token &Tok) { in pasteTokens()
946 void TokenLexer::HandleMicrosoftCommentPaste(Token &Tok, SourceLocation OpLoc) { in HandleMicrosoftCommentPaste()
1042 Token &Tok = *begin_tokens; in updateConsecutiveMacroArgTokens() local
1065 Token &Tok = *begin_tokens; in updateLocForMacroArgTokens() local
HDMacroArgs.cpp187 Token &Tok = Result.back(); in getPreExpArgument() local
212 Token Tok; in StringifyArgument() local
224 const Token &Tok = *ArgToks; in StringifyArgument() local
HDPreprocessor.cpp233 void Preprocessor::DumpToken(const Token &Tok, bool DumpFlags) const { in DumpToken() argument
463 StringRef Preprocessor::getSpelling(const Token &Tok, in getSpelling()
485 void Preprocessor::CreateString(StringRef Str, Token &Tok, in CreateString()
634 Token Tok; in SkipTokensWhileUsingPCH() local
1346 bool Preprocessor::parseSimpleIntegerLiteral(Token &Tok, uint64_t &Value) { in parseSimpleIntegerLiteral()
HDPPCaching.cpp116 void Preprocessor::AnnotatePreviousCachedTokens(const Token &Tok) { in AnnotatePreviousCachedTokens()
HDPPDirectives.cpp429 Token Tok; in SkipExcludedConditionalBlock() local
1378 void Preprocessor::HandleUserDiagnosticDirective(Token &Tok, in HandleUserDiagnosticDirective()
1400 void Preprocessor::HandleIdentSCCSDirective(Token &Tok) { in HandleIdentSCCSDirective()
1435 void Preprocessor::HandleMacroPublicDirective(Token &Tok) { in HandleMacroPublicDirective()
1551 auto Tok = std::make_unique<Token[]>(1); in EnterAnnotationToken() local
2256 void Preprocessor::HandleMicrosoftImportDirective(Token &Tok) { in HandleMicrosoftImportDirective()
2316 bool Preprocessor::ReadMacroParameterList(MacroInfo *MI, Token &Tok) { in ReadMacroParameterList()
2462 Token Tok; in ReadOptionalMacroParameterListAndBody() local
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Inclusions/
HDHeaderIncludes.cpp46 Token Tok; in getOffsetAfterTokenSequence() local
57 Lexer &Lex, StringRef Name, Token &Tok, in checkAndConsumeDirectiveWithName()
69 void skipComments(Lexer &Lex, Token &Tok) { in skipComments()
90 [&Consume](const SourceManager &SM, Lexer &Lex, Token Tok) { in getOffsetAfterHeaderGuardsAndComments()
99 [](const SourceManager &SM, Lexer &Lex, Token Tok) -> unsigned { in getOffsetAfterHeaderGuardsAndComments()
109 [](const SourceManager &SM, Lexer &Lex, Token Tok) -> unsigned { in getOffsetAfterHeaderGuardsAndComments()
121 bool checkAndConsumeInclusiveDirective(Lexer &Lex, Token &Tok) { in checkAndConsumeInclusiveDirective()
159 [](const SourceManager &SM, Lexer &Lex, Token Tok) { in getMaxHeaderInsertionOffset()
/freebsd-11-stable/contrib/llvm-project/clang/lib/Parse/
HDParsePragma.cpp1161 static StringRef getIdentifier(const Token &Tok) { in getIdentifier()
1328 getAttributeSubjectRulesRecoveryPointForToken(const Token &Tok) { in getAttributeSubjectRulesRecoveryPointForToken()
1583 Token Tok; in HandlePragma() local
1644 Token Tok; in HandlePragma() local
1756 Token Tok; in HandlePragma() local
1798 Token Tok; in HandlePragma() local
1845 Token Tok; in ParseAlignPragma() local
1930 Token Tok; in HandlePragma() local
2010 Token Tok; in HandlePragma() local
2071 Token Tok; in HandlePragma() local
[all …]
HDParseOpenMP.cpp162 Token Tok = P.getCurToken(); in parseOpenMPDirectiveKind() local
192 Token Tok = P.getCurToken(); in parseOpenMPReductionId() local
701 const Token &Tok = P.getCurToken(); in parseDeclareSimdClauses() local
840 const Token &Tok = P.getCurToken(); in parseImplementationSelector() local
916 const Token &Tok = P.getCurToken(); in parseDeviceSelector() local
1182 const Token &Tok = P.getCurToken(); in parseOpenMPSimpleClause() local
2584 Token Tok = P.getCurToken(); in isMapModifier() local
2662 Token Tok = P.getCurToken(); in isMapType() local
2676 Token Tok = P.getCurToken(); in parseMapType() local
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
HDCommentBriefParser.h35 Token Tok; variable
HDCommentParser.h55 Token Tok; variable
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/
HDPrintPreprocessedOutput.cpp165 const Token &Tok) { in AvoidConcat()
597 bool PrintPPOutputPPCallbacks::HandleFirstTokOnLine(Token &Tok) { in HandleFirstTokOnLine()
712 static void PrintPreprocessedTokens(Preprocessor &PP, Token &Tok, in PrintPreprocessedTokens()
833 Token Tok; in DoPrintMacros() local
914 Token Tok; in DoPrintPreprocessedInput() local
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Transformer/
HDSourceCode.cpp26 Optional<Token> Tok = Lexer::findNextToken( in maybeExtendRange() local
/freebsd-11-stable/contrib/llvm-project/clang/lib/Rewrite/
HDHTMLRewrite.cpp458 Token Tok; in SyntaxHighlight() local
545 Token Tok; in HighlightMacros() local
598 Token Tok; in HighlightMacros() local
HDTokenRewriter.cpp88 Token Tok; in AddTokenBefore() local
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Syntax/
HDTokens.cpp264 All, [&](const syntax::Token &Tok) { return Tok.location() < Loc; }); in spelledTokensTouching()
274 for (const syntax::Token &Tok : spelledTokensTouching(Loc, Tokens)) { in spelledIdentifierTouching() local
509 const syntax::Token &Tok = Result.ExpandedTokens[NextExpanded]; in advance() local
568 const auto &Tok = Result.ExpandedTokens[I]; in buildSpelledTokens() local
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
HDCommentParser.cpp59 const Token &Tok = Toks[Pos.CurToken]; in setupBuffer() local
153 bool lexWord(Token &Tok) { in lexWord()
186 bool lexDelimitedSeq(Token &Tok, char OpenDelim, char CloseDelim) { in lexDelimitedSeq()

1234