Home
last modified time | relevance | path

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

12345

/netbsd-src/external/apache2/llvm/dist/clang/lib/Format/
H A DTokenAnnotator.cpp40 static bool canBeObjCSelectorComponent(const FormatToken &Tok) { in canBeObjCSelectorComponent()
61 static bool isKeywordWithCondition(const FormatToken &Tok) { in isKeywordWithCondition()
355 for (FormatToken *Tok = Left; Tok != CurrentToken; Tok = Tok->Next) { in parseParens() local
420 FormatToken *Tok = CurrentToken; in parseParens() local
430 bool isCSharpAttributeSpecifier(const FormatToken &Tok) { in isCSharpAttributeSpecifier()
481 bool isCpp11AttributeSpecifier(const FormatToken &Tok) { in isCpp11AttributeSpecifier()
724 FormatToken *Tok = CurrentToken; in parseSquare() local
829 FormatToken *Tok = CurrentToken; in consumeToken() local
1249 FormatToken *Tok = CurrentToken; in parsePreprocessorDirective() local
1346 bool isClosureImportStatement(const FormatToken &Tok) { in isClosureImportStatement()
[all …]
H A DAffectedRangeManager.cpp84 bool AffectedRangeManager::affectsLeadingEmptyLines(const FormatToken &Tok) { in affectsLeadingEmptyLines()
119 for (FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) { in nonPPLineAffected() local
H A DUnwrappedLineFormatter.cpp240 const FormatToken *Tok = I[-1]->First; in tryFitMultipleLinesInOne() local
575 const FormatToken *Tok = Line.First->getNextNonComment(); in tryMergeSimpleBlock() local
619 FormatToken *Tok = I[1]->First; in tryMergeSimpleBlock() local
727 for (const FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) { in containsMustBreak() local
743 for (FormatToken *Tok = B.First; Tok; Tok = Tok->Next) { in join() local
757 static void markFinalized(FormatToken *Tok) { in markFinalized()
1191 for (const FormatToken *Tok = TheLine.First; Tok; Tok = Tok->Next) in format() local
1215 for (FormatToken *Tok = TheLine.First->Next; Tok; Tok = Tok->Next) in format() local
H A DMacroExpander.cpp168 auto pushToken = [&](FormatToken *Tok) { in expand()
175 auto expandArgument = [&](FormatToken *Tok) -> bool { in expand()
H A DBreakableToken.h234 BreakableToken(const FormatToken &Tok, bool InPPDirective, in BreakableToken()
239 const FormatToken &Tok; variable
H A DContinuationIndenter.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()
571 const FormatToken *Tok = &Previous; in addTokenOnCurrentLine() local
1524 for (const FormatToken *Tok = &Current; in moveStatePastScopeOpener() local
1870 auto Tok = Current.getPreviousNonComment(); in getEnclosingFunctionName() local
H A DNamespaceEndCommentsFixer.cpp32 const FormatToken *Tok = NamespaceTok->getNextNonComment(); in computeName() local
210 FormatToken *Tok = AnnotatedLines[I]->First; in analyze() local
/netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/
H A DPPMacroExpansion.cpp769 Token Tok; in ReadMacroCallArgumentList() local
1157 static bool EvaluateHasIncludeCommon(Token &Tok, in EvaluateHasIncludeCommon()
1247 static bool EvaluateHasInclude(Token &Tok, IdentifierInfo *II, in EvaluateHasInclude()
1254 static bool EvaluateHasIncludeNext(Token &Tok, in EvaluateHasIncludeNext()
1288 static void EvaluateFeatureLikeBuiltinMacro(llvm::raw_svector_ostream& OS, in EvaluateFeatureLikeBuiltinMacro()
1289 Token &Tok, IdentifierInfo *II, in EvaluateFeatureLikeBuiltinMacro()
1395 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 …]
H A DPragma.cpp107 PragmaIntroducer Introducer, Token &Tok) { in HandlePragma()
138 Token &Tok; member
176 Token Tok; in HandlePragmaDirective() local
188 void Preprocessor::Handle_Pragma(Token &Tok) { in Handle_Pragma()
341 void Preprocessor::HandleMicrosoft__pragma(Token &Tok) { in HandleMicrosoft__pragma()
422 Token Tok; in HandlePragmaPoison() local
552 IdentifierInfo *Preprocessor::ParsePragmaPushOrPopMacro(Token &Tok) { in ParsePragmaPushOrPopMacro()
665 void Preprocessor::HandlePragmaIncludeAlias(Token &Tok) { in HandlePragmaIncludeAlias()
751 Preprocessor &PP, Token &Tok, in LexModuleNameComponent()
772 Preprocessor &PP, Token &Tok, in LexModuleName()
[all …]
H A DTokenLexer.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
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 DPreprocessor.cpp231 void Preprocessor::DumpToken(const Token &Tok, bool DumpFlags) const { in DumpToken() argument
459 StringRef Preprocessor::getSpelling(const Token &Tok, in getSpelling()
481 void Preprocessor::CreateString(StringRef Str, Token &Tok, in CreateString()
630 Token Tok; in SkipTokensWhileUsingPCH() local
1362 bool Preprocessor::parseSimpleIntegerLiteral(Token &Tok, uint64_t &Value) { in parseSimpleIntegerLiteral()
H A DPPDirectives.cpp453 Token Tok; in SkipExcludedConditionalBlock() local
1405 void Preprocessor::HandleUserDiagnosticDirective(Token &Tok, in HandleUserDiagnosticDirective()
1427 void Preprocessor::HandleIdentSCCSDirective(Token &Tok) { in HandleIdentSCCSDirective()
1462 void Preprocessor::HandleMacroPublicDirective(Token &Tok) { in HandleMacroPublicDirective()
1578 auto Tok = std::make_unique<Token[]>(1); in EnterAnnotationToken() local
2347 void Preprocessor::HandleMicrosoftImportDirective(Token &Tok) { in HandleMicrosoftImportDirective()
2407 bool Preprocessor::ReadMacroParameterList(MacroInfo *MI, Token &Tok) { in ReadMacroParameterList()
2553 Token Tok; in ReadOptionalMacroParameterListAndBody() local
2906 Token Tok; in HandleDefineDirective() local
H A DPPCaching.cpp116 void Preprocessor::AnnotatePreviousCachedTokens(const Token &Tok) { in AnnotatePreviousCachedTokens()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp48 Token Tok; in getOffsetAfterTokenSequence() local
59 Lexer &Lex, StringRef Name, Token &Tok, in checkAndConsumeDirectiveWithName()
71 void skipComments(Lexer &Lex, Token &Tok) { in skipComments()
92 [&Consume](const SourceManager &SM, Lexer &Lex, Token Tok) { in getOffsetAfterHeaderGuardsAndComments()
101 [](const SourceManager &SM, Lexer &Lex, Token Tok) -> unsigned { in getOffsetAfterHeaderGuardsAndComments()
112 [](const SourceManager &SM, Lexer &Lex, Token Tok) -> unsigned { in getOffsetAfterHeaderGuardsAndComments()
124 bool checkAndConsumeInclusiveDirective(Lexer &Lex, Token &Tok) { in checkAndConsumeInclusiveDirective()
162 [](const SourceManager &SM, Lexer &Lex, Token Tok) { in getMaxHeaderInsertionOffset()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp44 Token Tok; in maybeExtendRange() local
104 static bool startsWithNewline(const SourceManager &SM, const Token &Tok) { in startsWithNewline()
109 const Token &Tok) { in contains()
154 Token Tok; in getEntityEndLoc() local
301 Token Tok; in atOrBeforeSeparation() local
/netbsd-src/external/apache2/llvm/dist/clang/lib/Parse/
H A DParsePragma.cpp1313 static StringRef getIdentifier(const Token &Tok) { in getIdentifier()
1480 getAttributeSubjectRulesRecoveryPointForToken(const Token &Tok) { in getAttributeSubjectRulesRecoveryPointForToken()
1735 Token Tok; in HandlePragma() local
1796 Token Tok; in HandlePragma() local
1911 Token Tok; in HandlePragma() local
1953 Token Tok; in HandlePragma() local
2003 Token Tok; in ParseAlignPragma() local
2101 Token Tok; in HandlePragma() local
2181 Token Tok; in HandlePragma() local
2242 Token Tok; in HandlePragma() local
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DMacroExpansionContext.cpp96 PP->setTokenWatcher([this](const Token &Tok) { onTokenLexed(Tok); }); in registerForPreprocessor()
176 static void dumpTokenInto(const Preprocessor &PP, raw_ostream &OS, Token Tok) { in dumpTokenInto()
204 void MacroExpansionContext::onTokenLexed(const Token &Tok) { in onTokenLexed()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DCommentBriefParser.h35 Token Tok; variable
H A DCommentParser.h55 Token Tok; variable
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp52 StringRef Tok; member
72 struct TokOp Tok; member
264 bool error(const Twine &Msg, const AsmToken &Tok) { in error()
438 auto Tok = Lexer.getTok(); in checkForP2AlignIfLoadStore() local
455 auto Tok = Lexer.getTok(); in parseLimits() local
465 auto Tok = Lexer.getTok(); in parseLimits() local
482 auto &Tok = Lexer.getTok(); in parseFunctionTableOperand() local
630 auto &Tok = Lexer.getTok(); in ParseInstruction() local
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/
H A DPrintPreprocessedOutput.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
/netbsd-src/external/apache2/llvm/dist/clang/lib/Rewrite/
H A DHTMLRewrite.cpp458 Token Tok; in SyntaxHighlight() local
545 Token Tok; in HighlightMacros() local
598 Token Tok; in HighlightMacros() local
H A DTokenRewriter.cpp88 Token Tok; in AddTokenBefore() local
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Syntax/
H A DTokens.cpp346 const auto *Tok = llvm::partition_point( in spelledTokenAt() local
348 [&](const syntax::Token &Tok) { return Tok.location() < Loc; }); in spelledTokenAt()
482 Tokens, [&](const syntax::Token &Tok) { return Tok.location() < Loc; }); in spelledTokensTouching()
500 for (const syntax::Token &Tok : spelledTokensTouching(Loc, Tokens)) { in spelledIdentifierTouching() local
766 const syntax::Token &Tok = Result.ExpandedTokens[NextExpanded]; in advance() local
825 const auto &Tok = Result.ExpandedTokens[I]; in buildSpelledTokens() local

12345