Home
last modified time | relevance | path

Searched refs:TokLoc (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/clang/lib/Lex/
H A DLiteralSupport.cpp874 ParseNumberStartingWithZero(TokLoc); in NumericLiteralParser()
883 ParseDecimalOrOctalCommon(TokLoc); in NumericLiteralParser()
890 checkSeparator(TokLoc, s, CSK_AfterDigits); in NumericLiteralParser()
1131 checkSeparator(TokLoc, s, CSK_AfterDigits); in ParseDecimalOrOctalCommon()
1135 checkSeparator(TokLoc, s, CSK_BeforeDigits); in ParseDecimalOrOctalCommon()
1139 checkSeparator(TokLoc, s, CSK_AfterDigits); in ParseDecimalOrOctalCommon()
1251 checkSeparator(TokLoc, s, CSK_AfterDigits); in ParseNumberStartingWithZero()
1270 Diags.Report(TokLoc, LangOpts.CPlusPlus in ParseNumberStartingWithZero()
1288 Diags.Report(TokLoc, LangOpts.CPlusPlus14 in ParseNumberStartingWithZero()
1336 ParseDecimalOrOctalCommon(TokLoc); in ParseNumberStartingWithZero()
[all …]
H A DPragma.cpp328 SourceLocation TokLoc = TmpTok.getLocation(); in Handle_Pragma() local
332 Lexer *TL = Lexer::Create_PragmaLexer(TokLoc, PragmaLoc, RParenLoc, in Handle_Pragma()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DLiteralSupport.h59 NumericLiteralParser(StringRef TokSpelling, SourceLocation TokLoc,
133 void ParseNumberStartingWithZero(SourceLocation TokLoc);
134 void ParseDecimalOrOctalCommon(SourceLocation TokLoc);
147 void checkSeparator(SourceLocation TokLoc, const char *Pos,
H A DPreprocessor.h1993 SourceLocation SplitToken(SourceLocation TokLoc, unsigned Length);
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseStmtAsm.cpp409 SourceLocation TokLoc = Tok.getLocation(); in ParseMicrosoftAsmStatement() local
422 TokLoc = Tok.getLocation(); in ParseMicrosoftAsmStatement()
431 SrcMgr.getDecomposedExpansionLoc(TokLoc); in ParseMicrosoftAsmStatement()
439 SrcMgr.getDecomposedExpansionLoc(TokLoc); in ParseMicrosoftAsmStatement()
489 TokLoc = Tok.getLocation(); in ParseMicrosoftAsmStatement()
497 EndLoc = TokLoc; in ParseMicrosoftAsmStatement()
508 TokLoc = Tok.getLocation(); in ParseMicrosoftAsmStatement()
H A DParseTemplate.cpp1136 SourceLocation TokLoc = Tok.getLocation(); in ParseGreaterThanInTemplateList() local
1154 TokLoc, Lexer::AdvanceToTokenCharacter(TokLoc, 2, PP.getSourceManager(), in ParseGreaterThanInTemplateList()
1175 Diag(TokLoc, DiagId) << Hint1 << Hint2; in ParseGreaterThanInTemplateList()
1181 TokLoc, 1, PP.getSourceManager(), getLangOpts()); in ParseGreaterThanInTemplateList()
1186 RAngleLoc = PP.SplitToken(TokLoc, GreaterLength); in ParseGreaterThanInTemplateList()
1207 SourceLocation AfterGreaterLoc = TokLoc.getLocWithOffset(GreaterLength); in ParseGreaterThanInTemplateList()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSymbolCollector.cpp100 getTokenRange(SourceLocation TokLoc, const SourceManager &SM, in getTokenRange() argument
110 auto TokenLength = clang::Lexer::MeasureTokenLength(TokLoc, SM, LangOpts); in getTokenRange()
111 return {CreatePosition(TokLoc), in getTokenRange()
112 CreatePosition(TokLoc.getLocWithOffset(TokenLength))}; in getTokenRange()
439 SymbolCollector::getTokenLocation(SourceLocation TokLoc) { in getTokenLocation() argument
441 auto *FE = SM.getFileEntryForID(SM.getFileID(TokLoc)); in getTokenLocation()
447 auto Range = getTokenRange(TokLoc, SM, ASTCtx->getLangOpts()); in getTokenLocation()
H A DSymbolCollector.h143 llvm::Optional<SymbolLocation> getTokenLocation(SourceLocation TokLoc);
/llvm-project-15.0.7/clang/lib/Tooling/Syntax/
H A DBuildTree.cpp903 auto TokLoc = S->getBeginLoc(); in buildUserDefinedLiteral() local
905 Builder.findToken(TokLoc)->text(Context.getSourceManager()); in buildUserDefinedLiteral()
907 NumericLiteralParser(TokSpelling, TokLoc, Context.getSourceManager(), in buildUserDefinedLiteral()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndex.cpp7424 SourceLocation TokLoc = GetTokenLoc(I); in annotateAndAdvanceTokens() local
7425 if (LocationCompare(SrcMgr, TokLoc, range) == compResult) { in annotateAndAdvanceTokens()
7454 SourceLocation TokLoc = getFunctionMacroTokenLoc(I); in annotateAndAdvanceFunctionMacroTokens() local
7455 if (TokLoc.isFileID()) in annotateAndAdvanceFunctionMacroTokens()
7457 if (LocationCompare(SrcMgr, TokLoc, range) == compResult) { in annotateAndAdvanceFunctionMacroTokens()
7539 SourceLocation TokLoc = GetTokenLoc(I); in Visit() local
7540 switch (LocationCompare(SrcMgr, TokLoc, cursorRange)) { in Visit()
7554 SourceLocation TokLoc = GetTokenLoc(I); in Visit() local
7555 switch (LocationCompare(SrcMgr, TokLoc, cursorRange)) { in Visit()
7564 if (TokLoc == cursorRange.getBegin()) in Visit()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExpr.cpp1814 static SourceLocation getUDSuffixLoc(Sema &S, SourceLocation TokLoc, in getUDSuffixLoc() argument
1816 return Lexer::AdvanceToTokenCharacter(TokLoc, Offset, S.getSourceManager(), in getUDSuffixLoc()
3799 SourceLocation TokLoc = Tok.getLocation(); in ActOnNumericConstant() local
3826 return BuildLiteralOperatorCall(R, OpNameInfo, Lit, TokLoc); in ActOnNumericConstant()
3840 /*Pascal*/ false, StrTy, &TokLoc, 1); in ActOnNumericConstant()
3841 return BuildLiteralOperatorCall(R, OpNameInfo, Lit, TokLoc); in ActOnNumericConstant()
3859 return BuildLiteralOperatorCall(R, OpNameInfo, None, TokLoc, in ActOnNumericConstant()
15314 ExprResult Sema::ActOnBinOp(Scope *S, SourceLocation TokLoc, in ActOnBinOp() argument
15322 DiagnoseBinOpPrecedence(*this, Opc, TokLoc, LHSExpr, RHSExpr); in ActOnBinOp()
15324 return BuildBinOp(S, TokLoc, Opc, LHSExpr, RHSExpr); in ActOnBinOp()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h5777 ExprResult ActOnBinOp(Scope *S, SourceLocation TokLoc,