Home
last modified time | relevance | path

Searched refs:StartLoc (Results 1 – 25 of 98) sorted by relevance

1234

/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaOpenMP.h215 Stmt *AStmt, SourceLocation StartLoc,
289 SourceLocation StartLoc, DeclarationName VN, AccessSpecifier AS,
295 SourceLocation StartLoc,
402 Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc);
413 ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
422 Stmt *AStmt, SourceLocation StartLoc,
428 Stmt *AStmt, SourceLocation StartLoc,
436 SourceLocation StartLoc, SourceLocation EndLoc,
441 Stmt *AStmt, SourceLocation StartLoc,
444 Stmt *AStmt, SourceLocation StartLoc,
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmtOpenMP.h273 SourceLocation StartLoc; variable
296 SourceLocation StartLoc, SourceLocation EndLoc) in OMPExecutableDirective() argument
297 : Stmt(SC), Kind(K), StartLoc(std::move(StartLoc)), in OMPExecutableDirective()
488 SourceLocation getBeginLoc() const { return StartLoc; } in getBeginLoc()
496 void setLocStart(SourceLocation Loc) { StartLoc = Loc; } in setLocStart()
622 OMPParallelDirective(SourceLocation StartLoc, SourceLocation EndLoc) in OMPParallelDirective() argument
624 llvm::omp::OMPD_parallel, StartLoc, EndLoc) {} in OMPParallelDirective()
652 Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
698 SourceLocation StartLoc, SourceLocation EndLoc, in OMPLoopBasedDirective() argument
700 : OMPExecutableDirective(SC, Kind, StartLoc, EndLoc), in OMPLoopBasedDirective()
[all …]
H A DOpenMPClause.h57 SourceLocation StartLoc; variable
66 OMPClause(OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc) in OMPClause() argument
67 : StartLoc(StartLoc), EndLoc(EndLoc), Kind(K) {} in OMPClause()
71 SourceLocation getBeginLoc() const { return StartLoc; } in getBeginLoc()
77 void setLocStart(SourceLocation Loc) { StartLoc = Loc; } in setLocStart()
85 bool isImplicit() const { return StartLoc.isInvalid(); } in isImplicit()
116 OMPNoChildClause(SourceLocation StartLoc, SourceLocation EndLoc) in OMPNoChildClause()
117 : OMPClause(ClauseKind, StartLoc, EndLoc) {} in OMPNoChildClause()
156 OMPOneStmtClause(Stmt *S, SourceLocation StartLoc, SourceLocation LParenLoc, in OMPOneStmtClause() argument
158 : Base(ClauseKind, StartLoc, EndLoc), LParenLoc(LParenLoc), S(S) {} in OMPOneStmtClause()
[all …]
H A DDeclOpenACC.h43 SourceLocation StartLoc, SourceLocation DirLoc, in OpenACCConstructDecl() argument
45 : Decl(DeclKind, DC, StartLoc), DirKind(K), DirectiveLoc(DirLoc), in OpenACCConstructDecl()
80 OpenACCDeclareDecl(DeclContext *DC, SourceLocation StartLoc, in OpenACCDeclareDecl() argument
84 StartLoc, DirLoc, EndLoc) { in OpenACCDeclareDecl()
93 SourceLocation StartLoc,
121 OpenACCRoutineDecl(DeclContext *DC, SourceLocation StartLoc, in OpenACCRoutineDecl() argument
127 StartLoc, DirLoc, EndLoc), in OpenACCRoutineDecl()
138 Create(ASTContext &Ctx, DeclContext *DC, SourceLocation StartLoc,
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtOpenMP.cpp263 SourceLocation StartLoc, in Create() argument
268 C, Clauses, AssociatedStmt, /*NumChildren=*/1, StartLoc, EndLoc); in Create()
282 const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, in Create() argument
286 C, Clauses, AssociatedStmt, /*NumChildren=*/1, StartLoc, EndLoc); in Create()
301 OMPSimdDirective::Create(const ASTContext &C, SourceLocation StartLoc, in Create() argument
307 StartLoc, EndLoc, CollapsedNum); in Create()
337 const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, in Create() argument
342 StartLoc, EndLoc, CollapsedNum); in Create()
408 OMPTileDirective::Create(const ASTContext &C, SourceLocation StartLoc, in Create() argument
413 C, Clauses, AssociatedStmt, TransformedStmtOffset + 1, StartLoc, EndLoc, in Create()
[all …]
H A DOpenMPClause.cpp346 SourceLocation StartLoc, in Create() argument
351 new (Mem) OMPOrderedClause(Num, NumLoops, StartLoc, LParenLoc, EndLoc); in Create()
396 SourceLocation StartLoc, in Create() argument
398 return new (C) OMPUpdateClause(StartLoc, EndLoc, /*IsExtended=*/false); in Create()
402 OMPUpdateClause::Create(const ASTContext &C, SourceLocation StartLoc, in Create() argument
409 new (Mem) OMPUpdateClause(StartLoc, EndLoc, /*IsExtended=*/true); in Create()
435 OMPPrivateClause::Create(const ASTContext &C, SourceLocation StartLoc, in Create() argument
441 new (Mem) OMPPrivateClause(StartLoc, LParenLoc, EndLoc, VL.size()); in Create()
466 OMPFirstprivateClause::Create(const ASTContext &C, SourceLocation StartLoc, in Create() argument
472 new (Mem) OMPFirstprivateClause(StartLoc, LParenLoc, EndLoc, VL.size()); in Create()
[all …]
H A DDeclOpenACC.cpp27 SourceLocation StartLoc, SourceLocation DirLoc, in Create() argument
32 OpenACCDeclareDecl(DC, StartLoc, DirLoc, EndLoc, Clauses); in Create()
44 SourceLocation StartLoc, SourceLocation DirLoc, in Create() argument
50 OpenACCRoutineDecl(DC, StartLoc, DirLoc, LParenLoc, FuncRef, RParenLoc, in Create()
H A DDeclTemplate.cpp766 DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, unsigned D, in NonTypeTemplateParmDecl() argument
769 : DeclaratorDecl(NonTypeTemplateParm, DC, IdLoc, Id, T, TInfo, StartLoc), in NonTypeTemplateParmDecl()
783 const ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in Create() argument
793 NonTypeTemplateParmDecl(DC, StartLoc, IdLoc, D, P, Id, T, in Create()
801 const ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in Create() argument
811 NonTypeTemplateParmDecl(DC, StartLoc, IdLoc, D, P, Id, T, TInfo, in Create()
971 SourceLocation StartLoc, SourceLocation IdLoc, in ClassTemplateSpecializationDecl() argument
974 : CXXRecordDecl(DK, TK, Context, DC, StartLoc, IdLoc, in ClassTemplateSpecializationDecl()
989 ASTContext &Context, TagKind TK, DeclContext *DC, SourceLocation StartLoc, in Create() argument
994 Context, ClassTemplateSpecialization, TK, DC, StartLoc, IdLoc, in Create()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp98 SMLoc StartLoc, EndLoc; member in __anonde0c959e0111::SystemZOperand
162 SystemZOperand(OperandKind Kind, SMLoc StartLoc, SMLoc EndLoc) in SystemZOperand() argument
163 : Kind(Kind), StartLoc(StartLoc), EndLoc(EndLoc) {} in SystemZOperand()
166 static std::unique_ptr<SystemZOperand> createInvalid(SMLoc StartLoc, in createInvalid() argument
168 return std::make_unique<SystemZOperand>(KindInvalid, StartLoc, EndLoc); in createInvalid()
179 createReg(RegisterKind Kind, unsigned Num, SMLoc StartLoc, SMLoc EndLoc) { in createReg() argument
180 auto Op = std::make_unique<SystemZOperand>(KindReg, StartLoc, EndLoc); in createReg()
187 createImm(const MCExpr *Expr, SMLoc StartLoc, SMLoc EndLoc) { in createImm() argument
188 auto Op = std::make_unique<SystemZOperand>(KindImm, StartLoc, EndLoc); in createImm()
196 unsigned LengthReg, SMLoc StartLoc, SMLoc EndLoc) { in createMem() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp48 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
49 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
292 bool MSP430AsmParser::parseRegister(MCRegister &Reg, SMLoc &StartLoc, in parseRegister() argument
294 ParseStatus Res = tryParseRegister(Reg, StartLoc, EndLoc); in parseRegister()
296 return Error(StartLoc, "invalid register name"); in parseRegister()
305 ParseStatus MSP430AsmParser::tryParseRegister(MCRegister &Reg, SMLoc &StartLoc, in tryParseRegister() argument
317 StartLoc = T.getLoc(); in tryParseRegister()
452 SMLoc StartLoc, EndLoc; in ParseOperand() local
453 if (!parseRegister(RegNo, StartLoc, EndLoc)) { in ParseOperand()
454 Operands.push_back(MSP430Operand::CreateReg(RegNo, StartLoc, EndLoc)); in ParseOperand()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp199 auto StartLoc = Decl->getLocation(); in VisitNamedDecl() local
200 auto EndLoc = StartLoc; in VisitNamedDecl()
201 if (IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitNamedDecl()
202 RenameInfo Info = {StartLoc, in VisitNamedDecl()
216 auto StartLoc = Expr->getMemberLoc(); in VisitMemberExpr() local
219 RenameInfos.push_back({StartLoc, EndLoc, in VisitMemberExpr()
233 auto StartLoc = D.getFieldLoc(); in VisitDesignatedInitExpr() local
235 RenameInfos.push_back({StartLoc, EndLoc, in VisitDesignatedInitExpr()
276 auto StartLoc = Expr->getBeginLoc(); in VisitDeclRefExpr() local
329 IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitDeclRefExpr()
[all …]
H A DUSRFinder.cpp84 SourceLocation StartLoc = CurrDecl->getBeginLoc(); in getNamedDeclAt() local
86 if (StartLoc.isValid() && EndLoc.isValid() && in getNamedDeclAt()
87 SM.isBeforeInTranslationUnit(StartLoc, Point) != in getNamedDeclAt()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseInit.cpp200 SourceLocation StartLoc = T.getOpenLocation(); in ParseInitializerWithPotentialDesignator() local
213 CheckArrayDesignatorSyntax(*this, StartLoc, Desig); in ParseInitializerWithPotentialDesignator()
215 StartLoc, ConsumeToken(), nullptr, nullptr); in ParseInitializerWithPotentialDesignator()
229 CheckArrayDesignatorSyntax(*this, StartLoc, Desig); in ParseInitializerWithPotentialDesignator()
230 return ParseAssignmentExprWithObjCMessageExprStart(StartLoc, in ParseInitializerWithPotentialDesignator()
252 CheckArrayDesignatorSyntax(*this, StartLoc, Desig); in ParseInitializerWithPotentialDesignator()
254 StartLoc, ConsumeToken(), nullptr, nullptr); in ParseInitializerWithPotentialDesignator()
257 CheckArrayDesignatorSyntax(*this, StartLoc, Desig); in ParseInitializerWithPotentialDesignator()
279 return ParseAssignmentExprWithObjCMessageExprStart(StartLoc, in ParseInitializerWithPotentialDesignator()
315 StartLoc, SourceLocation(), nullptr, Idx.get()); in ParseInitializerWithPotentialDesignator()
[all …]
H A DParseDeclCXX.cpp1030 SourceLocation StartLoc = Tok.getLocation(); in ParseDecltypeSpecifier() local
1054 return T.getOpenLocation() == Tok.getLocation() ? StartLoc in ParseDecltypeSpecifier()
1120 if (Result.get() ? DS.SetTypeSpecType(DeclSpec::TST_decltype, StartLoc, in ParseDecltypeSpecifier()
1122 : DS.SetTypeSpecType(DeclSpec::TST_decltype_auto, StartLoc, in ParseDecltypeSpecifier()
1124 Diag(StartLoc, DiagID) << PrevSpec; in ParseDecltypeSpecifier()
1131 SourceLocation StartLoc, in AnnotateExistingDecltypeSpecifier() argument
1152 Tok.setLocation(StartLoc); in AnnotateExistingDecltypeSpecifier()
1161 SourceLocation StartLoc; in ParsePackIndexingType() local
1168 StartLoc = Tok.getLocation(); in ParsePackIndexingType()
1180 DS.SetTypeSpecType(DeclSpec::TST_typename_pack_indexing, StartLoc, PrevSpec, in ParsePackIndexingType()
[all …]
H A DParser.cpp198 SourceLocation StartLoc = Tok.getLocation(); in ConsumeExtraSemi() local
212 Diag(StartLoc, diag::warn_cxx98_compat_top_level_semi) in ConsumeExtraSemi()
213 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
215 Diag(StartLoc, diag::ext_extra_semi_cxx11) in ConsumeExtraSemi()
216 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
221 Diag(StartLoc, diag::ext_extra_semi) in ConsumeExtraSemi()
225 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
228 Diag(StartLoc, diag::warn_extra_semi_after_mem_fn_def) in ConsumeExtraSemi()
229 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
867 SourceLocation StartLoc = Tok.getLocation(); in ParseExternalDeclaration() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp42 bool parseRegister(MCRegister &Reo, SMLoc &StartLoc, SMLoc &EndLoc) override;
43 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
98 SMLoc StartLoc, EndLoc; member
110 StartLoc = o.StartLoc; in BPFOperand()
149 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
206 Op->StartLoc = S; in createToken()
215 Op->StartLoc = S; in createReg()
224 Op->StartLoc = S; in createImm()
359 bool BPFAsmParser::parseRegister(MCRegister &Reg, SMLoc &StartLoc, in parseRegister() argument
361 if (!tryParseRegister(Reg, StartLoc, EndLoc).isSuccess()) in parseRegister()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOpenMP.cpp3577 SourceLocation StartLoc, in ActOnOpenMPAssumeDirective() argument
3582 return OMPAssumeDirective::Create(getASTContext(), StartLoc, EndLoc, Clauses, in ActOnOpenMPAssumeDirective()
4765 SourceLocation StartLoc) { in checkCancelRegion() argument
4775 SemaRef.Diag(StartLoc, diag::err_omp_wrong_cancel_region) in checkCancelRegion()
4785 SourceLocation StartLoc) { in checkNestingOfRegions() argument
4812 SemaRef.Diag(StartLoc, diag::err_omp_prohibited_region_order) in checkNestingOfRegions()
4833 SemaRef.Diag(StartLoc, (CurrentRegion != OMPD_simd) in checkNestingOfRegions()
4842 SemaRef.Diag(StartLoc, diag::err_omp_prohibited_region_atomic); in checkNestingOfRegions()
4851 SemaRef.Diag(StartLoc, diag::err_omp_orphaned_section_directive) in checkNestingOfRegions()
4873 SemaRef.Diag(StartLoc, diag::err_omp_prohibited_region) in checkNestingOfRegions()
[all …]
H A DSemaOpenACC.cpp29 SourceLocation StartLoc, bool IsStmt) { in diagnoseConstructAppertainment() argument
54 return S.Diag(StartLoc, diag::err_acc_construct_appertainment) << K; in diagnoseConstructAppertainment()
1921 OpenACCDirectiveKind K, SourceLocation StartLoc, in ActOnStartStmtDirective() argument
1927 return ActOnStartDeclDirective(K, StartLoc, Clauses); in ActOnStartStmtDirective()
1938 Diag(StartLoc, diag::err_acc_invalid_in_loop) in ActOnStartStmtDirective()
1947 Diag(StartLoc, diag::err_acc_invalid_in_loop) in ActOnStartStmtDirective()
1955 if (DiagnoseRequiredClauses(K, StartLoc, Clauses)) in ActOnStartStmtDirective()
1957 return diagnoseConstructAppertainment(*this, K, StartLoc, /*IsStmt=*/true); in ActOnStartStmtDirective()
1961 OpenACCDirectiveKind K, SourceLocation StartLoc, SourceLocation DirLoc, in ActOnEndStmtDirective() argument
1973 getASTContext(), K, StartLoc, DirLoc, EndLoc, Clauses, in ActOnEndStmtDirective()
[all …]
H A DSemaExprCXX.cpp1900 static bool CheckDeleteOperator(Sema &S, SourceLocation StartLoc, in CheckDeleteOperator() argument
1907 if (S.RequireCompleteType(StartLoc, SelectedTypeIdentityParameter, in CheckDeleteOperator()
1916 S.Diag(StartLoc, diag::err_deleted_function_use) in CheckDeleteOperator()
1923 S.CheckAllocationAccess(StartLoc, Range, NamingClass, Decl, Diagnose); in CheckDeleteOperator()
2007 Sema::ActOnCXXNew(SourceLocation StartLoc, bool UseGlobal, in ActOnCXXNew() argument
2072 return BuildCXXNew(SourceRange(StartLoc, D.getEndLoc()), UseGlobal, in ActOnCXXNew()
2137 SourceLocation StartLoc = Range.getBegin(); in BuildCXXNew() local
2199 = InitializedEntity::InitializeNew(StartLoc, AllocType); in BuildCXXNew()
2213 return ExprError(Diag(StartLoc, diag::err_auto_new_requires_ctor_arg) in BuildCXXNew()
2235 return ExprError(Diag(StartLoc, diag::err_auto_new_deduction_failure) in BuildCXXNew()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86Operand.h34 SMLoc StartLoc, EndLoc; member
91 : Kind(K), StartLoc(Start), EndLoc(End), OpDecl(nullptr), in X86Operand()
98 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
105 SMRange getLocRange() const { return SMRange(StartLoc, EndLoc); } in getLocRange()
705 CreateReg(MCRegister Reg, SMLoc StartLoc, SMLoc EndLoc,
708 auto Res = std::make_unique<X86Operand>(Register, StartLoc, EndLoc);
718 CreateDXReg(SMLoc StartLoc, SMLoc EndLoc) { in CreateDXReg()
719 return std::make_unique<X86Operand>(DXRegister, StartLoc, EndLoc); in CreateDXReg()
723 CreatePrefix(unsigned Prefixes, SMLoc StartLoc, SMLoc EndLoc) { in CreatePrefix()
724 auto Res = std::make_unique<X86Operand>(Prefix, StartLoc, EndLoc); in CreatePrefix()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp987 std::optional<SourceLocation> StartLoc = std::nullopt, in pushRegion()
992 if (StartLoc && !FalseCount) { in pushRegion()
993 MostRecentLocation = *StartLoc; in pushRegion()
998 assert((!StartLoc || StartLoc->isValid()) && "Start location is not valid"); in pushRegion()
1005 if (StartLoc && StartLoc->isInvalid()) in pushRegion()
1006 StartLoc = std::nullopt; in pushRegion()
1009 RegionStack.emplace_back(Count, FalseCount, BranchParams, StartLoc, EndLoc); in pushRegion()
1015 std::optional<SourceLocation> StartLoc = std::nullopt, in pushRegion()
1018 RegionStack.emplace_back(DecisionParams, StartLoc, EndLoc); in pushRegion()
1042 SourceLocation StartLoc = Region.getBeginLoc(); in popRegions() local
[all …]
H A DCGLoopInfo.h94 const llvm::DebugLoc &StartLoc, const llvm::DebugLoc &EndLoc,
127 llvm::DebugLoc StartLoc; variable
216 void push(llvm::BasicBlock *Header, const llvm::DebugLoc &StartLoc,
223 llvm::ArrayRef<const Attr *> Attrs, const llvm::DebugLoc &StartLoc,
H A DCGLoopInfo.cpp399 if (StartLoc) { in createMetadata()
400 LoopProperties.push_back(StartLoc.getAsMDNode()); in createMetadata()
460 const llvm::DebugLoc &StartLoc, const llvm::DebugLoc &EndLoc, in LoopInfo() argument
462 : Header(Header), Attrs(Attrs), StartLoc(StartLoc), EndLoc(EndLoc), in LoopInfo()
481 Attrs.CodeAlign == 0 && !StartLoc && !EndLoc && !Attrs.MustProgress) in LoopInfo()
578 void LoopInfoStack::push(BasicBlock *Header, const llvm::DebugLoc &StartLoc, in push() argument
581 new LoopInfo(Header, StagedAttrs, StartLoc, EndLoc, in push()
590 const llvm::DebugLoc &StartLoc, in push() argument
813 push(Header, StartLoc, EndLoc); in push()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/AsmParser/
H A DXtensaAsmParser.cpp49 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
78 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc, in tryParseRegister() argument
131 SMLoc StartLoc, EndLoc; member
143 StartLoc = o.StartLoc; in XtensaOperand()
286 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
323 Op->StartLoc = S; in createToken()
332 Op->StartLoc = S; in createReg()
341 Op->StartLoc = S; in createImm()
573 bool XtensaAsmParser::parseRegister(MCRegister &Reg, SMLoc &StartLoc, in parseRegister() argument
576 StartLoc = Tok.getLoc(); in parseRegister()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp75 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
86 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
184 SMLoc StartLoc, EndLoc; member
199 StartLoc = o.StartLoc; in CSKYOperand()
399 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
476 Op->StartLoc = S; in createToken()
485 Op->StartLoc = S; in createReg()
495 Op->StartLoc = S; in createRegSeq()
530 Op->StartLoc = S; in createRegList()
539 Op->StartLoc = S; in createImm()
[all …]

1234