Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/tools/llvm-rc/
H A 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()
852 Message, IsAlreadyRead ? std::prev(CurLoc) : CurLoc, End); in getExpectedError()
H A DResourceScriptParser.h38 ParserError(const Twine &Expected, const LocIter CurLoc, const LocIter End);
182 LocIter CurLoc; variable
H A 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()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DXRefs.cpp764 auto CurLoc = sourceLocationInMainFile(SM, Pos); in locateSymbolAt() local
765 if (!CurLoc) { in locateSymbolAt()
767 CurLoc.takeError()); in locateSymbolAt()
1237 if (!CurLoc) { in findDocumentHighlights()
1238 llvm::consumeError(CurLoc.takeError()); in findDocumentHighlights()
1288 if (!CurLoc) { in findImplementations()
1290 CurLoc.takeError()); in findImplementations()
1338 if (!CurLoc) { in findReferences()
1339 llvm::consumeError(CurLoc.takeError()); in findReferences()
1509 if (!CurLoc) { in getSymbolInfo()
[all …]
H A DAST.cpp469 auto CurLoc = D->getReturnTypeSourceRange().getBegin(); in VisitFunctionDecl() local
471 if (CurLoc.isInvalid() && isa<CXXConversionDecl>(D)) in VisitFunctionDecl()
472 CurLoc = D->getTypeSourceInfo()->getTypeLoc().getBeginLoc(); in VisitFunctionDecl()
474 if (CurLoc.isInvalid()) in VisitFunctionDecl()
475 CurLoc = D->getSourceRange().getBegin(); in VisitFunctionDecl()
476 if (CurLoc != SearchedLocation) in VisitFunctionDecl()
H A DHover.cpp966 auto CurLoc = sourceLocationInMainFile(SM, Pos); in getHover() local
967 if (!CurLoc) { in getHover()
968 llvm::consumeError(CurLoc.takeError()); in getHover()
972 auto TokensTouchingCursor = syntax::spelledTokensTouching(*CurLoc, TB); in getHover()
1027 auto Offset = SM.getFileOffset(*CurLoc); in getHover()
/llvm-project-15.0.7/clang/lib/Lex/
H A DTokenLexer.cpp993 SourceLocation CurLoc = FirstLoc; in updateConsecutiveMacroArgTokens() local
1008 if (CurLoc.isFileID() != NextLoc.isFileID()) in updateConsecutiveMacroArgTokens()
1012 if (!SM.isInSameSLocAddrSpace(CurLoc, NextLoc, &RelOffs)) in updateConsecutiveMacroArgTokens()
1019 if (CurLoc.isMacroID() && !SM.isWrittenInSameFile(CurLoc, NextLoc)) in updateConsecutiveMacroArgTokens()
1022 CurLoc = NextLoc; in updateConsecutiveMacroArgTokens()
/llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter9/
H A 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()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DSourceCodeTests.cpp538 auto CurLoc = sourceLocationInMainFile(AST.getSourceManager(), Code.point()); in TEST() local
539 ASSERT_TRUE(bool(CurLoc)); in TEST()
540 const auto *Id = syntax::spelledIdentifierTouching(*CurLoc, AST.getTokens()); in TEST()
552 auto CurLoc = sourceLocationInMainFile(AST.getSourceManager(), Code.point()); in TEST() local
553 ASSERT_TRUE(bool(CurLoc)); in TEST()
554 const auto *Id = syntax::spelledIdentifierTouching(*CurLoc, AST.getTokens()); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DDefineInline.cpp60 SourceLocation CurLoc = FD->getEndLoc(); in getSemicolonForDecl() local
61 auto NextTok = Lexer::findNextToken(CurLoc, SM, LangOpts); in getSemicolonForDecl()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDebugInfo.cpp176 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); in setLocation()
186 PresumedLoc PCLoc = SM.getPresumedLoc(CurLoc); in setLocation()
193 LBF->getScope(), getOrCreateFile(CurLoc))); in setLocation()
481 if (Loc.isInvalid() && CurLoc.isInvalid()) in getColumnNumber()
4104 CurLoc = SourceLocation(); in emitFunctionStart()
4190 CurLoc = SourceLocation(); in EmitFunctionDecl()
4265 if (CurLoc.isInvalid() || CurLoc.isMacroID() || LexicalBlockStack.empty()) in EmitLocation()
4279 cast<llvm::DIScope>(Back), getOrCreateFile(CurLoc), getLineNumber(CurLoc), in CreateLexicalBlock()
4280 getColumnNumber(CurLoc))); in CreateLexicalBlock()
4334 EmitLocation(Builder, CurLoc); in EmitFunctionEnd()
[all …]
H A DCGDebugInfo.h65 SourceLocation CurLoc; variable
416 SourceLocation getLocation() const { return CurLoc; } in getLocation()
/llvm-project-15.0.7/llvm/docs/tutorial/MyFirstLanguageFrontend/
H A DLangImpl09.rst287 static SourceLocation CurLoc;
314 ExprAST(SourceLocation Loc = CurLoc) : Loc(Loc) {}
/llvm-project-15.0.7/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.cpp6272 SMLoc CurLoc = getLoc(); in parseDirectiveCPU() local
6288 Error(CurLoc, "unknown CPU name"); in parseDirectiveCPU()
6294 CurLoc = incrementLoc(CurLoc, CPU.size()); in parseDirectiveCPU()
6300 CurLoc = incrementLoc(CurLoc, 1); in parseDirectiveCPU()
6329 Error(CurLoc, "unsupported architectural extension"); in parseDirectiveCPU()
6331 CurLoc = incrementLoc(CurLoc, Name.size()); in parseDirectiveCPU()
/llvm-project-15.0.7/llvm/lib/CodeGen/LiveDebugValues/
H A DInstrRefBasedImpl.cpp307 LocIdx CurLoc = VIt->second; in loadInlocs() local
312 if (CurLoc.isIllegal() || MTracker->isSpill(CurLoc) || in loadInlocs()
313 (!isCalleeSaved(CurLoc) && isCalleeSaved(Idx.asU64()))) { in loadInlocs()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDeclAttr.cpp3479 SourceLocation CurLoc = Literal->getLocationOfByte( in checkTargetClonesAttrString() local
3485 return Diag(CurLoc, diag::warn_unsupported_target_attribute) in checkTargetClonesAttrString()
3491 return Diag(CurLoc, diag::warn_unsupported_target_attribute) in checkTargetClonesAttrString()
3498 return Diag(CurLoc, diag::warn_unsupported_target_attribute) in checkTargetClonesAttrString()
3502 Diag(CurLoc, diag::warn_target_clone_duplicate_options); in checkTargetClonesAttrString()