Home
last modified time | relevance | path

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

1234

/openbsd-src/gnu/llvm/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()
489 SourceLocation getBeginLoc() const { return StartLoc; } in getBeginLoc()
497 void setLocStart(SourceLocation Loc) { StartLoc = Loc; } in setLocStart()
623 OMPParallelDirective(SourceLocation StartLoc, SourceLocation EndLoc) in OMPParallelDirective() argument
625 llvm::omp::OMPD_parallel, StartLoc, EndLoc) {} in OMPParallelDirective()
653 Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
699 SourceLocation StartLoc, SourceLocation EndLoc, in OMPLoopBasedDirective() argument
701 : 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 DDecl.h563 SourceLocation StartLoc, SourceLocation IdLoc,
577 SourceLocation StartLoc, SourceLocation IdLoc,
1087 VarDecl(Kind DK, ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
1117 SourceLocation StartLoc, SourceLocation IdLoc,
1730 ParmVarDecl(Kind DK, ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in ParmVarDecl() argument
1733 : VarDecl(DK, C, DC, StartLoc, IdLoc, Id, T, TInfo, S) { in ParmVarDecl()
1743 SourceLocation StartLoc,
2060 FunctionDecl(Kind DK, ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
2095 Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
2102 return FunctionDecl::Create(C, DC, StartLoc, NameInfo, T, TInfo, SC,
[all …]
H A DDeclCXX.h497 SourceLocation StartLoc, SourceLocation IdLoc,
558 SourceLocation StartLoc, SourceLocation IdLoc,
1901 CXXDeductionGuideDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in CXXDeductionGuideDecl() argument
1906 : FunctionDecl(CXXDeductionGuide, C, DC, StartLoc, NameInfo, T, TInfo, in CXXDeductionGuideDecl()
1923 Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
1974 RequiresExprBodyDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc) in RequiresExprBodyDecl() argument
1975 : Decl(RequiresExprBody, DC, StartLoc), DeclContext(RequiresExprBody) {} in RequiresExprBodyDecl()
1982 SourceLocation StartLoc);
2000 SourceLocation StartLoc, const DeclarationNameInfo &NameInfo,
2005 : FunctionDecl(DK, C, RD, StartLoc, NameInfo, T, TInfo, SC, UsesFPIntrin, in FunctionDecl() argument
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp92 SMLoc StartLoc, EndLoc; member in __anon21cc4c950111::SystemZOperand
157 : Kind(kind), StartLoc(startLoc), EndLoc(endLoc) {} in SystemZOperand()
160 static std::unique_ptr<SystemZOperand> createInvalid(SMLoc StartLoc, in createInvalid() argument
162 return std::make_unique<SystemZOperand>(KindInvalid, StartLoc, EndLoc); in createInvalid()
173 createReg(RegisterKind Kind, unsigned Num, SMLoc StartLoc, SMLoc EndLoc) { in createReg() argument
174 auto Op = std::make_unique<SystemZOperand>(KindReg, StartLoc, EndLoc); in createReg()
181 createImm(const MCExpr *Expr, SMLoc StartLoc, SMLoc EndLoc) { in createImm() argument
182 auto Op = std::make_unique<SystemZOperand>(KindImm, StartLoc, EndLoc); in createImm()
190 unsigned LengthReg, SMLoc StartLoc, SMLoc EndLoc) { in createMem() argument
191 auto Op = std::make_unique<SystemZOperand>(KindMem, StartLoc, EndLoc); in createMem()
[all …]
/openbsd-src/gnu/llvm/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.cpp342 SourceLocation StartLoc, in Create() argument
347 new (Mem) OMPOrderedClause(Num, NumLoops, StartLoc, LParenLoc, EndLoc); in Create()
392 SourceLocation StartLoc, in Create() argument
394 return new (C) OMPUpdateClause(StartLoc, EndLoc, /*IsExtended=*/false); in Create()
398 OMPUpdateClause::Create(const ASTContext &C, SourceLocation StartLoc, in Create() argument
405 new (Mem) OMPUpdateClause(StartLoc, EndLoc, /*IsExtended=*/true); in Create()
431 OMPPrivateClause::Create(const ASTContext &C, SourceLocation StartLoc, in Create() argument
437 new (Mem) OMPPrivateClause(StartLoc, LParenLoc, EndLoc, VL.size()); in Create()
462 OMPFirstprivateClause::Create(const ASTContext &C, SourceLocation StartLoc, in Create() argument
468 new (Mem) OMPFirstprivateClause(StartLoc, LParenLoc, EndLoc, VL.size()); in Create()
[all …]
H A DDeclTemplate.cpp720 DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, unsigned D, in NonTypeTemplateParmDecl() argument
723 : DeclaratorDecl(NonTypeTemplateParm, DC, IdLoc, Id, T, TInfo, StartLoc), in NonTypeTemplateParmDecl()
738 SourceLocation StartLoc, SourceLocation IdLoc, in Create() argument
748 NonTypeTemplateParmDecl(DC, StartLoc, IdLoc, D, P, Id, T, ParameterPack, in Create()
753 const ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in Create() argument
762 NonTypeTemplateParmDecl(DC, StartLoc, IdLoc, D, P, Id, T, TInfo, in Create()
912 DeclContext *DC, SourceLocation StartLoc, in ClassTemplateSpecializationDecl() argument
917 : CXXRecordDecl(DK, TK, Context, DC, StartLoc, IdLoc, in ClassTemplateSpecializationDecl()
933 SourceLocation StartLoc, in Create() argument
940 Context, ClassTemplateSpecialization, TK, DC, StartLoc, IdLoc, in Create()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp48 bool parseRegister(MCRegister &RegNo, SMLoc &StartLoc,
50 OperandMatchResultTy tryParseRegister(MCRegister &RegNo, SMLoc &StartLoc,
293 bool MSP430AsmParser::parseRegister(MCRegister &RegNo, SMLoc &StartLoc, in parseRegister() argument
295 switch (tryParseRegister(RegNo, StartLoc, EndLoc)) { in parseRegister()
297 return Error(StartLoc, "invalid register name"); in parseRegister()
308 SMLoc &StartLoc, in tryParseRegister() argument
320 StartLoc = T.getLoc(); in tryParseRegister()
460 SMLoc StartLoc, EndLoc; in ParseOperand() local
461 if (!parseRegister(RegNo, StartLoc, EndLoc)) { in ParseOperand()
462 Operands.push_back(MSP430Operand::CreateReg(RegNo, StartLoc, EndLoc)); in ParseOperand()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp200 auto StartLoc = Decl->getLocation(); in VisitNamedDecl() local
201 auto EndLoc = StartLoc; in VisitNamedDecl()
202 if (IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitNamedDecl()
203 RenameInfo Info = {StartLoc, in VisitNamedDecl()
217 auto StartLoc = Expr->getMemberLoc(); in VisitMemberExpr() local
220 RenameInfos.push_back({StartLoc, EndLoc, in VisitMemberExpr()
234 auto StartLoc = D.getFieldLoc(); in VisitDesignatedInitExpr() local
236 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.cpp86 SourceLocation StartLoc = CurrDecl->getBeginLoc(); in getNamedDeclAt() local
88 if (StartLoc.isValid() && EndLoc.isValid() && in getNamedDeclAt()
89 SM.isBeforeInTranslationUnit(StartLoc, Point) != in getNamedDeclAt()
/openbsd-src/gnu/llvm/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp42 bool parseRegister(MCRegister &RegNo, SMLoc &StartLoc,
44 OperandMatchResultTy tryParseRegister(MCRegister &RegNo, SMLoc &StartLoc,
99 SMLoc StartLoc, EndLoc; member
111 StartLoc = o.StartLoc; in BPFOperand()
146 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
203 Op->StartLoc = S; in createToken()
212 Op->StartLoc = S; in createReg()
221 Op->StartLoc = S; in createImm()
327 bool BPFAsmParser::parseRegister(MCRegister &RegNo, SMLoc &StartLoc, in parseRegister() argument
329 if (tryParseRegister(RegNo, StartLoc, EndLoc) != MatchOperand_Success) in parseRegister()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Parse/
H A DParseInit.cpp243 SourceLocation StartLoc = T.getOpenLocation(); in ParseInitializerWithPotentialDesignator() local
256 CheckArrayDesignatorSyntax(*this, StartLoc, Desig); in ParseInitializerWithPotentialDesignator()
258 StartLoc, ConsumeToken(), nullptr, nullptr); in ParseInitializerWithPotentialDesignator()
272 CheckArrayDesignatorSyntax(*this, StartLoc, Desig); in ParseInitializerWithPotentialDesignator()
273 return ParseAssignmentExprWithObjCMessageExprStart(StartLoc, in ParseInitializerWithPotentialDesignator()
295 CheckArrayDesignatorSyntax(*this, StartLoc, Desig); in ParseInitializerWithPotentialDesignator()
297 StartLoc, ConsumeToken(), nullptr, nullptr); in ParseInitializerWithPotentialDesignator()
300 CheckArrayDesignatorSyntax(*this, StartLoc, Desig); in ParseInitializerWithPotentialDesignator()
322 return ParseAssignmentExprWithObjCMessageExprStart(StartLoc, in ParseInitializerWithPotentialDesignator()
358 StartLoc, SourceLocation(), nullptr, Idx.get()); in ParseInitializerWithPotentialDesignator()
[all …]
H A DParseDeclCXX.cpp1054 SourceLocation StartLoc = Tok.getLocation(); in ParseDecltypeSpecifier() local
1078 return T.getOpenLocation() == Tok.getLocation() ? StartLoc in ParseDecltypeSpecifier()
1147 if (Result.get() ? DS.SetTypeSpecType(DeclSpec::TST_decltype, StartLoc, in ParseDecltypeSpecifier()
1149 : DS.SetTypeSpecType(DeclSpec::TST_decltype_auto, StartLoc, in ParseDecltypeSpecifier()
1151 Diag(StartLoc, DiagID) << PrevSpec; in ParseDecltypeSpecifier()
1158 SourceLocation StartLoc, in AnnotateExistingDecltypeSpecifier() argument
1179 Tok.setLocation(StartLoc); in AnnotateExistingDecltypeSpecifier()
1200 SourceLocation StartLoc = ConsumeToken(); in MaybeParseTypeTransformTypeSpecifier() local
1219 if (DS.SetTypeSpecType(TypeTransformTST, StartLoc, PrevSpec, DiagID, in MaybeParseTypeTransformTypeSpecifier()
1222 Diag(StartLoc, DiagID) << PrevSpec; in MaybeParseTypeTransformTypeSpecifier()
[all …]
H A DParser.cpp182 SourceLocation StartLoc = Tok.getLocation(); in ConsumeExtraSemi() local
196 Diag(StartLoc, diag::warn_cxx98_compat_top_level_semi) in ConsumeExtraSemi()
197 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
199 Diag(StartLoc, diag::ext_extra_semi_cxx11) in ConsumeExtraSemi()
200 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
205 Diag(StartLoc, diag::ext_extra_semi) in ConsumeExtraSemi()
208 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
211 Diag(StartLoc, diag::warn_extra_semi_after_mem_fn_def) in ConsumeExtraSemi()
212 << FixItHint::CreateRemoval(SourceRange(StartLoc, EndLoc)); in ConsumeExtraSemi()
886 SourceLocation StartLoc = Tok.getLocation(); in ParseExternalDeclaration() local
[all …]
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaOpenMP.cpp4967 SourceLocation StartLoc) { in checkCancelRegion() argument
4976 SemaRef.Diag(StartLoc, diag::err_omp_wrong_cancel_region) in checkCancelRegion()
4986 SourceLocation StartLoc) { in checkNestingOfRegions() argument
5005 SemaRef.Diag(StartLoc, diag::err_omp_prohibited_region_order) in checkNestingOfRegions()
5026 SemaRef.Diag(StartLoc, (CurrentRegion != OMPD_simd) in checkNestingOfRegions()
5035 SemaRef.Diag(StartLoc, diag::err_omp_prohibited_region_atomic); in checkNestingOfRegions()
5045 SemaRef.Diag(StartLoc, diag::err_omp_orphaned_section_directive) in checkNestingOfRegions()
5120 SemaRef.Diag(StartLoc, in checkNestingOfRegions()
5252 SemaRef.Diag(StartLoc, diag::err_omp_orphaned_device_directive) in checkNestingOfRegions()
5255 SemaRef.Diag(StartLoc, diag::err_omp_prohibited_region) in checkNestingOfRegions()
[all …]
/openbsd-src/gnu/llvm/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()
642 CreateReg(unsigned RegNo, SMLoc StartLoc, SMLoc EndLoc,
645 auto Res = std::make_unique<X86Operand>(Register, StartLoc, EndLoc);
655 CreateDXReg(SMLoc StartLoc, SMLoc EndLoc) { in CreateDXReg()
656 return std::make_unique<X86Operand>(DXRegister, StartLoc, EndLoc); in CreateDXReg()
660 CreatePrefix(unsigned Prefixes, SMLoc StartLoc, SMLoc EndLoc) { in CreatePrefix()
661 auto Res = std::make_unique<X86Operand>(Prefix, StartLoc, EndLoc); in CreatePrefix()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Xtensa/AsmParser/
H A DXtensaAsmParser.cpp41 SMLoc &StartLoc, SMLoc &EndLoc) override;
63 OperandMatchResultTy tryParseRegister(MCRegister &RegNo, SMLoc &StartLoc, in tryParseRegister() argument
109 SMLoc StartLoc, EndLoc; member
121 StartLoc = o.StartLoc; in XtensaOperand()
246 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
283 Op->StartLoc = S; in createToken()
292 Op->StartLoc = S; in createReg()
301 Op->StartLoc = S; in createImm()
461 bool XtensaAsmParser::parseRegister(MCRegister &RegNo, SMLoc &StartLoc, in parseRegister() argument
464 StartLoc = Tok.getLoc(); in parseRegister()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DSema.h2971 ParmVarDecl *CheckParameter(DeclContext *DC, SourceLocation StartLoc,
3169 DeclGroupPtrTy ActOnModuleDecl(SourceLocation StartLoc,
3194 DeclResult ActOnModuleImport(SourceLocation StartLoc,
3198 DeclResult ActOnModuleImport(SourceLocation StartLoc,
5055 SourceLocation StartLoc,
5224 SourceLocation StartLoc,
5250 SourceLocation StartLoc,
6719 ExprResult ActOnCXXNew(SourceLocation StartLoc, bool UseGlobal,
6758 bool FindAllocationFunctions(SourceLocation StartLoc, SourceRange Range,
6770 bool FindDeallocationFunction(SourceLocation StartLoc, CXXRecordDecl *RD,
[all …]
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp589 std::optional<SourceLocation> StartLoc = std::nullopt, in pushRegion()
593 if (StartLoc && !FalseCount) { in pushRegion()
594 MostRecentLocation = *StartLoc; in pushRegion()
597 RegionStack.emplace_back(Count, FalseCount, StartLoc, EndLoc); in pushRegion()
620 SourceLocation StartLoc = Region.getBeginLoc(); in popRegions() local
625 size_t StartDepth = locationDepth(StartLoc); in popRegions()
627 while (!SM.isWrittenInSameFile(StartLoc, EndLoc)) { in popRegions()
657 SourceLocation NestedLoc = getEndOfFileOrMacro(StartLoc); in popRegions()
658 assert(SM.isWrittenInSameFile(StartLoc, NestedLoc)); in popRegions()
660 if (!isBranch && !isRegionAlreadyAdded(StartLoc, NestedLoc)) in popRegions()
[all …]
H A DCGLoopInfo.h91 const llvm::DebugLoc &StartLoc, const llvm::DebugLoc &EndLoc,
120 llvm::DebugLoc StartLoc; variable
206 void push(llvm::BasicBlock *Header, const llvm::DebugLoc &StartLoc,
213 llvm::ArrayRef<const Attr *> Attrs, const llvm::DebugLoc &StartLoc,
H A DCGLoopInfo.cpp423 if (StartLoc) { in createMetadata()
424 LoopProperties.push_back(StartLoc.getAsMDNode()); in createMetadata()
476 const llvm::DebugLoc &StartLoc, const llvm::DebugLoc &EndLoc, in LoopInfo() argument
478 : Header(Header), Attrs(Attrs), StartLoc(StartLoc), EndLoc(EndLoc), in LoopInfo()
496 Attrs.DistributeEnable == LoopAttributes::Unspecified && !StartLoc && in LoopInfo()
587 void LoopInfoStack::push(BasicBlock *Header, const llvm::DebugLoc &StartLoc, in push() argument
590 new LoopInfo(Header, StagedAttrs, StartLoc, EndLoc, in push()
599 const llvm::DebugLoc &StartLoc, in push() argument
802 push(Header, StartLoc, EndLoc); in push()
/openbsd-src/gnu/llvm/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp73 bool parseRegister(MCRegister &RegNo, SMLoc &StartLoc,
85 OperandMatchResultTy tryParseRegister(MCRegister &RegNo, SMLoc &StartLoc,
183 SMLoc StartLoc, EndLoc; member
198 StartLoc = o.StartLoc; in CSKYOperand()
398 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
475 Op->StartLoc = S; in createToken()
484 Op->StartLoc = S; in createReg()
494 Op->StartLoc = S; in createRegSeq()
529 Op->StartLoc = S; in createRegList()
538 Op->StartLoc = S; in createImm()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Lex/
H A DTokenLexer.cpp751 SourceLocation StartLoc = LHSTok.getLocation(); in pasteTokens() local
901 if (StartLoc.isFileID()) in pasteTokens()
902 StartLoc = getExpansionLocForMacroDefLoc(StartLoc); in pasteTokens()
906 while (SM.getFileID(StartLoc) != MacroFID) in pasteTokens()
907 StartLoc = SM.getImmediateExpansionRange(StartLoc).getBegin(); in pasteTokens()
911 LHSTok.setLocation(SM.createExpansionLoc(LHSTok.getLocation(), StartLoc, EndLoc, in pasteTokens()
/openbsd-src/gnu/llvm/llvm/lib/Target/Lanai/AsmParser/
H A DLanaiAsmParser.cpp70 bool parseRegister(MCRegister &RegNum, SMLoc &StartLoc,
72 OperandMatchResultTy tryParseRegister(MCRegister &RegNo, SMLoc &StartLoc,
117 SMLoc StartLoc, EndLoc; member
153 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
591 Op->StartLoc = Start; in CreateToken()
600 Op->StartLoc = Start; in createReg()
609 Op->StartLoc = Start; in createImm()
721 bool LanaiAsmParser::parseRegister(MCRegister &RegNum, SMLoc &StartLoc, in parseRegister() argument
724 StartLoc = Tok.getLoc(); in parseRegister()
733 SMLoc &StartLoc, in tryParseRegister() argument
[all …]

1234