Home
last modified time | relevance | path

Searched refs:CurLoc (Results 1 – 21 of 21) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/
DXRefs.cpp300 locateASTReferent(SourceLocation CurLoc, const syntax::Token *TouchedIdentifier, in locateASTReferent() argument
332 getDeclAtPositionWithRelations(AST, CurLoc, Relations, NodeKind); in locateASTReferent()
358 : CurLoc, in locateASTReferent()
663 auto CurLoc = sourceLocationInMainFile(SM, Pos); in locateSymbolAt() local
664 if (!CurLoc) { in locateSymbolAt()
666 CurLoc.takeError()); in locateSymbolAt()
671 syntax::spelledIdentifierTouching(*CurLoc, AST.getTokens()); in locateSymbolAt()
681 auto ASTResults = locateASTReferent(*CurLoc, TouchedIdentifier, AST, in locateSymbolAt()
688 SpelledWord::touching(*CurLoc, AST.getTokens(), AST.getLangOpts()); in locateSymbolAt()
1092 auto CurLoc = sourceLocationInMainFile(SM, Pos); in findDocumentHighlights() local
[all …]
DAST.cpp369 auto CurLoc = D->getReturnTypeSourceRange().getBegin(); in VisitFunctionDecl() local
371 if (CurLoc.isInvalid() && dyn_cast<CXXConversionDecl>(D)) in VisitFunctionDecl()
372 CurLoc = D->getTypeSourceInfo()->getTypeLoc().getBeginLoc(); in VisitFunctionDecl()
374 if (CurLoc.isInvalid()) in VisitFunctionDecl()
375 CurLoc = D->getSourceRange().getBegin(); in VisitFunctionDecl()
376 if (CurLoc != SearchedLocation) in VisitFunctionDecl()
DHover.cpp806 auto CurLoc = sourceLocationInMainFile(SM, Pos); in getHover() local
807 if (!CurLoc) { in getHover()
808 llvm::consumeError(CurLoc.takeError()); in getHover()
812 auto TokensTouchingCursor = syntax::spelledTokensTouching(*CurLoc, TB); in getHover()
845 auto Offset = SM.getFileOffset(*CurLoc); in getHover()
/external/llvm-project/llvm/tools/llvm-rc/
DResourceScriptParser.cpp34 RCParser::ParserError::ParserError(const Twine &Expected, const LocIter CurLoc, in ParserError() argument
36 : ErrorLoc(CurLoc), FileEnd(End) { in ParserError()
38 (CurLoc == End ? "<EOF>" : CurLoc->value()).str(); in ParserError()
44 : Tokens(std::move(TokenList)), CurLoc(Tokens.begin()), End(Tokens.end()) {} in RCParser()
46 bool RCParser::isEof() const { return CurLoc == End; } in isEof()
101 return *CurLoc; in look()
106 return *CurLoc++; in read()
111 CurLoc++; in consume()
853 Message, IsAlreadyRead ? std::prev(CurLoc) : CurLoc, End); in getExpectedError()
DResourceScriptParser.h41 ParserError(const Twine &Expected, const LocIter CurLoc, const LocIter End);
185 LocIter CurLoc; variable
DResourceFileWriter.cpp1367 uint64_t CurLoc = tell(); in writeVersionInfoBlock() local
1368 writeObjectAt(ulittle16_t(CurLoc - LengthLoc), LengthLoc); in writeVersionInfoBlock()
1422 auto CurLoc = tell(); in writeVersionInfoValue() local
1423 auto ValueLength = CurLoc - DataLoc; in writeVersionInfoValue()
1428 writeObjectAt(ulittle16_t(CurLoc - LengthLoc), LengthLoc); in writeVersionInfoValue()
/external/clang/lib/Lex/
DTokenLexer.cpp772 SourceLocation CurLoc = FirstLoc; in updateConsecutiveMacroArgTokens() local
787 if (CurLoc.isFileID() != NextLoc.isFileID()) in updateConsecutiveMacroArgTokens()
791 if (!SM.isInSameSLocAddrSpace(CurLoc, NextLoc, &RelOffs)) in updateConsecutiveMacroArgTokens()
798 if (CurLoc.isMacroID() && !SM.isWrittenInSameFile(CurLoc, NextLoc)) in updateConsecutiveMacroArgTokens()
801 CurLoc = NextLoc; in updateConsecutiveMacroArgTokens()
/external/llvm-project/clang/lib/Lex/
DTokenLexer.cpp995 SourceLocation CurLoc = FirstLoc; in updateConsecutiveMacroArgTokens() local
1010 if (CurLoc.isFileID() != NextLoc.isFileID()) in updateConsecutiveMacroArgTokens()
1014 if (!SM.isInSameSLocAddrSpace(CurLoc, NextLoc, &RelOffs)) in updateConsecutiveMacroArgTokens()
1021 if (CurLoc.isMacroID() && !SM.isWrittenInSameFile(CurLoc, NextLoc)) in updateConsecutiveMacroArgTokens()
1024 CurLoc = NextLoc; in updateConsecutiveMacroArgTokens()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DSourceCodeTests.cpp528 auto CurLoc = sourceLocationInMainFile(AST.getSourceManager(), Code.point()); in TEST() local
529 ASSERT_TRUE(bool(CurLoc)); in TEST()
530 const auto *Id = syntax::spelledIdentifierTouching(*CurLoc, AST.getTokens()); in TEST()
542 auto CurLoc = sourceLocationInMainFile(AST.getSourceManager(), Code.point()); in TEST() local
543 ASSERT_TRUE(bool(CurLoc)); in TEST()
544 const auto *Id = syntax::spelledIdentifierTouching(*CurLoc, AST.getTokens()); in TEST()
/external/llvm/examples/Kaleidoscope/Chapter9/
Dtoy.cpp105 static SourceLocation CurLoc; variable
130 CurLoc = LexLoc; in gettok()
205 ExprAST(SourceLocation Loc = CurLoc) : Loc(Loc) {} in ExprAST()
469 SourceLocation LitLoc = CurLoc; in ParseIdentifierExpr()
503 SourceLocation IfLoc = CurLoc; in ParseIfExpr()
684 SourceLocation BinLoc = CurLoc; in ParseBinOpRHS()
725 SourceLocation FnLoc = CurLoc; in ParsePrototype()
800 SourceLocation FnLoc = CurLoc; in ParseTopLevelExpr()
/external/llvm-project/llvm/examples/Kaleidoscope/Chapter9/
Dtoy.cpp105 static SourceLocation CurLoc; variable
130 CurLoc = LexLoc; in gettok()
205 ExprAST(SourceLocation Loc = CurLoc) : Loc(Loc) {} in ExprAST()
469 SourceLocation LitLoc = CurLoc; in ParseIdentifierExpr()
503 SourceLocation IfLoc = CurLoc; in ParseIfExpr()
684 SourceLocation BinLoc = CurLoc; in ParseBinOpRHS()
725 SourceLocation FnLoc = CurLoc; in ParsePrototype()
800 SourceLocation FnLoc = CurLoc; in ParseTopLevelExpr()
/external/clang/lib/Frontend/
DDiagnosticRenderer.cpp259 SourceLocation CurLoc = Stack[I].second; in emitModuleBuildStack() local
260 emitBuildingModuleLocation(CurLoc, in emitModuleBuildStack()
261 CurSM.getPresumedLoc(CurLoc, in emitModuleBuildStack()
/external/clang/lib/CodeGen/
DCGDebugInfo.cpp127 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); in setLocation()
137 PresumedLoc PCLoc = SM.getPresumedLoc(CurLoc); in setLocation()
145 LBF->getScope(), getOrCreateFile(CurLoc))); in setLocation()
150 DBuilder.createLexicalBlockFile(Scope, getOrCreateFile(CurLoc))); in setLocation()
356 if (Loc.isInvalid() && CurLoc.isInvalid()) in getLineNumber()
359 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getLineNumber()
369 if (Loc.isInvalid() && CurLoc.isInvalid()) in getColumnNumber()
372 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getColumnNumber()
2912 CurLoc = SourceLocation(); in EmitFunctionStart()
2971 CurLoc = SourceLocation(); in EmitFunctionDecl()
[all …]
DCGDebugInfo.h62 SourceLocation CurLoc; variable
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DDefineInline.cpp76 SourceLocation CurLoc = FD->getEndLoc(); in getSemicolonForDecl() local
77 auto NextTok = Lexer::findNextToken(CurLoc, SM, LangOpts); in getSemicolonForDecl()
/external/llvm-project/clang/lib/CodeGen/
DCGDebugInfo.cpp174 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); in setLocation()
184 PresumedLoc PCLoc = SM.getPresumedLoc(CurLoc); in setLocation()
185 if (PCLoc.isInvalid() || Scope->getFile() == getOrCreateFile(CurLoc)) in setLocation()
191 LBF->getScope(), getOrCreateFile(CurLoc))); in setLocation()
196 DBuilder.createLexicalBlockFile(Scope, getOrCreateFile(CurLoc))); in setLocation()
490 if (Loc.isInvalid() && CurLoc.isInvalid()) in getLineNumber()
493 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getLineNumber()
503 if (Loc.isInvalid() && CurLoc.isInvalid()) in getColumnNumber()
506 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getColumnNumber()
3853 CurLoc = SourceLocation(); in EmitFunctionStart()
[all …]
DCGDebugInfo.h66 SourceLocation CurLoc; variable
395 SourceLocation getLocation() const { return CurLoc; } in getLocation()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/AsmParser/
DAArch64AsmParser.cpp5212 SMLoc CurLoc = getLoc(); in parseDirectiveCPU() local
5228 Error(CurLoc, "unknown CPU name"); in parseDirectiveCPU()
5234 CurLoc = incrementLoc(CurLoc, CPU.size()); in parseDirectiveCPU()
5241 CurLoc = incrementLoc(CurLoc, 1); in parseDirectiveCPU()
5270 Error(CurLoc, "unsupported architectural extension"); in parseDirectiveCPU()
5272 CurLoc = incrementLoc(CurLoc, Name.size()); in parseDirectiveCPU()
/external/llvm-project/llvm/lib/Target/AArch64/AsmParser/
DAArch64AsmParser.cpp5394 SMLoc CurLoc = getLoc(); in parseDirectiveCPU() local
5410 Error(CurLoc, "unknown CPU name"); in parseDirectiveCPU()
5416 CurLoc = incrementLoc(CurLoc, CPU.size()); in parseDirectiveCPU()
5423 CurLoc = incrementLoc(CurLoc, 1); in parseDirectiveCPU()
5452 Error(CurLoc, "unsupported architectural extension"); in parseDirectiveCPU()
5454 CurLoc = incrementLoc(CurLoc, Name.size()); in parseDirectiveCPU()
/external/llvm-project/llvm/docs/tutorial/MyFirstLanguageFrontend/
DLangImpl09.rst286 static SourceLocation CurLoc;
313 ExprAST(SourceLocation Loc = CurLoc) : Loc(Loc) {}
/external/llvm/docs/tutorial/
DLangImpl09.rst284 static SourceLocation CurLoc;
311 ExprAST(SourceLocation Loc = CurLoc) : Loc(Loc) {}