Home
last modified time | relevance | path

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

12345

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DTokenAnnotator.cpp27 static bool mustBreakAfterAttributes(const FormatToken &Tok, in mustBreakAfterAttributes()
59 static bool canBeObjCSelectorComponent(const FormatToken &Tok) { in canBeObjCSelectorComponent()
81 static bool isKeywordWithCondition(const FormatToken &Tok) { in isKeywordWithCondition()
87 static bool isCppAttribute(bool IsCpp, const FormatToken &Tok) { in isCppAttribute()
518 for (FormatToken *Tok = &OpeningParen; Tok != CurrentToken; in parseParens() local
611 FormatToken *Tok = CurrentToken; in parseParens() local
621 bool isCSharpAttributeSpecifier(const FormatToken &Tok) { in isCSharpAttributeSpecifier()
894 FormatToken *Tok = CurrentToken; in parseSquare() local
1006 bool isTableGenDAGArgBreakingOperator(const FormatToken &Tok) { in isTableGenDAGArgBreakingOperator()
1079 FormatToken *Tok = CurrentToken; in parseTableGenSimpleValue() local
[all …]
H A DQualifierAlignmentFixer.cpp133 auto *Tok = Begin; in rotateTokens() local
156 isConfiguredQualifier(const FormatToken *const Tok, in isConfiguredQualifier()
161 static bool isQualifier(const FormatToken *const Tok) { in isQualifier()
181 tooling::Replacements &Fixes, const FormatToken *const Tok, in analyzeRight()
372 tooling::Replacements &Fixes, const FormatToken *const Tok, in analyzeLeft()
428 const auto IsStartOfType = [](const FormatToken *const Tok) -> bool { in analyzeLeft()
564 for (const auto *Tok = First; Tok && Tok != Last && Tok->Next; in fixQualifierAlignment() local
615 bool isQualifierOrType(const FormatToken *Tok, const LangOptions &LangOpts) { in isQualifierOrType()
620 bool isConfiguredQualifierOrType(const FormatToken *Tok, in isConfiguredQualifierOrType()
629 bool isPossibleMacro(const FormatToken *Tok) { in isPossibleMacro()
H A DUnwrappedLineParser.cpp492 FormatToken *Tok = FormatTok; in calculateBraceTypes() local
498 FormatToken *Tok; in calculateBraceTypes() member
768 FormatToken *Tok = FormatTok; in parseBlock() local
1224 static bool tokenCanStartNewLine(const FormatToken &Tok) { in tokenCanStartNewLine()
1289 static bool isC78Type(const FormatToken &Tok) { in isC78Type()
1302 static bool isC78ParameterDecl(const FormatToken *Tok, const FormatToken *Next, in isC78ParameterDecl()
1500 FormatToken *Tok = parseIfThenElse(IfKind); in parseStructuralElement() local
2160 FormatToken *Tok = Tokens->getNextToken(); in tryToParsePropertyAccessor() local
2720 FormatToken *Tok = nullptr; in parseUnbracedBody() local
3900 FormatToken *Tok = Tokens->getNextToken(); in tryToParseSimpleAttribute() local
[all …]
H A DFormatTokenLexer.cpp381 const auto Tok = *(Tokens.end() - 3); in tryMergeCSharpStringLiteral() local
547 auto Tok = Tokens.size() > 2 ? First[-1] : nullptr; in tryMergeGreaterGreater() local
602 bool FormatTokenLexer::precedesOperand(FormatToken *Tok) { in precedesOperand()
848 FormatToken *Tok = Tokens.back(); in handleTableGenNumericLikeIdentifier() local
1073 Token Tok = FormatTok->Tok; in getStashedToken() local
1379 bool FormatTokenLexer::readRawTokenVerilogSpecific(Token &Tok) { in readRawTokenVerilogSpecific()
1420 void FormatTokenLexer::readRawToken(FormatToken &Tok) { in readRawToken()
H A DAffectedRangeManager.cpp84 bool AffectedRangeManager::affectsLeadingEmptyLines(const FormatToken &Tok) { in affectsLeadingEmptyLines()
120 for (FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) { in nonPPLineAffected() local
H A DUnwrappedLineFormatter.cpp30 bool isRecordLBrace(const FormatToken &Tok) { in isRecordLBrace()
287 const FormatToken *Tok = PreviousLine->First; in tryFitMultipleLinesInOne() local
742 const FormatToken *Tok = Line.First->getNextNonComment(); in tryMergeSimpleBlock() local
815 FormatToken *Tok = I[1]->First; in tryMergeSimpleBlock() local
923 for (const FormatToken *Tok = Line->First->Next; Tok; Tok = Tok->Next) in containsMustBreak() local
938 for (FormatToken *Tok = B.First; Tok; Tok = Tok->Next) { in join() local
952 static void markFinalized(FormatToken *Tok) { in markFinalized()
1421 for (const FormatToken *Tok = TheLine.First; Tok; Tok = Tok->Next) in format() local
1447 for (FormatToken *Tok = TheLine.First->Next; Tok; Tok = Tok->Next) in format() local
H A DContinuationIndenter.cpp41 static bool shouldUnindentNextOperator(const FormatToken &Tok) { in shouldUnindentNextOperator()
49 static unsigned getLengthToMatchingParen(const FormatToken &Tok, in getLengthToMatchingParen()
119 static unsigned getLengthToNextOperator(const FormatToken &Tok) { in getLengthToNextOperator()
127 static bool startsSegmentOfBuilderTypeCall(const FormatToken &Tok) { in startsSegmentOfBuilderTypeCall()
727 const FormatToken *Tok = &Previous; in addTokenOnCurrentLine() local
790 auto IsOpeningBracket = [&](const FormatToken &Tok) { in addTokenOnCurrentLine()
1524 auto IsWrappedConditional = [](const FormatToken &Tok) { in moveStateToNextToken()
1919 for (const FormatToken *Tok = &Current; in moveStatePastScopeOpener() local
2281 auto Tok = Current.getPreviousNonComment(); in getEnclosingFunctionName() local
H A DFormatTokenSource.h77 FormatToken *Tok; in getNextNonComment() local
177 FormatToken *Tok = Tokens[Position]; variable
H A DMacroExpander.cpp184 auto pushToken = [&](FormatToken *Tok) { in expand()
191 auto expandArgument = [&](FormatToken *Tok) -> bool { in expand()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPMacroExpansion.cpp777 Token Tok; in ReadMacroCallArgumentList() local
1192 static bool EvaluateHasIncludeCommon(Token &Tok, IdentifierInfo *II, in EvaluateHasIncludeCommon()
1285 EmbedResult Preprocessor::EvaluateHasEmbed(Token &Tok, IdentifierInfo *II) { in EvaluateHasEmbed()
1382 bool Preprocessor::EvaluateHasInclude(Token &Tok, IdentifierInfo *II) { in EvaluateHasInclude()
1386 bool Preprocessor::EvaluateHasIncludeNext(Token &Tok, IdentifierInfo *II) { in EvaluateHasIncludeNext()
1396 static void EvaluateFeatureLikeBuiltinMacro(llvm::raw_svector_ostream& OS, in EvaluateFeatureLikeBuiltinMacro()
1397 Token &Tok, IdentifierInfo *II, in EvaluateFeatureLikeBuiltinMacro()
1506 static IdentifierInfo *ExpectFeatureIdentifierInfo(Token &Tok, in ExpectFeatureIdentifierInfo()
1605 static bool IsBuiltinTrait(Token &Tok) { in IsBuiltinTrait()
1635 void Preprocessor::ExpandBuiltinMacro(Token &Tok) { in ExpandBuiltinMacro()
[all …]
H A DPragma.cpp108 PragmaIntroducer Introducer, Token &Tok) { in HandlePragma()
139 Token &Tok; member
177 Token Tok; in HandlePragmaDirective() local
189 void Preprocessor::Handle_Pragma(Token &Tok) { in Handle_Pragma()
358 void Preprocessor::HandleMicrosoft__pragma(Token &Tok) { in HandleMicrosoft__pragma()
443 Token Tok; in HandlePragmaPoison() local
572 IdentifierInfo *Preprocessor::ParsePragmaPushOrPopMacro(Token &Tok) { in ParsePragmaPushOrPopMacro()
685 void Preprocessor::HandlePragmaIncludeAlias(Token &Tok) { in HandlePragmaIncludeAlias()
771 Preprocessor &PP, Token &Tok, in LexModuleNameComponent()
792 Preprocessor &PP, Token &Tok, in LexModuleName()
[all …]
H A DDependencyDirectivesScanner.cpp499 const dependency_directives_scan::Token &Tok = lexToken(First, End); in lexModuleDirectiveBody() local
520 clang::Token Tok; in lexToken() local
533 clang::Token Tok; in lexIncludeFilename() local
546 const dependency_directives_scan::Token &Tok = lexToken(First, End); in lexPPDirectiveBody() local
553 Scanner::cleanStringIfNeeded(const dependency_directives_scan::Token &Tok) { in cleanStringIfNeeded()
579 const dependency_directives_scan::Token &Tok = lexToken(First, End); in tryLexIdentifierOrSkipLine() local
608 const dependency_directives_scan::Token &Tok = lexToken(First, End); in isNextTokenOrSkipLine() local
618 const dependency_directives_scan::Token &Tok = lexToken(First, End); in tryLexStringLiteralOrSkipLine() local
980 const dependency_directives_scan::Token &Tok) -> bool { in printDependencyDirectivesAsSource()
1002 for (const dependency_directives_scan::Token &Tok : Directive.Tokens) { in printDependencyDirectivesAsSource() local
H A DMacroArgs.cpp187 Token &Tok = Result.back(); in getPreExpArgument() local
212 Token Tok; in StringifyArgument() local
224 const Token &Tok = *ArgToks; in StringifyArgument() local
H A DTokenLexer.cpp40 void TokenLexer::Init(Token &Tok, SourceLocation ELEnd, MacroInfo *MI, in Init()
622 bool TokenLexer::Lex(Token &Tok) { in Lex()
724 bool TokenLexer::pasteTokens(Token &Tok) { in pasteTokens()
945 void TokenLexer::HandleMicrosoftCommentPaste(Token &Tok, SourceLocation OpLoc) { in HandleMicrosoftCommentPaste()
1079 Token &Tok = *begin_tokens; in updateLocForMacroArgTokens() local
H A DPreprocessor.cpp238 void Preprocessor::DumpToken(const Token &Tok, bool DumpFlags) const { in DumpToken() argument
469 StringRef Preprocessor::getSpelling(const Token &Tok, in getSpelling()
491 void Preprocessor::CreateString(StringRef Str, Token &Tok, in CreateString()
646 Token Tok; in SkipTokensWhileUsingPCH() local
980 Token Tok; in LexTokensUntilEOF() local
1391 bool Preprocessor::parseSimpleIntegerLiteral(Token &Tok, uint64_t &Value) { in parseSimpleIntegerLiteral()
H A DPPExpressions.cpp577 Token &Tok) { in diagnoseUnexpectedOperator()
874 Token &Tok, bool &EvaluatedDefined, in EvaluateDirectiveExpression()
967 Token Tok; in EvaluateDirectiveExpression() local
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp49 Token Tok; in getOffsetAfterTokenSequence() local
60 Lexer &Lex, StringRef Name, Token &Tok, in checkAndConsumeDirectiveWithName()
72 void skipComments(Lexer &Lex, Token &Tok) { in skipComments()
93 [&Consume](const SourceManager &SM, Lexer &Lex, Token Tok) { in getOffsetAfterHeaderGuardsAndComments()
102 [](const SourceManager &SM, Lexer &Lex, Token Tok) -> unsigned { in getOffsetAfterHeaderGuardsAndComments()
113 [](const SourceManager &SM, Lexer &Lex, Token Tok) -> unsigned { in getOffsetAfterHeaderGuardsAndComments()
125 bool checkAndConsumeInclusiveDirective(Lexer &Lex, Token &Tok) { in checkAndConsumeInclusiveDirective()
163 [](const SourceManager &SM, Lexer &Lex, Token Tok) { in getMaxHeaderInsertionOffset()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParsePragma.cpp321 Token Tok; in HandlePragma() local
1628 static StringRef getIdentifier(const Token &Tok) { in getIdentifier()
1795 getAttributeSubjectRulesRecoveryPointForToken(const Token &Tok) { in getAttributeSubjectRulesRecoveryPointForToken()
2073 Token Tok; in HandlePragma() local
2134 Token Tok; in HandlePragma() local
2249 Token Tok; in HandlePragma() local
2291 Token Tok; in HandlePragma() local
2341 Token Tok; in ParseAlignPragma() local
2439 Token Tok; in HandlePragma() local
2519 Token Tok; in HandlePragma() local
[all …]
H A DParseOpenACC.cpp41 OpenACCDirectiveKindEx getOpenACCDirectiveKind(Token Tok) { in getOpenACCDirectiveKind()
75 OpenACCClauseKind getOpenACCClauseKind(Token Tok) { in getOpenACCClauseKind()
153 OpenACCAtomicKind getOpenACCAtomicKind(Token Tok) { in getOpenACCAtomicKind()
165 OpenACCDefaultClauseKind getOpenACCDefaultClauseKind(Token Tok) { in getOpenACCDefaultClauseKind()
188 bool isOpenACCSpecialToken(OpenACCSpecialTokenKind Kind, Token Tok) { in isOpenACCSpecialToken()
221 bool isTokenIdentifierOrKeyword(Parser &P, Token Tok) { in isTokenIdentifierOrKeyword()
260 bool isOpenACCDirectiveKind(OpenACCDirectiveKind Kind, Token Tok) { in isOpenACCDirectiveKind()
353 Token Tok = P.getCurToken(); in expectIdentifierOrKeyword() local
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp44 Token Tok; in maybeExtendRange() local
197 static bool startsWithNewline(const SourceManager &SM, const Token &Tok) { in startsWithNewline()
202 const Token &Tok) { in contains()
247 Token Tok; in getEntityEndLoc() local
394 Token Tok; in atOrBeforeSeparation() local
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DMacroExpansionContext.cpp97 PP->setTokenWatcher([this](const Token &Tok) { onTokenLexed(Tok); }); in registerForPreprocessor()
177 static void dumpTokenInto(const Preprocessor &PP, raw_ostream &OS, Token Tok) { in dumpTokenInto()
205 void MacroExpansionContext::onTokenLexed(const Token &Tok) { in onTokenLexed()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DCommentBriefParser.h35 Token Tok; variable
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DCommentParser.cpp59 const Token &Tok = Toks[Pos.CurToken]; in setupBuffer() local
178 bool lexType(Token &Tok) { in lexType()
242 bool lexParHeading(Token &Tok) { in lexParHeading()
283 bool lexWord(Token &Tok) { in lexWord()
316 bool lexDelimitedSeq(Token &Tok, char OpenDelim, char CloseDelim) { in lexDelimitedSeq()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp53 StringRef Tok; member
73 struct TokOp Tok; member
279 bool error(const Twine &Msg, const AsmToken &Tok) { in error()
460 auto Tok = Lexer.getTok(); in checkForP2AlignIfLoadStore() local
482 auto Tok = Lexer.getTok(); in parseLimits() local
492 auto Tok = Lexer.getTok(); in parseLimits() local
509 auto &Tok = Lexer.getTok(); in parseFunctionTableOperand() local
653 auto &Tok = Lexer.getTok(); in ParseInstruction() local
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp209 bool MoveToLine(const Token &Tok, bool RequireStartOfLine) { in MoveToLine()
227 const Token &Tok) { in AvoidConcat()
755 void PrintPPOutputPPCallbacks::HandleWhitespaceBeforeTok(const Token &Tok, in HandleWhitespaceBeforeTok()
892 static void PrintPreprocessedTokens(Preprocessor &PP, Token &Tok, in PrintPreprocessedTokens()
1052 Token Tok; in DoPrintMacros() local
1137 Token Tok; in DoPrintPreprocessedInput() local

12345