/openbsd/gnu/llvm/clang/include/clang/AST/ |
H A D | Availability.h | 39 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 D | DeclarationName.h | 745 static DeclarationNameLoc makeCXXOperatorNameLoc(SourceLocation BeginLoc, in makeCXXOperatorNameLoc() argument 747 return makeCXXOperatorNameLoc(SourceRange(BeginLoc, EndLoc)); in makeCXXOperatorNameLoc()
|
H A D | Expr.h | 6428 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 D | SemaModule.cpp | 83 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 D | SemaCast.cpp | 1040 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 D | Sema.cpp | 1211 Diag(ModuleScopes.back().BeginLoc, in ActOnEndOfTranslationUnit() 1275 Diag(ModuleScopes.back().BeginLoc, in ActOnEndOfTranslationUnit()
|
/openbsd/gnu/llvm/clang/lib/Lex/ |
H A D | PreprocessingRecord.cpp | 254 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 D | TokenLexer.cpp | 993 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 D | Pragma.cpp | 1694 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 D | Tokens.cpp | 242 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 D | RecursiveSymbolVisitor.h | 140 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 D | USRLocFinder.cpp | 89 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 D | SARIFDiagnostic.cpp | 109 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 D | Tokens.h | 54 FileRange(const SourceManager &SM, SourceLocation BeginLoc, unsigned Length); 57 FileRange(const SourceManager &SM, SourceLocation BeginLoc,
|
/openbsd/gnu/llvm/clang/lib/ExtractAPI/Serialization/ |
H A D | SymbolGraphSerializer.cpp | 136 Object serializeSourceRange(const PresumedLoc &BeginLoc, in serializeSourceRange() argument 139 serializeObject(SourceRange, "start", serializeSourcePosition(BeginLoc)); in serializeSourceRange()
|
/openbsd/gnu/llvm/clang/lib/Parse/ |
H A D | Parser.cpp | 1797 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 D | ParseExpr.cpp | 3746 ExprResult Parser::ParseAvailabilityCheckExpr(SourceLocation BeginLoc) { in ParseAvailabilityCheckExpr() argument 3780 return Actions.ActOnObjCAvailabilityCheckExpr(AvailSpecs, BeginLoc, in ParseAvailabilityCheckExpr()
|
H A D | ParseDecl.cpp | 1637 SourceLocation BeginLoc = ConsumeBracket(); in DiagnoseProhibitedCXX11Attribute() local 1642 Diag(BeginLoc, diag::err_attributes_not_allowed) in DiagnoseProhibitedCXX11Attribute() 1643 << SourceRange(BeginLoc, EndLoc); in DiagnoseProhibitedCXX11Attribute()
|
H A D | ParseOpenMP.cpp | 1975 SourceLocation BeginLoc, in parseOMPEndDirective() argument 1988 Diag(BeginLoc, diag::note_matching) in parseOMPEndDirective()
|
/openbsd/gnu/llvm/clang/lib/AST/ |
H A D | Stmt.cpp | 729 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 D | Expr.cpp | 4916 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 D | Decl.cpp | 5276 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 D | ASTDiff.cpp | 996 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 D | BugReporterVisitors.cpp | 2938 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 D | CIndex.cpp | 577 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()
|