/external/llvm-project/clang-tools-extra/clangd/ |
D | XRefs.cpp | 300 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 …]
|
D | AST.cpp | 369 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()
|
D | Hover.cpp | 806 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/ |
D | ResourceScriptParser.cpp | 34 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()
|
D | ResourceScriptParser.h | 41 ParserError(const Twine &Expected, const LocIter CurLoc, const LocIter End); 185 LocIter CurLoc; variable
|
D | ResourceFileWriter.cpp | 1367 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/ |
D | TokenLexer.cpp | 772 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/ |
D | TokenLexer.cpp | 995 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/ |
D | SourceCodeTests.cpp | 528 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/ |
D | toy.cpp | 105 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/ |
D | toy.cpp | 105 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/ |
D | DiagnosticRenderer.cpp | 259 SourceLocation CurLoc = Stack[I].second; in emitModuleBuildStack() local 260 emitBuildingModuleLocation(CurLoc, in emitModuleBuildStack() 261 CurSM.getPresumedLoc(CurLoc, in emitModuleBuildStack()
|
/external/clang/lib/CodeGen/ |
D | CGDebugInfo.cpp | 127 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 …]
|
D | CGDebugInfo.h | 62 SourceLocation CurLoc; variable
|
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | DefineInline.cpp | 76 SourceLocation CurLoc = FD->getEndLoc(); in getSemicolonForDecl() local 77 auto NextTok = Lexer::findNextToken(CurLoc, SM, LangOpts); in getSemicolonForDecl()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGDebugInfo.cpp | 174 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 …]
|
D | CGDebugInfo.h | 66 SourceLocation CurLoc; variable 395 SourceLocation getLocation() const { return CurLoc; } in getLocation()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/AsmParser/ |
D | AArch64AsmParser.cpp | 5212 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/ |
D | AArch64AsmParser.cpp | 5394 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/ |
D | LangImpl09.rst | 286 static SourceLocation CurLoc; 313 ExprAST(SourceLocation Loc = CurLoc) : Loc(Loc) {}
|
/external/llvm/docs/tutorial/ |
D | LangImpl09.rst | 284 static SourceLocation CurLoc; 311 ExprAST(SourceLocation Loc = CurLoc) : Loc(Loc) {}
|