Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DOpenACCClause.cpp61 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 DStmtOpenACC.cpp28 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 DStmt.cpp763 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 DOpenACCClause.h32 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 DAvailability.h40 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 DDeclarationName.h774 static DeclarationNameLoc makeCXXOperatorNameLoc(SourceLocation BeginLoc, in makeCXXOperatorNameLoc() argument
776 return makeCXXOperatorNameLoc(SourceRange(BeginLoc, EndLoc)); in makeCXXOperatorNameLoc()
H A DStmtOpenACC.h175 Create(const ASTContext &C, OpenACCDirectiveKind K, SourceLocation BeginLoc,
220 SourceLocation BeginLoc, SourceLocation DirLoc, SourceLocation EndLoc,
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaModule.cpp217 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 DSemaOpenACCClause.cpp2091 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 DTreeTransform.h4098 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 DSemaCast.cpp1129 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 DPreprocessingRecord.cpp251 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 DTokenLexer.cpp1002 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 DPragma.cpp1740 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 DTokens.cpp188 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 DRecursiveSymbolVisitor.h141 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 DUSRLocFinder.cpp88 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 DSARIFDiagnostic.cpp109 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 DTokens.h54 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 DSemaOpenACC.h343 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 DSourceCode.cpp135 SourceLocation BeginLoc = in getRangeForSplitTokens() local
140 return CharSourceRange::getCharRange(BeginLoc, EndToken->getEnd()); in getRangeForSplitTokens()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp8519 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 DParser.cpp1770 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 DSymbolGraphSerializer.cpp145 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 DBugReporterVisitors.cpp2927 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()

12