Home
last modified time | relevance | path

Searched refs:BeginLoc (Results 1 – 25 of 31) sorted by relevance

12

/openbsd/gnu/llvm/clang/include/clang/AST/
H A DAvailability.h39 SourceLocation BeginLoc, EndLoc; variable
43 SourceLocation BeginLoc, SourceLocation EndLoc) in AvailabilitySpec() argument
44 : Version(Version), Platform(Platform), BeginLoc(BeginLoc), in AvailabilitySpec()
49 : BeginLoc(StarLoc), EndLoc(StarLoc) {} in AvailabilitySpec()
53 SourceLocation getBeginLoc() const { return BeginLoc; } in getBeginLoc()
H A DDeclarationName.h745 static DeclarationNameLoc makeCXXOperatorNameLoc(SourceLocation BeginLoc, in makeCXXOperatorNameLoc() argument
747 return makeCXXOperatorNameLoc(SourceRange(BeginLoc, EndLoc)); in makeCXXOperatorNameLoc()
H A DExpr.h6428 SourceLocation BeginLoc, SourceLocation EndLoc,
6446 SourceLocation getBeginLoc() const { return BeginLoc; } in getBeginLoc()
6454 RecoveryExpr(ASTContext &Ctx, QualType T, SourceLocation BeginLoc,
6461 SourceLocation BeginLoc, EndLoc; variable
/openbsd/gnu/llvm/clang/lib/Sema/
H A DSemaModule.cpp83 ModuleScopes.back().BeginLoc = ModuleLoc; in ActOnGlobalModuleFragmentDecl()
135 ModuleScopes.back().BeginLoc = StartOfTU; in HandleStartOfHeaderUnit()
255 SourceLocation BeginLoc = in ActOnModuleDecl() local
258 : ModuleScopes.back().BeginLoc; in ActOnModuleDecl()
259 if (BeginLoc.isValid()) { in ActOnModuleDecl()
383 ModuleScopes.back().BeginLoc = StartLoc; in ActOnModuleDecl()
443 Diag(ModuleScopes.back().BeginLoc, in ActOnPrivateModuleFragmentDecl()
465 ModuleScopes.back().BeginLoc = ModuleLoc; in ActOnPrivateModuleFragmentDecl()
773 Diag(ModuleScopes.back().BeginLoc, in ActOnStartExportDecl()
985 BeginLoc, getCurrentModule()); in PushGlobalModuleFragment()
[all …]
H A DSemaCast.cpp1040 SourceLocation BeginLoc = OpRange.getBegin(); in DiagnoseReinterpretUpDownCast() local
1041 Self.Diag(BeginLoc, diag::warn_reinterpret_different_from_static) in DiagnoseReinterpretUpDownCast()
1044 Self.Diag(BeginLoc, diag::note_reinterpret_updowncast_use_static) in DiagnoseReinterpretUpDownCast()
1046 << FixItHint::CreateReplacement(BeginLoc, "static_cast"); in DiagnoseReinterpretUpDownCast()
H A DSema.cpp1211 Diag(ModuleScopes.back().BeginLoc, in ActOnEndOfTranslationUnit()
1275 Diag(ModuleScopes.back().BeginLoc, in ActOnEndOfTranslationUnit()
/openbsd/gnu/llvm/clang/lib/Lex/
H A DPreprocessingRecord.cpp254 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity() local
259 BeginLoc, in addPreprocessedEntity()
268 !SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity()
296 if (!SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity()
306 llvm::upper_bound(PreprocessedEntities, BeginLoc, in addPreprocessedEntity()
H A DTokenLexer.cpp993 SourceLocation BeginLoc = begin_tokens->getLocation(); in updateConsecutiveMacroArgTokens() local
997 auto NearLast = [&, Last = BeginLoc](SourceLocation Loc) mutable { in updateConsecutiveMacroArgTokens()
1010 if (BeginLoc.isFileID()) { in updateConsecutiveMacroArgTokens()
1019 FileID BeginFID = SM.getFileID(BeginLoc); in updateConsecutiveMacroArgTokens()
1031 return T.getLocation() >= BeginLoc && T.getLocation() <= Limit in updateConsecutiveMacroArgTokens()
1044 SM.createMacroArgExpansionLoc(BeginLoc, ExpandLoc, FullLength); in updateConsecutiveMacroArgTokens()
1058 T.getLocation().getRawEncoding() - BeginLoc.getRawEncoding(); in updateConsecutiveMacroArgTokens()
H A DPragma.cpp1694 SourceLocation BeginLoc = Tok.getLocation(); in HandlePragma() local
1736 PP.Diag(BeginLoc, diag::note_pp_module_begin_here) in HandlePragma()
1742 PP.EnterSubmodule(M, BeginLoc, /*ForPragma*/true); in HandlePragma()
1853 SourceLocation BeginLoc = PP.getPragmaARCCFCodeAuditedInfo().second; in HandlePragma() local
1860 if (BeginLoc.isValid()) { in HandlePragma()
1862 PP.Diag(BeginLoc, diag::note_pragma_entered_here); in HandlePragma()
1867 if (!BeginLoc.isValid()) { in HandlePragma()
1908 SourceLocation BeginLoc = PP.getPragmaAssumeNonNullLoc(); in HandlePragma() local
1916 if (BeginLoc.isValid()) { in HandlePragma()
1918 PP.Diag(BeginLoc, diag::note_pragma_entered_here); in HandlePragma()
[all …]
/openbsd/gnu/llvm/clang/lib/Tooling/Syntax/
H A DTokens.cpp242 FileRange::FileRange(const SourceManager &SM, SourceLocation BeginLoc, in FileRange() argument
244 assert(BeginLoc.isValid()); in FileRange()
245 assert(BeginLoc.isFileID()); in FileRange()
247 std::tie(File, Begin) = SM.getDecomposedLoc(BeginLoc); in FileRange()
250 FileRange::FileRange(const SourceManager &SM, SourceLocation BeginLoc, in FileRange() argument
252 assert(BeginLoc.isValid()); in FileRange()
253 assert(BeginLoc.isFileID()); in FileRange()
256 assert(SM.getFileID(BeginLoc) == SM.getFileID(EndLoc)); in FileRange()
257 assert(SM.getFileOffset(BeginLoc) <= SM.getFileOffset(EndLoc)); in FileRange()
259 std::tie(File, Begin) = SM.getDecomposedLoc(BeginLoc); in FileRange()
/openbsd/gnu/llvm/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h140 bool visit(const NamedDecl *ND, SourceLocation BeginLoc, in visit() argument
143 ND, SourceRange(BeginLoc, EndLoc)); in visit()
/openbsd/gnu/llvm/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp89 const SourceLocation BeginLoc = Loc; in checkAndAddLocation() local
91 BeginLoc, 0, Context.getSourceManager(), Context.getLangOpts()); in checkAndAddLocation()
93 Lexer::getSourceText(CharSourceRange::getTokenRange(BeginLoc, EndLoc), in checkAndAddLocation()
101 BeginLoc.getLocWithOffset(Offset)); in checkAndAddLocation()
/openbsd/gnu/llvm/clang/lib/Frontend/
H A DSARIFDiagnostic.cpp109 SourceLocation BeginLoc = SM.translateLineCol( in addLocationToResult() local
115 CharSourceRange{SourceRange{BeginLoc, EndLoc}, /* ITR = */ false}); in addLocationToResult()
/openbsd/gnu/llvm/clang/include/clang/Tooling/Syntax/
H A DTokens.h54 FileRange(const SourceManager &SM, SourceLocation BeginLoc, unsigned Length);
57 FileRange(const SourceManager &SM, SourceLocation BeginLoc,
/openbsd/gnu/llvm/clang/lib/ExtractAPI/Serialization/
H A DSymbolGraphSerializer.cpp136 Object serializeSourceRange(const PresumedLoc &BeginLoc, in serializeSourceRange() argument
139 serializeObject(SourceRange, "start", serializeSourcePosition(BeginLoc)); in serializeSourceRange()
/openbsd/gnu/llvm/clang/lib/Parse/
H A DParser.cpp1797 SourceLocation BeginLoc = NameLoc; in TryAnnotateName() local
1799 BeginLoc = SS.getBeginLoc(); in TryAnnotateName()
1823 Tok.setLocation(BeginLoc); in TryAnnotateName()
2070 SourceLocation BeginLoc = Tok.getLocation(); in TryAnnotateTypeOrScopeTokenAfterScopeSpec() local
2072 BeginLoc = SS.getBeginLoc(); in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
2097 Tok.setLocation(BeginLoc); in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
H A DParseExpr.cpp3746 ExprResult Parser::ParseAvailabilityCheckExpr(SourceLocation BeginLoc) { in ParseAvailabilityCheckExpr() argument
3780 return Actions.ActOnObjCAvailabilityCheckExpr(AvailSpecs, BeginLoc, in ParseAvailabilityCheckExpr()
H A DParseDecl.cpp1637 SourceLocation BeginLoc = ConsumeBracket(); in DiagnoseProhibitedCXX11Attribute() local
1642 Diag(BeginLoc, diag::err_attributes_not_allowed) in DiagnoseProhibitedCXX11Attribute()
1643 << SourceRange(BeginLoc, EndLoc); in DiagnoseProhibitedCXX11Attribute()
H A DParseOpenMP.cpp1975 SourceLocation BeginLoc, in parseOMPEndDirective() argument
1988 Diag(BeginLoc, diag::note_matching) in parseOMPEndDirective()
/openbsd/gnu/llvm/clang/lib/AST/
H A DStmt.cpp729 SourceLocation BeginLoc = getAsmString()->getLocationOfByte( in AnalyzeAsmString() local
736 Pieces.emplace_back(N, std::move(Str), BeginLoc, EndLoc); in AnalyzeAsmString()
765 SourceLocation BeginLoc = getAsmString()->getLocationOfByte( in AnalyzeAsmString() local
772 Pieces.emplace_back(N, std::move(Str), BeginLoc, EndLoc); in AnalyzeAsmString()
H A DExpr.cpp4916 RecoveryExpr::RecoveryExpr(ASTContext &Ctx, QualType T, SourceLocation BeginLoc, in RecoveryExpr() argument
4921 BeginLoc(BeginLoc), EndLoc(EndLoc), NumExprs(SubExprs.size()) { in RecoveryExpr()
4930 SourceLocation BeginLoc, in Create() argument
4935 return new (Mem) RecoveryExpr(Ctx, T, BeginLoc, EndLoc, SubExprs); in Create()
H A DDecl.cpp5276 SourceLocation BeginLoc = Statement->getBeginLoc(); in Create() local
5279 return new (C, DC) TopLevelStmtDecl(DC, BeginLoc, Statement); in Create()
/openbsd/gnu/llvm/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp996 SourceLocation BeginLoc = Range.getBegin(); in getSourceRangeOffsets() local
1001 EndLoc = BeginLoc; in getSourceRangeOffsets()
1003 unsigned Begin = SrcMgr.getFileOffset(SrcMgr.getExpansionLoc(BeginLoc)); in getSourceRangeOffsets()
/openbsd/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DBugReporterVisitors.cpp2938 SourceLocation BeginLoc = OriginalExpr->getBeginLoc(); in patternMatch() local
2940 if (BeginLoc.isMacroID() && EndLoc.isMacroID()) { in patternMatch()
2943 if (Lexer::isAtStartOfMacroExpansion(BeginLoc, SM, LO) && in patternMatch()
2945 CharSourceRange R = Lexer::getAsCharRange({BeginLoc, EndLoc}, SM, LO); in patternMatch()
/openbsd/gnu/llvm/clang/tools/libclang/
H A DCIndex.cpp577 SourceLocation BeginLoc = RegionOfInterest.getBegin(); in VisitChildren() local
579 BeginLoc == RegionOfInterest.getEnd()) { in VisitChildren()
580 SourceLocation Loc = AU->mapLocationToPreamble(BeginLoc); in VisitChildren()
585 return Visit(cxcursor::MakeMacroExpansionCursor(MacroDef, BeginLoc, TU)); in VisitChildren()
7904 SourceLocation BeginLoc = Tok.getLocation(); in annotatePreprocessorTokens() local
7947 MakePreprocessingDirectiveCursor(SourceRange(BeginLoc, EndLoc), TU); in annotatePreprocessorTokens()

12