| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaStmtAsm.cpp | 74 S.Diag(LVal->getBeginLoc(), diag::err_invalid_asm_cast_lvalue) in emitAndFixInvalidAsmCastLValue() 77 S.Diag(LVal->getBeginLoc(), diag::warn_invalid_asm_cast_lvalue) in emitAndFixInvalidAsmCastLValue() 141 S.Diag(E->getBeginLoc(), diag::err_asm_naked_this_ref); in CheckNakedParmReference() 147 S.Diag(DRE->getBeginLoc(), diag::err_asm_naked_parm_ref); in CheckNakedParmReference() 182 S.Diag(E->getBeginLoc(), diag::err_asm_non_addr_value_in_memory_constraint) in checkExprMemoryConstraintCompat() 237 return Clobbers[i]->getBeginLoc(); in getClobberConflictLocation() 274 targetDiag(Literal->getBeginLoc(), in ActOnGCCAsmStmt() 304 Diag(OutputExpr->getBeginLoc(), diag::err_asm_invalid_type) in ActOnGCCAsmStmt() 331 if (RequireCompleteType(OutputExpr->getBeginLoc(), Exprs[i]->getType(), in ActOnGCCAsmStmt() 336 return StmtError(Diag(OutputExpr->getBeginLoc(), in ActOnGCCAsmStmt() [all …]
|
| H A D | UsedDeclVisitor.h | 48 asImpl().visitUsedDecl(Node->getBeginLoc(), Node->getCapturedDecl()); in VisitCapturedStmt() 54 E->getBeginLoc(), in VisitCXXBindTemporaryExpr() 61 asImpl().visitUsedDecl(E->getBeginLoc(), E->getOperatorNew()); in VisitCXXNewExpr() 63 asImpl().visitUsedDecl(E->getBeginLoc(), E->getOperatorDelete()); in VisitCXXNewExpr() 69 asImpl().visitUsedDecl(E->getBeginLoc(), E->getOperatorDelete()); in VisitCXXDeleteExpr() 76 asImpl().visitUsedDecl(E->getBeginLoc(), S.LookupDestructor(Record)); in VisitCXXDeleteExpr() 84 asImpl().visitUsedDecl(E->getBeginLoc(), E->getConstructor()); in VisitCXXConstructExpr()
|
| H A D | AnalysisBasedWarnings.cpp | 122 if (!S.getSourceManager().isInMainFile(AC.getDecl()->getBeginLoc())) in CheckUnreachable() 278 S.Diag(Body->getBeginLoc(), diag::warn_infinite_recursive_function); in checkRecursiveFunction() 677 SourceLocation LBrace = Body->getBeginLoc(), RBrace = Body->getEndLoc(); in CheckFallThroughForBody() 797 CharSourceRange::getCharRange(If->getBeginLoc(), Then->getBeginLoc())); in CreateIfFixit() 807 If->getBeginLoc(), Else->getBeginLoc())); in CreateIfFixit() 821 S.Diag(Use.getUser()->getBeginLoc(), diag::warn_uninit_var) in DiagUninitUse() 833 S.Diag(Use.getUser()->getBeginLoc(), diag::note_uninit_var_use) in DiagUninitUse() 905 SourceRange(BO->getBeginLoc(), BO->getOperatorLoc())); in DiagUninitUse() 967 S.Diag(User->getBeginLoc(), diag::note_uninit_var_use) in DiagUninitUse() 977 S.Diag(Use.getUser()->getBeginLoc(), diag::warn_maybe_uninit_var) in DiagUninitUse() [all …]
|
| H A D | SemaStmtAttr.cpp | 32 << A << St->getBeginLoc(); in handleFallThroughAttr() 90 S.Diag(St->getBeginLoc(), diag::err_pragma_loop_precedes_nonloop) << Pragma; in handleLoopHintAttr() 140 if (ValueExpr && S.CheckLoopHintExpr(ValueExpr, St->getBeginLoc())) in handleLoopHintAttr() 150 if (S.CheckLoopHintExpr(ValueExpr, St->getBeginLoc())) in handleLoopHintAttr() 210 S.Diag(St->getBeginLoc(), diag::warn_attribute_ignored_no_calls_in_stmt) in handleNoMergeAttr() 222 S.Diag(St->getBeginLoc(), diag::warn_function_attribute_ignored_in_stmt) in handleNoInlineAttr() 229 S.Diag(St->getBeginLoc(), diag::warn_attribute_ignored_no_calls_in_stmt) in handleNoInlineAttr() 237 S.Diag(St->getBeginLoc(), diag::warn_function_stmt_attribute_precedence) in handleNoInlineAttr() 248 S.Diag(St->getBeginLoc(), diag::warn_function_attribute_ignored_in_stmt) in handleAlwaysInlineAttr() 255 S.Diag(St->getBeginLoc(), diag::warn_attribute_ignored_no_calls_in_stmt) in handleAlwaysInlineAttr() [all …]
|
| H A D | SemaChecking.cpp | 164 SourceRange Range(Call->getArg(DesiredArgCount)->getBeginLoc(), in checkArgCount() 196 S.Diag(ValArg->getBeginLoc(), diag::err_builtin_annotation_first_arg) in SemaBuiltinAnnotation() 205 S.Diag(StrArg->getBeginLoc(), diag::err_builtin_annotation_second_arg) in SemaBuiltinAnnotation() 227 S.Diag(Arg->getBeginLoc(), diag::err_msvc_annotation_wide_str) in SemaBuiltinMSVCAnnotation() 243 QualType ResultType = S.CheckAddressOfOperand(Arg, TheCall->getBeginLoc()); in SemaBuiltinAddressof() 266 S.Diag(TheCall->getBeginLoc(), diag::err_function_start_invalid_type) in SemaBuiltinFunctionStart() 272 TheCall->getBeginLoc()); in SemaBuiltinFunctionStart() 379 S.Diag(Arg.get()->getBeginLoc(), diag::err_overflow_builtin_must_be_int) in SemaBuiltinOverflow() 398 S.Diag(Arg.get()->getBeginLoc(), in SemaBuiltinOverflow() 414 return S.Diag(Arg->getBeginLoc(), in SemaBuiltinOverflow() [all …]
|
| H A D | JumpDiagnostics.cpp | 325 Scopes.push_back(GotoScope(ParentScope, Diag, 0, S->getBeginLoc())); in BuildScopeInformation() 395 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation() 402 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation() 406 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation() 613 ED->getStructuredBlock()->getBeginLoc()); in BuildScopeInformation() 686 Loc = CS->getBeginLoc(); in VerifyJumps() 688 Loc = DS->getBeginLoc(); in VerifyJumps() 690 Loc = SC->getBeginLoc(); in VerifyJumps() 725 S.Diag(GotoJumps[0]->getBeginLoc(), in VerifyIndirectOrAsmJumps() 861 S.Diag(Jump->getBeginLoc(), diag::err_indirect_goto_in_protected_scope) in DiagnoseIndirectOrAsmJumpStmt() [all …]
|
| H A D | TreeTransform.h | 2509 return SemaRef.Diag(Init->getBeginLoc(), in RebuildCXXForRangeStmt() 4058 return getDerived().RebuildInitList(Construct->getBeginLoc(), NewArgs, in TransformInitializer() 4262 SS.MakeGlobal(SemaRef.Context, Q.getBeginLoc()); in TransformNestedNameSpecifierLoc() 4269 SS.MakeSuper(SemaRef.Context, RD, Q.getBeginLoc(), Q.getEndLoc()); in TransformNestedNameSpecifierLoc() 4285 SemaRef.Diag(TL.getBeginLoc(), in TransformNestedNameSpecifierLoc() 4300 SemaRef.Diag(TL.getBeginLoc(), diag::err_nested_name_spec_non_tag) in TransformNestedNameSpecifierLoc() 4793 TemporaryBase Rebase(*this, DI->getTypeLoc().getBeginLoc(), in TransformType() 4845 TemporaryBase Rebase(*this, DI->getTypeLoc().getBeginLoc(), in TransformTypeWithDeducedTST() 4914 SourceLocation Loc = TL.getBeginLoc(); in RebuildQualifiedType() 5999 TL.getBeginLoc(), ESI, ExceptionStorage, Changed); in TransformFunctionProtoType() [all …]
|
| H A D | SemaStmt.cpp | 651 Diag(St->getBeginLoc(), diag::err_musttail_needs_call) << &MTA; in checkMustTailAttr() 657 Diag(St->getBeginLoc(), diag::err_musttail_needs_trivial_args) << &MTA; in checkMustTailAttr() 680 Diag(St->getBeginLoc(), diag::err_musttail_structors_forbidden) in checkMustTailAttr() 683 Diag(CMD->getBeginLoc(), diag::note_musttail_structors_forbidden) in checkMustTailAttr() 709 Diag(St->getBeginLoc(), diag::err_musttail_forbidden_from_this_context) in checkMustTailAttr() 724 ? CE->getCalleeDecl()->getBeginLoc() in checkMustTailAttr() 725 : St->getBeginLoc(); in checkMustTailAttr() 741 Diag(St->getBeginLoc(), diag::err_musttail_structors_forbidden) in checkMustTailAttr() 753 Diag(St->getBeginLoc(), diag::err_musttail_needs_prototype) << &MTA; in checkMustTailAttr() 755 Diag(CE->getDirectCallee()->getBeginLoc(), in checkMustTailAttr() [all …]
|
| H A D | SemaInit.cpp | 240 S.Diag(Str->getBeginLoc(), in CheckStringInit() 247 S.Diag(Str->getBeginLoc(), in CheckStringInit() 445 SemaRef.Diag(OldInit->getBeginLoc(), diag::note_previous_initializer) in diagnoseInitOverride() 1076 SemaRef.Diag(ParentIList->getInit(Index)->getBeginLoc(), in CheckImplicitInitList() 1086 SourceRange(ParentIList->getInit(Index)->getBeginLoc(), in CheckImplicitInitList() 1114 SemaRef.Diag(StructuredSubobjectInitList->getBeginLoc(), in CheckImplicitInitList() 1118 StructuredSubobjectInitList->getBeginLoc(), "{") in CheckImplicitInitList() 1128 SemaRef.Diag(StructuredSubobjectInitList->getBeginLoc(), in CheckImplicitInitList() 1239 SemaRef.Diag(IList->getInit(Index)->getBeginLoc(), DK) in CheckExplicitInitList() 1245 SemaRef.Diag(IList->getInit(Index)->getBeginLoc(), DK) in CheckExplicitInitList() [all …]
|
| H A D | SemaExprObjC.cpp | 55 Diag(S->getBeginLoc(), diag::err_cfstring_literal_not_string_constant) in ParseObjCStringLiteral() 112 Diag(S->getBeginLoc(), diag::err_no_nsconstant_string_class) in BuildObjCStringLiteral() 406 Element->getBeginLoc(), SourceLocation()); in CheckObjCCollectionLiteralElement() 437 S.Diag(OrigElement->getBeginLoc(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement() 439 << FixItHint::CreateInsertion(OrigElement->getBeginLoc(), "@"); in CheckObjCCollectionLiteralElement() 442 S.BuildObjCNumericLiteral(OrigElement->getBeginLoc(), OrigElement); in CheckObjCCollectionLiteralElement() 453 S.Diag(OrigElement->getBeginLoc(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement() 455 << FixItHint::CreateInsertion(OrigElement->getBeginLoc(), "@"); in CheckObjCCollectionLiteralElement() 457 Result = S.BuildObjCStringLiteral(OrigElement->getBeginLoc(), String); in CheckObjCCollectionLiteralElement() 467 S.Diag(Element->getBeginLoc(), diag::err_invalid_collection_element) in CheckObjCCollectionLiteralElement() [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | ExprCXX.h | 155 ? getBeginLoc() in getExprLoc() 159 SourceLocation getBeginLoc() const { return Range.getBegin(); } in getBeginLoc() function 222 return getBeginLoc(); in getExprLoc() 344 SourceLocation getBeginLoc() const LLVM_READONLY { in getBeginLoc() function 345 return getDecomposedForm().LHS->getBeginLoc(); in getBeginLoc() 352 return SourceRange(DF.LHS->getBeginLoc(), DF.RHS->getEndLoc()); in getSourceRange() 408 SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } in getBeginLoc() function 697 SourceLocation getBeginLoc() const { in getBeginLoc() function 700 return getArg(0)->getBeginLoc(); in getBeginLoc() 740 SourceLocation getBeginLoc() const { return getLocation(); } in getBeginLoc() function [all …]
|
| H A D | ExprObjC.h | 71 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc() function 103 SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } in getBeginLoc() function 158 SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } in getBeginLoc() function 215 SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } in getBeginLoc() function 380 SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } in getBeginLoc() function 436 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc() function 476 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc() function 530 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc() function 592 SourceLocation getBeginLoc() const LLVM_READONLY { in getBeginLoc() function 593 return isFreeIvar() ? Loc : getBase()->getBeginLoc(); in getBeginLoc() [all …]
|
| H A D | StmtCXX.h | 43 SourceLocation getBeginLoc() const LLVM_READONLY { return CatchLoc; } in getBeginLoc() function 92 SourceLocation getBeginLoc() const LLVM_READONLY { return getTryLoc(); } in getBeginLoc() function 206 SourceLocation getBeginLoc() const LLVM_READONLY { return ForLoc; } in getBeginLoc() function 296 SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; } in getBeginLoc() function 423 SourceLocation getBeginLoc() const LLVM_READONLY { in getBeginLoc() function 424 return getBody() ? getBody()->getBeginLoc() in getBeginLoc() 425 : getPromiseDecl()->getBeginLoc(); in getBeginLoc() 494 SourceLocation getBeginLoc() const LLVM_READONLY { return CoreturnLoc; } in getBeginLoc() function 496 return getOperand() ? getOperand()->getEndLoc() : getBeginLoc(); in getEndLoc()
|
| H A D | StmtObjC.h | 57 SourceLocation getBeginLoc() const LLVM_READONLY { return ForLoc; } in getBeginLoc() function 110 SourceLocation getBeginLoc() const LLVM_READONLY { return AtCatchLoc; } in getBeginLoc() function 143 SourceLocation getBeginLoc() const LLVM_READONLY { return AtFinallyLoc; } in getBeginLoc() function 256 SourceLocation getBeginLoc() const LLVM_READONLY { return AtTryLoc; } in getBeginLoc() function 338 SourceLocation getBeginLoc() const LLVM_READONLY { return AtSynchronizedLoc; } in getBeginLoc() function 376 SourceLocation getBeginLoc() const LLVM_READONLY { return AtThrowLoc; } in getBeginLoc() function 408 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc() function
|
| H A D | Expr.h | 1099 SourceLocation getBeginLoc() const LLVM_READONLY { in getBeginLoc() function 1100 return SubExpr->getBeginLoc(); in getBeginLoc() 1170 SourceLocation getBeginLoc() const LLVM_READONLY { in getBeginLoc() function 1171 return SourceExpr ? SourceExpr->getBeginLoc() : getLocation(); in getBeginLoc() 1316 SourceLocation getBeginLoc() const LLVM_READONLY; 1527 SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } in getBeginLoc() function 1569 SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } in getBeginLoc() function 1626 SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } in getBeginLoc() function 1708 SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } in getBeginLoc() function 1745 SourceLocation getBeginLoc() const LLVM_READONLY { in getBeginLoc() function [all …]
|
| H A D | Comment.h | 221 SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } in getBeginLoc() function 347 return SourceRange(getBeginLoc().getLocWithOffset(-1), getEndLoc()); in getCommandNameRange() 555 setSourceRange(SourceRange(Content.front()->getBeginLoc(), in ParagraphComment() 557 setLocation(Content.front()->getBeginLoc()); in ParagraphComment() 642 return getBeginLoc().getLocWithOffset(1); in getCommandNameBeginLoc() 648 getBeginLoc().getLocWithOffset(1 + Name.size())); in getCommandNameRange() 668 setSourceRange(SourceRange(getBeginLoc(), NewLocEnd)); in setArgs() 684 setSourceRange(SourceRange(getBeginLoc(), NewLocEnd)); in setParagraph() 1089 SourceRange(Blocks.front()->getBeginLoc(), Blocks.back()->getEndLoc())); in FullComment() 1090 setLocation(Blocks.front()->getBeginLoc()); in FullComment()
|
| /openbsd-src/gnu/llvm/clang/lib/ARCMigrate/ |
| H A D | TransAutoreleasePool.cpp | 139 scope.CompoundParent->getBeginLoc()); in ~AutoreleasePoolRewriter() 144 scope.CompoundParent->getBeginLoc()); in ~AutoreleasePoolRewriter() 244 return SourceRange((*rangeS)->getBeginLoc(), (*rangeE)->getEndLoc()); in getIndentedRange() 259 ScopeRange = SourceRange((*scope.Begin)->getBeginLoc(), in NameReferenceChecker() 260 (*scope.End)->getBeginLoc()); in NameReferenceChecker() 268 return checkRef(TL.getBeginLoc(), TL.getTypedefNameDecl()->getLocation()); in VisitTypedefTypeLoc() 272 return checkRef(TL.getBeginLoc(), TL.getDecl()->getLocation()); in VisitTagTypeLoc() 331 (*scope.Begin)->getBeginLoc()); in handlePoolScope() 333 (*scope.End)->getBeginLoc()); in handlePoolScope()
|
| H A D | TransUnbridgedCasts.cpp | 210 E->getBeginLoc())) { in rewriteToBridgedCast() 226 diag::err_arc_cast_requires_bridge, E->getBeginLoc()); in rewriteToBridgedCast() 231 SourceLocation insertLoc = E->getSubExpr()->getBeginLoc(); in rewriteToBridgedCast() 251 SourceLocation InsertLoc = WrapE->getBeginLoc(); in rewriteToBridgedCast() 369 Pass.TA.reportError(err, E->getBeginLoc(), in transformObjCToNonObjCCast() 381 Pass.TA.reportNote(note, retS->getBeginLoc()); in transformObjCToNonObjCCast()
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/ |
| H A D | ReachableCode.cpp | 155 SourceLocation L = S->getBeginLoc(); in isExpandedFromConfigurationMacro() 203 if (!PE->getBeginLoc().isMacroID()) in isConfigurationValue() 456 if (S->getBeginLoc().isInvalid()) in isValidDeadStmt() 483 if (p1->second->getBeginLoc() < p2->second->getBeginLoc()) in SrcCmp() 485 if (p2->second->getBeginLoc() < p1->second->getBeginLoc()) in SrcCmp() 518 if (S->getBeginLoc().isMacroID()) { in scanBackwards() 600 return CE->getBeginLoc(); in GetUnreachableLoc() 613 return S->getBeginLoc(); in GetUnreachableLoc() 639 SourceLocation Loc = LoopTarget->getBeginLoc(); in reportDeadCode() 644 Loc = Inc->getBeginLoc(); in reportDeadCode()
|
| H A D | CloneDetection.cpp | 48 SM.isBeforeInTranslationUnit(getBeginLoc(), Other.getBeginLoc()) || in contains() 49 getBeginLoc() == Other.getBeginLoc(); in contains() 80 SourceLocation StmtSequence::getBeginLoc() const { in getBeginLoc() function in StmtSequence 81 return front()->getBeginLoc(); in getBeginLoc() 87 return SourceRange(getBeginLoc(), getEndLoc()); in getSourceRange() 430 data_collection::getMacroStack(Seq.getBeginLoc(), Context); in calculateStmtComplexity()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/Interp/ |
| H A D | Source.cpp | 19 return S->getBeginLoc(); in getLoc() 21 return D->getBeginLoc(); in getLoc()
|
| /openbsd-src/gnu/llvm/lldb/tools/lldb-instr/ |
| H A D | Instrument.cpp | 58 if (C->getBeginLoc().isMacroID()) { in VisitCXXMethodDecl() 65 Body->getBeginLoc(), 0, MyRewriter.getSourceMgr(), in VisitCXXMethodDecl() 87 if (!MyRewriter.getSourceMgr().isInMainFile(Decl->getBeginLoc())) in ShouldSkip()
|
| /openbsd-src/gnu/llvm/clang/lib/Tooling/Transformer/ |
| H A D | SourceCode.cpp | 372 if (SM.isBeforeInTranslationUnit(T->getBeginLoc(), Range.getBegin())) in getAssociatedRange() 373 Range.setBegin(T->getBeginLoc()); in getAssociatedRange() 376 if (SM.isBeforeInTranslationUnit(T->getBeginLoc(), Range.getBegin())) in getAssociatedRange() 377 Range.setBegin(T->getBeginLoc()); in getAssociatedRange() 397 if (SM.isBeforeInTranslationUnit(Comment->getBeginLoc(), in getAssociatedRange() 406 Range.setBegin(Comment->getBeginLoc()); in getAssociatedRange()
|
| /openbsd-src/gnu/llvm/clang/include/clang/Tooling/Refactoring/ |
| H A D | RecursiveSymbolVisitor.h | 87 const SourceLocation TypeBeginLoc = Loc.getBeginLoc(); in VisitTypeLoc() 110 Lexer::getLocForEndOfToken(TL.getBeginLoc(), 0, SM, LangOpts); in VisitTypedefTypeLoc() 111 return visit(TL.getTypedefNameDecl(), TL.getBeginLoc(), TypeEndLoc); in VisitTypedefTypeLoc()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGStmtOpenMP.cpp | 452 Ctx, Ctx.getTranslationUnitDecl(), FO.S->getBeginLoc(), in emitOutlinedFunctionPrologue() 492 CapVar ? CapVar->getBeginLoc() : FD->getBeginLoc(), in emitOutlinedFunctionPrologue() 534 FO.UIntPtrCastRequired ? FO.Loc : FO.S->getBeginLoc(), in emitOutlinedFunctionPrologue() 536 : CD->getBody()->getBeginLoc()); in emitOutlinedFunctionPrologue() 675 CallArg = WrapperCGF.EmitLoadOfScalar(LV, S.getBeginLoc()); in GenerateOpenMPCapturedStmtFunction() 684 CallArg = WrapperCGF.EmitLoadOfScalar(LV, S.getBeginLoc()); in GenerateOpenMPCapturedStmtFunction() 1126 CGM.getOpenMPRuntime().emitBarrierCall(*this, D.getBeginLoc(), in EmitOMPLastprivateClauseFinal() 1300 *this, D.getBeginLoc(), TaskLHSs, TaskRHSs, Data); in EmitOMPReductionClauseInit() 1435 *this, D.getBeginLoc(), in EmitOMPReductionClauseFinal() 1556 CGF, NumThreads, NumThreadsClause->getBeginLoc()); in emitCommonOMPParallelDirective() [all …]
|