| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | OpenACCClause.cpp | 61 SourceLocation BeginLoc, in Create() argument 67 return new (Mem) OpenACCDefaultClause(K, BeginLoc, LParenLoc, EndLoc); in Create() 71 SourceLocation BeginLoc, in Create() argument 76 return new (Mem) OpenACCIfClause(BeginLoc, LParenLoc, ConditionExpr, EndLoc); in Create() 79 OpenACCIfClause::OpenACCIfClause(SourceLocation BeginLoc, in OpenACCIfClause() argument 82 : OpenACCClauseWithCondition(OpenACCClauseKind::If, BeginLoc, LParenLoc, in OpenACCIfClause() 91 SourceLocation BeginLoc, in Create() argument 97 OpenACCSelfClause(BeginLoc, LParenLoc, ConditionExpr, EndLoc); in Create() 101 SourceLocation BeginLoc, in Create() argument 107 return new (Mem) OpenACCSelfClause(BeginLoc, LParenLoc, VarList, EndLoc); in Create() [all …]
|
| H A D | StmtOpenACC.cpp | 28 const ASTContext &C, OpenACCDirectiveKind K, SourceLocation BeginLoc, in Create() argument 34 auto *Inst = new (Mem) OpenACCComputeConstruct(K, BeginLoc, DirLoc, EndLoc, in Create() 77 SourceLocation BeginLoc, SourceLocation DirLoc, SourceLocation EndLoc, in Create() argument 83 OpenACCLoopConstruct(ParentKind, BeginLoc, DirLoc, EndLoc, Clauses, Loop); in Create() 98 const ASTContext &C, OpenACCDirectiveKind DK, SourceLocation BeginLoc, in Create() argument 105 OpenACCCombinedConstruct(DK, BeginLoc, DirLoc, EndLoc, Clauses, Loop); in Create()
|
| H A D | Stmt.cpp | 763 SourceLocation BeginLoc, EndLoc; in AnalyzeAsmString() local 765 BeginLoc = in AnalyzeAsmString() 772 BeginLoc = getAsmStringExpr()->getBeginLoc(); in AnalyzeAsmString() 776 Pieces.emplace_back(N, std::move(Str), BeginLoc, EndLoc); in AnalyzeAsmString() 805 SourceLocation BeginLoc, EndLoc; in AnalyzeAsmString() local 807 BeginLoc = in AnalyzeAsmString() 814 BeginLoc = getAsmStringExpr()->getBeginLoc(); in AnalyzeAsmString() 818 Pieces.emplace_back(N, std::move(Str), BeginLoc, EndLoc); in AnalyzeAsmString()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | OpenACCClause.h | 32 OpenACCClause(OpenACCClauseKind K, SourceLocation BeginLoc, in OpenACCClause() argument 34 : Kind(K), Location(BeginLoc, EndLoc) { in OpenACCClause() 35 assert(!BeginLoc.isInvalid() && !EndLoc.isInvalid() && in OpenACCClause() 64 OpenACCAutoClause(SourceLocation BeginLoc, SourceLocation EndLoc) in OpenACCAutoClause() argument 65 : OpenACCClause(OpenACCClauseKind::Auto, BeginLoc, EndLoc) {} in OpenACCAutoClause() 73 Create(const ASTContext &Ctx, SourceLocation BeginLoc, SourceLocation EndLoc); 86 OpenACCFinalizeClause(SourceLocation BeginLoc, SourceLocation EndLoc) in OpenACCFinalizeClause() argument 87 : OpenACCClause(OpenACCClauseKind::Finalize, BeginLoc, EndLoc) {} in OpenACCFinalizeClause() 95 Create(const ASTContext &Ctx, SourceLocation BeginLoc, SourceLocation EndLoc); 108 OpenACCIfPresentClause(SourceLocation BeginLoc, SourceLocation EndLoc) in OpenACCIfPresentClause() argument [all …]
|
| H A D | Availability.h | 40 SourceLocation BeginLoc, EndLoc; variable 44 SourceLocation BeginLoc, SourceLocation EndLoc) in AvailabilitySpec() argument 45 : Version(Version), Platform(Platform), BeginLoc(BeginLoc), in AvailabilitySpec() 50 : BeginLoc(StarLoc), EndLoc(StarLoc) {} in AvailabilitySpec() 54 SourceLocation getBeginLoc() const { return BeginLoc; } in getBeginLoc()
|
| H A D | DeclarationName.h | 774 static DeclarationNameLoc makeCXXOperatorNameLoc(SourceLocation BeginLoc, in makeCXXOperatorNameLoc() argument 776 return makeCXXOperatorNameLoc(SourceRange(BeginLoc, EndLoc)); in makeCXXOperatorNameLoc()
|
| H A D | StmtOpenACC.h | 175 Create(const ASTContext &C, OpenACCDirectiveKind K, SourceLocation BeginLoc, 220 SourceLocation BeginLoc, SourceLocation DirLoc, SourceLocation EndLoc,
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaModule.cpp | 217 ModuleScopes.back().BeginLoc = StartOfTU; in HandleStartOfHeaderUnit() 342 SourceLocation BeginLoc = PP.getMainFileFirstPPTokenLoc(); in ActOnModuleDecl() local 343 Diag(BeginLoc, diag::note_global_module_introducer_missing) in ActOnModuleDecl() 344 << FixItHint::CreateInsertion(BeginLoc, "module;\n"); in ActOnModuleDecl() 464 ModuleScopes.back().BeginLoc = StartLoc; in ActOnModuleDecl() 533 Diag(ModuleScopes.back().BeginLoc, diag::note_previous_definition); in ActOnPrivateModuleFragmentDecl() 538 Diag(ModuleScopes.back().BeginLoc, in ActOnPrivateModuleFragmentDecl() 540 << FixItHint::CreateInsertion(ModuleScopes.back().BeginLoc, "export "); in ActOnPrivateModuleFragmentDecl() 562 ModuleScopes.back().BeginLoc = ModuleLoc; in ActOnPrivateModuleFragmentDecl() 879 Diag(ModuleScopes.back().BeginLoc, in ActOnStartExportDecl() [all …]
|
| H A D | SemaOpenACCClause.cpp | 2091 SourceLocation BeginLoc, SourceLocation LParenLoc, in CheckGangClause() argument 2127 return OpenACCGangClause::Create(getASTContext(), BeginLoc, LParenLoc, in CheckGangClause() 2133 OpenACCDirectiveKind DirectiveKind, SourceLocation BeginLoc, in CheckReductionClause() argument 2153 Diag(BeginLoc, diag::err_acc_gang_reduction_conflict) in CheckReductionClause() 2164 getASTContext(), BeginLoc, LParenLoc, ReductionOp, Vars, EndLoc); in CheckReductionClause()
|
| H A D | TreeTransform.h | 4098 ExprResult RebuildRecoveryExpr(SourceLocation BeginLoc, SourceLocation EndLoc, in RebuildRecoveryExpr() argument 4100 return getSema().CreateRecoveryExpr(BeginLoc, EndLoc, SubExprs, Type); in RebuildRecoveryExpr() 4104 SourceLocation BeginLoc, in RebuildOpenACCComputeConstruct() argument 4110 K, BeginLoc, DirLoc, SourceLocation{}, SourceLocation{}, {}, in RebuildOpenACCComputeConstruct() 4114 StmtResult RebuildOpenACCLoopConstruct(SourceLocation BeginLoc, in RebuildOpenACCLoopConstruct() argument 4120 OpenACCDirectiveKind::Loop, BeginLoc, DirLoc, SourceLocation{}, in RebuildOpenACCLoopConstruct() 4126 SourceLocation BeginLoc, in RebuildOpenACCCombinedConstruct() argument 4132 K, BeginLoc, DirLoc, SourceLocation{}, SourceLocation{}, {}, in RebuildOpenACCCombinedConstruct() 4136 StmtResult RebuildOpenACCDataConstruct(SourceLocation BeginLoc, in RebuildOpenACCDataConstruct() argument 4142 OpenACCDirectiveKind::Data, BeginLoc, DirLoc, SourceLocation{}, in RebuildOpenACCDataConstruct() [all …]
|
| H A D | SemaCast.cpp | 1129 SourceLocation BeginLoc = OpRange.getBegin(); in DiagnoseReinterpretUpDownCast() local 1130 Self.Diag(BeginLoc, diag::warn_reinterpret_different_from_static) in DiagnoseReinterpretUpDownCast() 1133 Self.Diag(BeginLoc, diag::note_reinterpret_updowncast_use_static) in DiagnoseReinterpretUpDownCast() 1135 << FixItHint::CreateReplacement(BeginLoc, "static_cast"); in DiagnoseReinterpretUpDownCast()
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PreprocessingRecord.cpp | 251 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity() local 256 BeginLoc, in addPreprocessedEntity() 265 !SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity() 293 if (!SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity() 303 llvm::upper_bound(PreprocessedEntities, BeginLoc, in addPreprocessedEntity()
|
| H A D | TokenLexer.cpp | 1002 SourceLocation BeginLoc = begin_tokens->getLocation(); in updateConsecutiveMacroArgTokens() local 1006 auto NearLast = [&, Last = BeginLoc](SourceLocation Loc) mutable { in updateConsecutiveMacroArgTokens() 1019 if (BeginLoc.isFileID()) { in updateConsecutiveMacroArgTokens() 1028 FileID BeginFID = SM.getFileID(BeginLoc); in updateConsecutiveMacroArgTokens() 1040 return T.getLocation() >= BeginLoc && T.getLocation() <= Limit in updateConsecutiveMacroArgTokens() 1053 SM.createMacroArgExpansionLoc(BeginLoc, ExpandLoc, FullLength); in updateConsecutiveMacroArgTokens() 1067 T.getLocation().getRawEncoding() - BeginLoc.getRawEncoding(); in updateConsecutiveMacroArgTokens()
|
| H A D | Pragma.cpp | 1740 SourceLocation BeginLoc = Tok.getLocation(); in HandlePragma() local 1785 PP.Diag(BeginLoc, diag::note_pp_module_begin_here) in HandlePragma() 1791 PP.EnterSubmodule(M, BeginLoc, /*ForPragma*/true); in HandlePragma() 1792 PP.EnterAnnotationToken(SourceRange(BeginLoc, ModuleName.back().getLoc()), in HandlePragma() 1901 SourceLocation BeginLoc = PP.getPragmaARCCFCodeAuditedInfo().getLoc(); in HandlePragma() local 1908 if (BeginLoc.isValid()) { in HandlePragma() 1910 PP.Diag(BeginLoc, diag::note_pragma_entered_here); in HandlePragma() 1915 if (!BeginLoc.isValid()) { in HandlePragma() 1956 SourceLocation BeginLoc = PP.getPragmaAssumeNonNullLoc(); in HandlePragma() local 1964 if (BeginLoc.isValid()) { in HandlePragma() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
| H A D | Tokens.cpp | 188 FileRange::FileRange(const SourceManager &SM, SourceLocation BeginLoc, in FileRange() argument 190 assert(BeginLoc.isValid()); in FileRange() 191 assert(BeginLoc.isFileID()); in FileRange() 193 std::tie(File, Begin) = SM.getDecomposedLoc(BeginLoc); in FileRange() 196 FileRange::FileRange(const SourceManager &SM, SourceLocation BeginLoc, in FileRange() argument 198 assert(BeginLoc.isValid()); in FileRange() 199 assert(BeginLoc.isFileID()); in FileRange() 202 assert(SM.getFileID(BeginLoc) == SM.getFileID(EndLoc)); in FileRange() 203 assert(SM.getFileOffset(BeginLoc) <= SM.getFileOffset(EndLoc)); in FileRange() 205 std::tie(File, Begin) = SM.getDecomposedLoc(BeginLoc); in FileRange()
|
| /freebsd/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/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRLocFinder.cpp | 88 const SourceLocation BeginLoc = Loc; in checkAndAddLocation() local 90 BeginLoc, 0, Context.getSourceManager(), Context.getLangOpts()); in checkAndAddLocation() 92 Lexer::getSourceText(CharSourceRange::getTokenRange(BeginLoc, EndLoc), in checkAndAddLocation() 100 BeginLoc.getLocWithOffset(Offset)); in checkAndAddLocation()
|
| /freebsd/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/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/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | SemaOpenACC.h | 343 OpenACCClauseKind ClauseKind, SourceLocation BeginLoc) in OpenACCParsedClause() argument 344 : DirKind(DirKind), ClauseKind(ClauseKind), ClauseRange(BeginLoc, {}) {} in OpenACCParsedClause() 940 SourceLocation BeginLoc, SourceLocation LParenLoc, 948 SourceLocation BeginLoc, SourceLocation LParenLoc,
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
| H A D | SourceCode.cpp | 135 SourceLocation BeginLoc = in getRangeForSplitTokens() local 140 return CharSourceRange::getCharRange(BeginLoc, EndToken->getEnd()); in getRangeForSplitTokens()
|
| /freebsd/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTReader.cpp | 8519 BeginLoc = SM.getLocForStartOfFile(File).getLocWithOffset(Offset); in FindFileRegionDecls() local 8520 SourceLocation EndLoc = BeginLoc.getLocWithOffset(Length); in FindFileRegionDecls() 8524 llvm::lower_bound(DInfo.Decls, BeginLoc, DIDComp); in FindFileRegionDecls() 12671 SourceLocation BeginLoc = readSourceLocation(); in readOpenACCClause() local 12678 return OpenACCDefaultClause::Create(getContext(), DCK, BeginLoc, LParenLoc, in readOpenACCClause() 12684 return OpenACCIfClause::Create(getContext(), BeginLoc, LParenLoc, CondExpr, in readOpenACCClause() 12692 return OpenACCSelfClause::Create(getContext(), BeginLoc, LParenLoc, in readOpenACCClause() 12699 return OpenACCSelfClause::Create(getContext(), BeginLoc, LParenLoc, VarList, in readOpenACCClause() 12708 return OpenACCNumGangsClause::Create(getContext(), BeginLoc, LParenLoc, in readOpenACCClause() 12714 return OpenACCNumWorkersClause::Create(getContext(), BeginLoc, LParenLoc, in readOpenACCClause() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Parse/ |
| H A D | Parser.cpp | 1770 SourceLocation BeginLoc = NameLoc; in TryAnnotateName() local 1772 BeginLoc = SS.getBeginLoc(); in TryAnnotateName() 1796 Tok.setLocation(BeginLoc); in TryAnnotateName() 2030 SourceLocation BeginLoc = Tok.getLocation(); in TryAnnotateTypeOrScopeTokenAfterScopeSpec() local 2032 BeginLoc = SS.getBeginLoc(); in TryAnnotateTypeOrScopeTokenAfterScopeSpec() 2057 Tok.setLocation(BeginLoc); in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
|
| /freebsd/contrib/llvm-project/clang/lib/ExtractAPI/Serialization/ |
| H A D | SymbolGraphSerializer.cpp | 145 Object serializeSourceRange(const PresumedLoc &BeginLoc, in serializeSourceRange() argument 148 serializeObject(SourceRange, "start", serializeSourcePosition(BeginLoc)); in serializeSourceRange()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | BugReporterVisitors.cpp | 2927 SourceLocation BeginLoc = OriginalExpr->getBeginLoc(); in patternMatch() local 2929 if (BeginLoc.isMacroID() && EndLoc.isMacroID()) { in patternMatch() 2932 if (Lexer::isAtStartOfMacroExpansion(BeginLoc, SM, LO) && in patternMatch() 2934 CharSourceRange R = Lexer::getAsCharRange({BeginLoc, EndLoc}, SM, LO); in patternMatch()
|