| /freebsd-14.2/contrib/llvm-project/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 | 746 static DeclarationNameLoc makeCXXOperatorNameLoc(SourceLocation BeginLoc, in makeCXXOperatorNameLoc() argument 748 return makeCXXOperatorNameLoc(SourceRange(BeginLoc, EndLoc)); in makeCXXOperatorNameLoc()
|
| H A D | Expr.h | 6611 SourceLocation BeginLoc, SourceLocation EndLoc, 6629 SourceLocation getBeginLoc() const { return BeginLoc; } in getBeginLoc() 6637 RecoveryExpr(ASTContext &Ctx, QualType T, SourceLocation BeginLoc, 6644 SourceLocation BeginLoc, EndLoc; variable
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaModule.cpp | 126 ModuleScopes.back().BeginLoc = StartOfTU; in HandleStartOfHeaderUnit() 249 SourceLocation BeginLoc = in ActOnModuleDecl() local 252 : ModuleScopes.back().BeginLoc; in ActOnModuleDecl() 253 if (BeginLoc.isValid()) { in ActOnModuleDecl() 255 << FixItHint::CreateInsertion(BeginLoc, "module;\n"); in ActOnModuleDecl() 375 ModuleScopes.back().BeginLoc = StartLoc; in ActOnModuleDecl() 445 Diag(ModuleScopes.back().BeginLoc, in ActOnPrivateModuleFragmentDecl() 469 ModuleScopes.back().BeginLoc = ModuleLoc; in ActOnPrivateModuleFragmentDecl() 772 Diag(ModuleScopes.back().BeginLoc, in ActOnStartExportDecl() 923 BeginLoc, getCurrentModule()); in PushGlobalModuleFragment() [all …]
|
| H A D | SemaCast.cpp | 1071 SourceLocation BeginLoc = OpRange.getBegin(); in DiagnoseReinterpretUpDownCast() local 1072 Self.Diag(BeginLoc, diag::warn_reinterpret_different_from_static) in DiagnoseReinterpretUpDownCast() 1075 Self.Diag(BeginLoc, diag::note_reinterpret_updowncast_use_static) in DiagnoseReinterpretUpDownCast() 1077 << FixItHint::CreateReplacement(BeginLoc, "static_cast"); in DiagnoseReinterpretUpDownCast()
|
| H A D | Sema.cpp | 1213 Diag(ModuleScopes.back().BeginLoc, in ActOnEndOfTranslationUnit() 1298 Diag(ModuleScopes.back().BeginLoc, in ActOnEndOfTranslationUnit()
|
| /freebsd-14.2/contrib/llvm-project/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 | 992 SourceLocation BeginLoc = begin_tokens->getLocation(); in updateConsecutiveMacroArgTokens() local 996 auto NearLast = [&, Last = BeginLoc](SourceLocation Loc) mutable { in updateConsecutiveMacroArgTokens() 1009 if (BeginLoc.isFileID()) { in updateConsecutiveMacroArgTokens() 1018 FileID BeginFID = SM.getFileID(BeginLoc); in updateConsecutiveMacroArgTokens() 1030 return T.getLocation() >= BeginLoc && T.getLocation() <= Limit in updateConsecutiveMacroArgTokens() 1043 SM.createMacroArgExpansionLoc(BeginLoc, ExpandLoc, FullLength); in updateConsecutiveMacroArgTokens() 1057 T.getLocation().getRawEncoding() - BeginLoc.getRawEncoding(); in updateConsecutiveMacroArgTokens()
|
| H A D | Pragma.cpp | 1731 SourceLocation BeginLoc = Tok.getLocation(); in HandlePragma() local 1773 PP.Diag(BeginLoc, diag::note_pp_module_begin_here) in HandlePragma() 1779 PP.EnterSubmodule(M, BeginLoc, /*ForPragma*/true); in HandlePragma() 1890 SourceLocation BeginLoc = PP.getPragmaARCCFCodeAuditedInfo().second; in HandlePragma() local 1897 if (BeginLoc.isValid()) { in HandlePragma() 1899 PP.Diag(BeginLoc, diag::note_pragma_entered_here); in HandlePragma() 1904 if (!BeginLoc.isValid()) { in HandlePragma() 1945 SourceLocation BeginLoc = PP.getPragmaAssumeNonNullLoc(); in HandlePragma() local 1953 if (BeginLoc.isValid()) { in HandlePragma() 1955 PP.Diag(BeginLoc, diag::note_pragma_entered_here); in HandlePragma() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
| H A D | Tokens.cpp | 190 FileRange::FileRange(const SourceManager &SM, SourceLocation BeginLoc, in FileRange() argument 192 assert(BeginLoc.isValid()); in FileRange() 193 assert(BeginLoc.isFileID()); in FileRange() 195 std::tie(File, Begin) = SM.getDecomposedLoc(BeginLoc); in FileRange() 198 FileRange::FileRange(const SourceManager &SM, SourceLocation BeginLoc, in FileRange() argument 200 assert(BeginLoc.isValid()); in FileRange() 201 assert(BeginLoc.isFileID()); in FileRange() 204 assert(SM.getFileID(BeginLoc) == SM.getFileID(EndLoc)); in FileRange() 205 assert(SM.getFileOffset(BeginLoc) <= SM.getFileOffset(EndLoc)); in FileRange() 207 std::tie(File, Begin) = SM.getDecomposedLoc(BeginLoc); in FileRange()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/ |
| H A D | RecursiveSymbolVisitor.h | 141 bool visit(const NamedDecl *ND, SourceLocation BeginLoc, in visit() argument 144 ND, SourceRange(BeginLoc, EndLoc)); in visit()
|
| /freebsd-14.2/contrib/llvm-project/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()
|
| /freebsd-14.2/contrib/llvm-project/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()
|
| /freebsd-14.2/contrib/llvm-project/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,
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Parse/ |
| H A D | Parser.cpp | 1852 SourceLocation BeginLoc = NameLoc; in TryAnnotateName() local 1854 BeginLoc = SS.getBeginLoc(); in TryAnnotateName() 1878 Tok.setLocation(BeginLoc); in TryAnnotateName() 2119 SourceLocation BeginLoc = Tok.getLocation(); in TryAnnotateTypeOrScopeTokenAfterScopeSpec() local 2121 BeginLoc = SS.getBeginLoc(); in TryAnnotateTypeOrScopeTokenAfterScopeSpec() 2146 Tok.setLocation(BeginLoc); in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
|
| H A D | ParseExpr.cpp | 3866 ExprResult Parser::ParseAvailabilityCheckExpr(SourceLocation BeginLoc) { in ParseAvailabilityCheckExpr() argument 3900 return Actions.ActOnObjCAvailabilityCheckExpr(AvailSpecs, BeginLoc, in ParseAvailabilityCheckExpr()
|
| H A D | ParseDecl.cpp | 1751 SourceLocation BeginLoc = ConsumeBracket(); in DiagnoseProhibitedCXX11Attribute() local 1756 Diag(BeginLoc, diag::err_attributes_not_allowed) in DiagnoseProhibitedCXX11Attribute() 1757 << SourceRange(BeginLoc, EndLoc); in DiagnoseProhibitedCXX11Attribute()
|
| H A D | ParseOpenMP.cpp | 1976 SourceLocation BeginLoc, in parseOMPEndDirective() argument 1989 Diag(BeginLoc, diag::note_matching) in parseOMPEndDirective()
|
| /freebsd-14.2/contrib/llvm-project/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 | 5023 RecoveryExpr::RecoveryExpr(ASTContext &Ctx, QualType T, SourceLocation BeginLoc, in RecoveryExpr() argument 5028 BeginLoc(BeginLoc), EndLoc(EndLoc), NumExprs(SubExprs.size()) { in RecoveryExpr() 5037 SourceLocation BeginLoc, in Create() argument 5042 return new (Mem) RecoveryExpr(Ctx, T, BeginLoc, EndLoc, SubExprs); in Create()
|
| H A D | Decl.cpp | 5533 SourceLocation BeginLoc = Statement->getBeginLoc(); in Create() local 5536 return new (C, DC) TopLevelStmtDecl(DC, BeginLoc, Statement); in Create()
|
| /freebsd-14.2/contrib/llvm-project/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()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/ExtractAPI/Serialization/ |
| H A D | SymbolGraphSerializer.cpp | 139 Object serializeSourceRange(const PresumedLoc &BeginLoc, in serializeSourceRange() argument 142 serializeObject(SourceRange, "start", serializeSourcePosition(BeginLoc)); in serializeSourceRange()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | BugReporterVisitors.cpp | 2956 SourceLocation BeginLoc = OriginalExpr->getBeginLoc(); in patternMatch() local 2958 if (BeginLoc.isMacroID() && EndLoc.isMacroID()) { in patternMatch() 2961 if (Lexer::isAtStartOfMacroExpansion(BeginLoc, SM, LO) && in patternMatch() 2963 CharSourceRange R = Lexer::getAsCharRange({BeginLoc, EndLoc}, SM, LO); in patternMatch()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | UnsafeBufferUsage.cpp | 1658 SourceLocation BeginLoc = FD->getQualifier() in getFunNameText() local 1665 SourceRange NameRange{BeginLoc, EndLoc}; in getFunNameText()
|