| /netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
| 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() 75 asImpl().visitUsedDecl(E->getBeginLoc(), S.LookupDestructor(Record)); in VisitCXXDeleteExpr() 83 asImpl().visitUsedDecl(E->getBeginLoc(), E->getConstructor()); in VisitCXXConstructExpr()
|
| H A D | SemaStmtAsm.cpp | 73 S.Diag(LVal->getBeginLoc(), diag::err_invalid_asm_cast_lvalue) in emitAndFixInvalidAsmCastLValue() 76 S.Diag(LVal->getBeginLoc(), diag::warn_invalid_asm_cast_lvalue) in emitAndFixInvalidAsmCastLValue() 140 S.Diag(E->getBeginLoc(), diag::err_asm_naked_this_ref); in CheckNakedParmReference() 146 S.Diag(DRE->getBeginLoc(), diag::err_asm_naked_parm_ref); in CheckNakedParmReference() 181 S.Diag(E->getBeginLoc(), diag::err_asm_non_addr_value_in_memory_constraint) in checkExprMemoryConstraintCompat() 236 return Clobbers[i]->getBeginLoc(); in getClobberConflictLocation() 273 targetDiag(Literal->getBeginLoc(), in ActOnGCCAsmStmt() 303 Diag(OutputExpr->getBeginLoc(), diag::err_asm_invalid_type) in ActOnGCCAsmStmt() 330 if (RequireCompleteType(OutputExpr->getBeginLoc(), Exprs[i]->getType(), in ActOnGCCAsmStmt() 335 return StmtError(Diag(OutputExpr->getBeginLoc(), in ActOnGCCAsmStmt() [all …]
|
| H A D | AnalysisBasedWarnings.cpp | 118 if (!S.getSourceManager().isInMainFile(AC.getDecl()->getBeginLoc())) in CheckUnreachable() 274 S.Diag(Body->getBeginLoc(), diag::warn_infinite_recursive_function); in checkRecursiveFunction() 674 SourceLocation LBrace = Body->getBeginLoc(), RBrace = Body->getEndLoc(); in CheckFallThroughForBody() 794 CharSourceRange::getCharRange(If->getBeginLoc(), Then->getBeginLoc())); in CreateIfFixit() 804 If->getBeginLoc(), Else->getBeginLoc())); in CreateIfFixit() 818 S.Diag(Use.getUser()->getBeginLoc(), diag::warn_uninit_var) in DiagUninitUse() 830 S.Diag(Use.getUser()->getBeginLoc(), diag::note_uninit_var_use) in DiagUninitUse() 902 SourceRange(BO->getBeginLoc(), BO->getOperatorLoc())); in DiagUninitUse() 964 S.Diag(User->getBeginLoc(), diag::note_uninit_var_use) in DiagUninitUse() 974 S.Diag(Use.getUser()->getBeginLoc(), diag::warn_maybe_uninit_var) in DiagUninitUse() [all …]
|
| H A D | SemaChecking.cpp | 124 SourceRange range(call->getArg(desiredArgCount)->getBeginLoc(), in checkArgCount() 142 S.Diag(ValArg->getBeginLoc(), diag::err_builtin_annotation_first_arg) in SemaBuiltinAnnotation() 151 S.Diag(StrArg->getBeginLoc(), diag::err_builtin_annotation_second_arg) in SemaBuiltinAnnotation() 173 S.Diag(Arg->getBeginLoc(), diag::err_msvc_annotation_wide_str) in SemaBuiltinMSVCAnnotation() 189 QualType ResultType = S.CheckAddressOfOperand(Arg, TheCall->getBeginLoc()); in SemaBuiltinAddressof() 302 S.Diag(Arg.get()->getBeginLoc(), diag::err_overflow_builtin_must_be_int) in SemaBuiltinOverflow() 321 S.Diag(Arg.get()->getBeginLoc(), in SemaBuiltinOverflow() 337 return S.Diag(Arg->getBeginLoc(), in SemaBuiltinOverflow() 350 SourceLocation BuiltinLoc = BuiltinCall->getBeginLoc(); in SemaBuiltinCallWithStaticChain() 773 DiagRuntimeBehavior(TheCall->getBeginLoc(), TheCall, in checkFortifiedBuiltinMemoryFunction() [all …]
|
| H A D | JumpDiagnostics.cpp | 325 Scopes.push_back(GotoScope(ParentScope, Diag, 0, S->getBeginLoc())); in BuildScopeInformation() 391 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation() 396 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation() 400 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation() 608 ED->getStructuredBlock()->getBeginLoc()); in BuildScopeInformation() 681 Loc = CS->getBeginLoc(); in VerifyJumps() 683 Loc = DS->getBeginLoc(); in VerifyJumps() 685 Loc = SC->getBeginLoc(); in VerifyJumps() 720 S.Diag(GotoJumps[0]->getBeginLoc(), in VerifyIndirectOrAsmJumps() 856 S.Diag(Jump->getBeginLoc(), diag::err_indirect_goto_in_protected_scope) in DiagnoseIndirectOrAsmJumpStmt() [all …]
|
| H A D | TreeTransform.h | 2351 return SemaRef.Diag(Init->getBeginLoc(), in RebuildCXXForRangeStmt() 3880 return getDerived().RebuildInitList(Construct->getBeginLoc(), NewArgs, in TransformInitializer() 4079 SS.MakeGlobal(SemaRef.Context, Q.getBeginLoc()); in TransformNestedNameSpecifierLoc() 4086 SS.MakeSuper(SemaRef.Context, RD, Q.getBeginLoc(), Q.getEndLoc()); in TransformNestedNameSpecifierLoc() 4104 SemaRef.Diag(TL.getBeginLoc(), in TransformNestedNameSpecifierLoc() 4114 SemaRef.Diag(TL.getBeginLoc(), diag::err_nested_name_spec_non_tag) in TransformNestedNameSpecifierLoc() 4614 TemporaryBase Rebase(*this, DI->getTypeLoc().getBeginLoc(), in TransformType() 4666 TemporaryBase Rebase(*this, DI->getTypeLoc().getBeginLoc(), in TransformTypeWithDeducedTST() 4722 SourceLocation Loc = TL.getBeginLoc(); in RebuildQualifiedType() 5810 return This->TransformExceptionSpec(TL.getBeginLoc(), ESI, in TransformFunctionProtoType() [all …]
|
| H A D | SemaStmt.cpp | 634 Diag(St->getBeginLoc(), diag::err_musttail_needs_call) << &MTA; in checkMustTailAttr() 640 Diag(St->getBeginLoc(), diag::err_musttail_needs_trivial_args) << &MTA; in checkMustTailAttr() 663 Diag(St->getBeginLoc(), diag::err_musttail_structors_forbidden) in checkMustTailAttr() 666 Diag(CMD->getBeginLoc(), diag::note_musttail_structors_forbidden) in checkMustTailAttr() 692 Diag(St->getBeginLoc(), diag::err_musttail_forbidden_from_this_context) in checkMustTailAttr() 707 ? CE->getCalleeDecl()->getBeginLoc() in checkMustTailAttr() 708 : St->getBeginLoc(); in checkMustTailAttr() 724 Diag(St->getBeginLoc(), diag::err_musttail_structors_forbidden) in checkMustTailAttr() 736 Diag(St->getBeginLoc(), diag::err_musttail_needs_prototype) << &MTA; in checkMustTailAttr() 738 Diag(CE->getDirectCallee()->getBeginLoc(), in checkMustTailAttr() [all …]
|
| H A D | SemaInit.cpp | 230 S.Diag(Str->getBeginLoc(), in CheckStringInit() 236 S.Diag(Str->getBeginLoc(), in CheckStringInit() 434 SemaRef.Diag(OldInit->getBeginLoc(), diag::note_previous_initializer) in diagnoseInitOverride() 1063 SemaRef.Diag(ParentIList->getInit(Index)->getBeginLoc(), in CheckImplicitInitList() 1073 SourceRange(ParentIList->getInit(Index)->getBeginLoc(), in CheckImplicitInitList() 1101 SemaRef.Diag(StructuredSubobjectInitList->getBeginLoc(), in CheckImplicitInitList() 1105 StructuredSubobjectInitList->getBeginLoc(), "{") in CheckImplicitInitList() 1115 SemaRef.Diag(StructuredSubobjectInitList->getBeginLoc(), in CheckImplicitInitList() 1225 SemaRef.Diag(IList->getInit(Index)->getBeginLoc(), DK) in CheckExplicitInitList() 1231 SemaRef.Diag(IList->getInit(Index)->getBeginLoc(), DK) in CheckExplicitInitList() [all …]
|
| H A D | SemaExprObjC.cpp | 54 Diag(S->getBeginLoc(), diag::err_cfstring_literal_not_string_constant) in ParseObjCStringLiteral() 111 Diag(S->getBeginLoc(), diag::err_no_nsconstant_string_class) in BuildObjCStringLiteral() 405 Element->getBeginLoc(), SourceLocation()); in CheckObjCCollectionLiteralElement() 436 S.Diag(OrigElement->getBeginLoc(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement() 438 << FixItHint::CreateInsertion(OrigElement->getBeginLoc(), "@"); in CheckObjCCollectionLiteralElement() 441 S.BuildObjCNumericLiteral(OrigElement->getBeginLoc(), OrigElement); in CheckObjCCollectionLiteralElement() 452 S.Diag(OrigElement->getBeginLoc(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement() 454 << FixItHint::CreateInsertion(OrigElement->getBeginLoc(), "@"); in CheckObjCCollectionLiteralElement() 456 Result = S.BuildObjCStringLiteral(OrigElement->getBeginLoc(), String); in CheckObjCCollectionLiteralElement() 466 S.Diag(Element->getBeginLoc(), diag::err_invalid_collection_element) in CheckObjCCollectionLiteralElement() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| H A D | ExprCXX.h | 156 ? getBeginLoc() in getExprLoc() 160 SourceLocation getBeginLoc() const { return Range.getBegin(); } in getBeginLoc() function 223 return getBeginLoc(); in getExprLoc() 345 SourceLocation getBeginLoc() const LLVM_READONLY { in getBeginLoc() function 346 return getDecomposedForm().LHS->getBeginLoc(); in getBeginLoc() 353 return SourceRange(DF.LHS->getBeginLoc(), DF.RHS->getEndLoc()); in getSourceRange() 409 SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } in getBeginLoc() function 698 SourceLocation getBeginLoc() const { in getBeginLoc() function 701 return getArg(0)->getBeginLoc(); in getBeginLoc() 736 SourceLocation getBeginLoc() const { return getLocation(); } in getBeginLoc() function [all …]
|
| H A D | ExprObjC.h | 72 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc() function 104 SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } in getBeginLoc() function 159 SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } in getBeginLoc() function 216 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 421 SourceLocation getBeginLoc() const LLVM_READONLY { in getBeginLoc() function 422 return getBody() ? getBody()->getBeginLoc() in getBeginLoc() 423 : getPromiseDecl()->getBeginLoc(); in getBeginLoc() 492 SourceLocation getBeginLoc() const LLVM_READONLY { return CoreturnLoc; } in getBeginLoc() function 494 return getOperand() ? getOperand()->getEndLoc() : getBeginLoc(); in getEndLoc()
|
| H A D | Expr.h | 1078 SourceLocation getBeginLoc() const LLVM_READONLY { in getBeginLoc() function 1079 return SubExpr->getBeginLoc(); in getBeginLoc() 1149 SourceLocation getBeginLoc() const LLVM_READONLY { in getBeginLoc() function 1150 return SourceExpr ? SourceExpr->getBeginLoc() : getLocation(); in getBeginLoc() 1295 SourceLocation getBeginLoc() const LLVM_READONLY; 1506 SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } in getBeginLoc() function 1548 SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } in getBeginLoc() function 1605 SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } in getBeginLoc() function 1687 SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } in getBeginLoc() function 1724 SourceLocation getBeginLoc() const LLVM_READONLY { in getBeginLoc() function [all …]
|
| 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 252 SourceLocation getBeginLoc() const LLVM_READONLY { return AtTryLoc; } in getBeginLoc() function 313 SourceLocation getBeginLoc() const LLVM_READONLY { return AtSynchronizedLoc; } in getBeginLoc() function 351 SourceLocation getBeginLoc() const LLVM_READONLY { return AtThrowLoc; } in getBeginLoc() function 383 SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } in getBeginLoc() function
|
| H A D | Comment.h | 216 SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } in getBeginLoc() function 349 return SourceRange(getBeginLoc().getLocWithOffset(-1), getEndLoc()); in getCommandNameRange() 563 setSourceRange(SourceRange(Content.front()->getBeginLoc(), in ParagraphComment() 565 setLocation(Content.front()->getBeginLoc()); in ParagraphComment() 659 return getBeginLoc().getLocWithOffset(1); in getCommandNameBeginLoc() 665 getBeginLoc().getLocWithOffset(1 + Name.size())); in getCommandNameRange() 685 setSourceRange(SourceRange(getBeginLoc(), NewLocEnd)); in setArgs() 701 setSourceRange(SourceRange(getBeginLoc(), NewLocEnd)); in setParagraph() 1103 SourceRange(Blocks.front()->getBeginLoc(), Blocks.back()->getEndLoc())); in FullComment() 1104 setLocation(Blocks.front()->getBeginLoc()); in FullComment()
|
| H A D | Stmt.h | 1172 SourceLocation getBeginLoc() const LLVM_READONLY; 1317 SourceLocation getBeginLoc() const LLVM_READONLY { return StartLoc; } in getBeginLoc() function 1381 SourceLocation getBeginLoc() const { return getSemiLoc(); } in getBeginLoc() function 1502 SourceLocation getBeginLoc() const { return CompoundStmtBits.LBraceLoc; } in getBeginLoc() function 1555 SourceLocation getBeginLoc() const { return getKeywordLoc(); } in getBeginLoc() function 1694 SourceLocation getBeginLoc() const { return getKeywordLoc(); } in getBeginLoc() function 1740 SourceLocation getBeginLoc() const { return getKeywordLoc(); } in getBeginLoc() function 1825 SourceLocation getBeginLoc() const { return getIdentLoc(); } in getBeginLoc() function 1888 SourceLocation getBeginLoc() const { return getAttrLoc(); } in getBeginLoc() function 2090 SourceLocation getBeginLoc() const { return getIfLoc(); } in getBeginLoc() function [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/ARCMigrate/ |
| H A D | TransAutoreleasePool.cpp | 139 scope.CompoundParent->getBeginLoc()); in ~AutoreleasePoolRewriter() 144 scope.CompoundParent->getBeginLoc()); in ~AutoreleasePoolRewriter() 243 return SourceRange((*rangeS)->getBeginLoc(), (*rangeE)->getEndLoc()); in getIndentedRange() 258 ScopeRange = SourceRange((*scope.Begin)->getBeginLoc(), in NameReferenceChecker() 259 (*scope.End)->getBeginLoc()); in NameReferenceChecker() 267 return checkRef(TL.getBeginLoc(), TL.getTypedefNameDecl()->getLocation()); in VisitTypedefTypeLoc() 271 return checkRef(TL.getBeginLoc(), TL.getDecl()->getLocation()); in VisitTagTypeLoc() 330 (*scope.Begin)->getBeginLoc()); in handlePoolScope() 332 (*scope.End)->getBeginLoc()); in handlePoolScope()
|
| H A D | TransUnbridgedCasts.cpp | 211 E->getBeginLoc())) { in rewriteToBridgedCast() 227 diag::err_arc_cast_requires_bridge, E->getBeginLoc()); in rewriteToBridgedCast() 232 SourceLocation insertLoc = E->getSubExpr()->getBeginLoc(); in rewriteToBridgedCast() 252 SourceLocation InsertLoc = WrapE->getBeginLoc(); in rewriteToBridgedCast() 369 Pass.TA.reportError(err, E->getBeginLoc(), in transformObjCToNonObjCCast() 381 Pass.TA.reportNote(note, retS->getBeginLoc()); in transformObjCToNonObjCCast()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/ |
| H A D | ReachableCode.cpp | 156 SourceLocation L = S->getBeginLoc(); in isExpandedFromConfigurationMacro() 204 if (!PE->getBeginLoc().isMacroID()) in isConfigurationValue() 450 if (S->getBeginLoc().isInvalid()) in isValidDeadStmt() 477 if (p1->second->getBeginLoc() < p2->second->getBeginLoc()) in SrcCmp() 479 if (p2->second->getBeginLoc() < p1->second->getBeginLoc()) in SrcCmp() 512 if (S->getBeginLoc().isMacroID()) { in scanBackwards() 595 return CE->getBeginLoc(); in GetUnreachableLoc() 608 return S->getBeginLoc(); in GetUnreachableLoc() 634 SourceLocation Loc = LoopTarget->getBeginLoc(); in reportDeadCode() 639 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() 431 data_collection::getMacroStack(Seq.getBeginLoc(), Context); in calculateStmtComplexity()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/ |
| H A D | SourceCode.cpp | 328 if (SM.isBeforeInTranslationUnit(T->getBeginLoc(), Range.getBegin())) in getAssociatedRange() 329 Range.setBegin(T->getBeginLoc()); in getAssociatedRange() 332 if (SM.isBeforeInTranslationUnit(T->getBeginLoc(), Range.getBegin())) in getAssociatedRange() 333 Range.setBegin(T->getBeginLoc()); in getAssociatedRange() 353 if (SM.isBeforeInTranslationUnit(Comment->getBeginLoc(), in getAssociatedRange() 362 Range.setBegin(Comment->getBeginLoc()); in getAssociatedRange()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGStmtOpenMP.cpp | 448 Ctx, Ctx.getTranslationUnitDecl(), FO.S->getBeginLoc(), in emitOutlinedFunctionPrologue() 483 CapVar ? CapVar->getBeginLoc() : FD->getBeginLoc(), in emitOutlinedFunctionPrologue() 520 FO.UIntPtrCastRequired ? FO.Loc : FO.S->getBeginLoc(), in emitOutlinedFunctionPrologue() 522 : CD->getBody()->getBeginLoc()); in emitOutlinedFunctionPrologue() 662 CallArg = WrapperCGF.EmitLoadOfScalar(LV, S.getBeginLoc()); in GenerateOpenMPCapturedStmtFunction() 671 CallArg = WrapperCGF.EmitLoadOfScalar(LV, S.getBeginLoc()); in GenerateOpenMPCapturedStmtFunction() 1126 CGM.getOpenMPRuntime().emitBarrierCall(*this, D.getBeginLoc(), in EmitOMPLastprivateClauseFinal() 1306 *this, D.getBeginLoc(), TaskLHSs, TaskRHSs, Data); in EmitOMPReductionClauseInit() 1440 *this, D.getBeginLoc(), in EmitOMPReductionClauseFinal() 1561 CGF, NumThreads, NumThreadsClause->getBeginLoc()); in emitCommonOMPParallelDirective() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/Interp/ |
| H A D | ByteCodeGenError.h | 24 ByteCodeGenError(const Stmt *S) : ByteCodeGenError(S->getBeginLoc()) {} in ByteCodeGenError() 25 ByteCodeGenError(const Decl *D) : ByteCodeGenError(D->getBeginLoc()) {} in ByteCodeGenError()
|
| H A D | Source.cpp | 19 return S->getBeginLoc(); in getLoc() 21 return D->getBeginLoc(); in getLoc()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|