/external/clang/lib/Sema/ |
D | SemaStmtAsm.cpp | 50 S.Diag(E2->getLocStart(), diag::err_invalid_asm_cast_lvalue) in CheckAsmLValue() 53 S.Diag(E2->getLocStart(), diag::warn_invalid_asm_cast_lvalue) in CheckAsmLValue() 91 S.Diag(E->getLocStart(), diag::err_asm_naked_this_ref); in CheckNakedParmReference() 97 S.Diag(DRE->getLocStart(), diag::err_asm_naked_parm_ref); in CheckNakedParmReference() 132 S.Diag(E->getLocStart(), diag::err_asm_non_addr_value_in_memory_constraint) in checkExprMemoryConstraintCompat() 177 return StmtError(Diag(Literal->getLocStart(), in ActOnGCCAsmStmt() 216 Diag(LVal->getLocStart(), diag::err_invalid_asm_cast_lvalue) in ActOnGCCAsmStmt() 219 Diag(LVal->getLocStart(), diag::warn_invalid_asm_cast_lvalue) in ActOnGCCAsmStmt() 227 if (RequireCompleteType(OutputExpr->getLocStart(), Exprs[i]->getType(), in ActOnGCCAsmStmt() 231 return StmtError(Diag(OutputExpr->getLocStart(), in ActOnGCCAsmStmt() [all …]
|
D | AnalysisBasedWarnings.cpp | 112 if (!S.getSourceManager().isInMainFile(AC.getDecl()->getLocStart())) in CheckUnreachable() 273 S.Diag(Body->getLocStart(), diag::warn_infinite_recursive_function); in checkRecursiveFunction() 547 SourceLocation LBrace = Body->getLocStart(), RBrace = Body->getLocEnd(); in CheckFallThroughForBody() 656 CharSourceRange::getCharRange(If->getLocStart(), in CreateIfFixit() 657 Then->getLocStart())); in CreateIfFixit() 667 CharSourceRange::getCharRange(If->getLocStart(), in CreateIfFixit() 668 Else->getLocStart())); in CreateIfFixit() 682 S.Diag(Use.getUser()->getLocStart(), diag::warn_uninit_var) in DiagUninitUse() 694 S.Diag(Use.getUser()->getLocStart(), diag::note_uninit_var_use) in DiagUninitUse() 765 Fixit1 = FixItHint::CreateRemoval(SourceRange(BO->getLocStart(), in DiagUninitUse() [all …]
|
D | SemaChecking.cpp | 66 SourceRange range(call->getArg(desiredArgCount)->getLocStart(), in checkArgCount() 84 S.Diag(ValArg->getLocStart(), diag::err_builtin_annotation_first_arg) in SemaBuiltinAnnotation() 93 S.Diag(StrArg->getLocStart(), diag::err_builtin_annotation_second_arg) in SemaBuiltinAnnotation() 109 QualType ResultType = S.CheckAddressOfOperand(Arg, TheCall->getLocStart()); in SemaBuiltinAddressof() 127 S.Diag(Arg->getLocStart(), diag::err_overflow_builtin_must_be_int) in SemaBuiltinOverflow() 142 S.Diag(Arg->getLocStart(), diag::err_overflow_builtin_must_be_ptr_int) in SemaBuiltinOverflow() 173 SourceLocation SL = TheCall->getLocStart(); in SemaBuiltinMemChkCall() 183 SourceLocation BuiltinLoc = BuiltinCall->getLocStart(); in SemaBuiltinCallWithStaticChain() 290 ErrorLoc = BD->getParamDecl(ArgCounter)->getLocStart(); in checkOpenCLBlockArgs() 292 ErrorLoc = cast<DeclRefExpr>(BlockArg)->getLocStart(); in checkOpenCLBlockArgs() [all …]
|
D | SemaInit.cpp | 186 S.Diag(Str->getLocStart(), in CheckStringInit() 192 S.Diag(Str->getLocStart(), in CheckStringInit() 840 SemaRef.Diag(ParentIList->getInit(Index)->getLocStart(), in CheckImplicitInitList() 851 SourceRange(ParentIList->getInit(Index)->getLocStart(), in CheckImplicitInitList() 877 SemaRef.Diag(StructuredSubobjectInitList->getLocStart(), in CheckImplicitInitList() 881 StructuredSubobjectInitList->getLocStart(), "{") in CheckImplicitInitList() 998 SemaRef.Diag(IList->getInit(Index)->getLocStart(), DK) in CheckExplicitInitList() 1021 SemaRef.Diag(IList->getInit(Index)->getLocStart(), DK) in CheckExplicitInitList() 1073 SemaRef.Diag(IList->getLocStart(), diag::err_illegal_initializer_type) in CheckListElementTypes() 1081 SemaRef.Diag(IList->getLocStart(), diag::err_init_objc_class) in CheckListElementTypes() [all …]
|
D | TreeTransform.h | 3269 return getDerived().RebuildInitList(Construct->getLocStart(), NewArgs, in TransformInitializer() 6050 TL.getLocStart(), in TransformObjCObjectType() 6294 Then = new (getSema().Context) NullStmt(S->getThen()->getLocStart()); in TransformIfStmt() 7218 AssociatedStmt.get(), D->getLocStart(), D->getLocEnd()); in TransformOMPExecutableDirective() 7226 D->getLocStart()); in TransformOMPParallelDirective() 7237 D->getLocStart()); in TransformOMPSimdDirective() 7248 D->getLocStart()); in TransformOMPForDirective() 7259 D->getLocStart()); in TransformOMPForSimdDirective() 7270 D->getLocStart()); in TransformOMPSectionsDirective() 7281 D->getLocStart()); in TransformOMPSectionDirective() [all …]
|
D | SemaExprObjC.cpp | 53 Diag(S->getLocStart(), diag::err_cfstring_literal_not_string_constant) in ParseObjCStringLiteral() 110 Diag(S->getLocStart(), diag::err_no_nsconstant_string_class) << NSIdent in BuildObjCStringLiteral() 403 = InitializationKind::CreateCopy(Element->getLocStart(), in CheckObjCCollectionLiteralElement() 435 S.Diag(OrigElement->getLocStart(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement() 437 << FixItHint::CreateInsertion(OrigElement->getLocStart(), "@"); in CheckObjCCollectionLiteralElement() 439 Result = S.BuildObjCNumericLiteral(OrigElement->getLocStart(), in CheckObjCCollectionLiteralElement() 451 S.Diag(OrigElement->getLocStart(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement() 453 << FixItHint::CreateInsertion(OrigElement->getLocStart(), "@"); in CheckObjCCollectionLiteralElement() 455 Result = S.BuildObjCStringLiteral(OrigElement->getLocStart(), String); in CheckObjCCollectionLiteralElement() 465 S.Diag(Element->getLocStart(), diag::err_invalid_collection_element) in CheckObjCCollectionLiteralElement() [all …]
|
D | SemaStmtAttr.cpp | 32 << Attr.getSpelling() << St->getLocStart(); in handleFallThroughAttr() 74 S.Diag(St->getLocStart(), diag::err_pragma_loop_precedes_nonloop) << Pragma; in handleLoopHintAttr() 116 if (S.CheckLoopHintExpr(ValueExpr, St->getLocStart())) in handleLoopHintAttr() 290 << A.getName() << St->getLocStart(); in ProcessStmtAttribute()
|
/external/clang/include/clang/AST/ |
D | ExprCXX.h | 89 ? getLocStart() in getExprLoc() 93 SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); } in getLocStart() function 151 return getLocStart(); in getExprLoc() 233 SourceLocation getLocStart() const LLVM_READONLY { return Loc; } in getLocStart() function 444 SourceLocation getLocStart() const { in getLocStart() function 447 return getArg(0)->getLocStart(); in getLocStart() 486 SourceLocation getLocStart() const LLVM_READONLY { return Loc; } in getLocStart() function 516 SourceLocation getLocStart() const LLVM_READONLY { return Loc; } in getLocStart() function 550 SourceLocation getLocStart() const LLVM_READONLY { in getLocStart() function 551 return SubExpr->getLocStart(); in getLocStart() [all …]
|
D | ExprObjC.h | 47 SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; } in getLocStart() function 74 SourceLocation getLocStart() const LLVM_READONLY { return Loc; } in getLocStart() function 117 SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); } in getLocStart() function 167 SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); } in getLocStart() function 326 SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); } 383 SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; } 417 SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; } 462 SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; } 521 SourceLocation getLocStart() const LLVM_READONLY { 522 return isFreeIvar() ? Loc : getBase()->getLocStart(); [all …]
|
D | StmtObjC.h | 58 SourceLocation getLocStart() const LLVM_READONLY { return ForLoc; } in getLocStart() function 107 SourceLocation getLocStart() const LLVM_READONLY { return AtCatchLoc; } in getLocStart() function 136 SourceLocation getLocStart() const LLVM_READONLY { return AtFinallyLoc; } in getLocStart() function 241 SourceLocation getLocStart() const LLVM_READONLY { return AtTryLoc; } in getLocStart() function 298 SourceLocation getLocStart() const LLVM_READONLY { return AtSynchronizedLoc; } in getLocStart() function 332 SourceLocation getLocStart() const LLVM_READONLY { return AtThrowLoc; } in getLocStart() function 360 SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; } in getLocStart() function
|
D | StmtCXX.h | 44 SourceLocation getLocStart() const LLVM_READONLY { return CatchLoc; } in getLocStart() function 88 SourceLocation getLocStart() const LLVM_READONLY { return getTryLoc(); } in getLocStart() function 198 SourceLocation getLocStart() const LLVM_READONLY { return ForLoc; } in getLocStart() function 284 SourceLocation getLocStart() const LLVM_READONLY { return KeywordLoc; } in getLocStart() function 352 SourceLocation getLocStart() const LLVM_READONLY { in getLocStart() function 353 return getBody()->getLocStart(); in getLocStart() 406 SourceLocation getLocStart() const LLVM_READONLY { return CoreturnLoc; } in getLocStart() function
|
D | Expr.h | 879 SourceLocation getLocStart() const LLVM_READONLY { in getLocStart() function 880 return SourceExpr ? SourceExpr->getLocStart() : Loc; in getLocStart() 1027 SourceLocation getLocStart() const LLVM_READONLY; 1200 SourceLocation getLocStart() const LLVM_READONLY { return Loc; } in getLocStart() function 1286 SourceLocation getLocStart() const LLVM_READONLY { return Loc; } in getLocStart() function 1335 SourceLocation getLocStart() const LLVM_READONLY { return Loc; } in getLocStart() function 1405 SourceLocation getLocStart() const LLVM_READONLY { return Loc; } in getLocStart() function 1439 SourceLocation getLocStart() const LLVM_READONLY { return Val->getLocStart(); } in getLocStart() function 1602 SourceLocation getLocStart() const LLVM_READONLY { return TokLocs[0]; } in getLocStart() function 1639 SourceLocation getLocStart() const LLVM_READONLY { return L; } in getLocStart() function [all …]
|
D | Stmt.h | 358 SourceLocation getLocStart() const LLVM_READONLY; in LLVM_ALIGNAS() 473 SourceLocation getLocStart() const LLVM_READONLY { return StartLoc; } in getLocStart() function 534 SourceLocation getLocStart() const LLVM_READONLY { return SemiLoc; } in getLocStart() function 626 SourceLocation getLocStart() const LLVM_READONLY { return LBraceLoc; } in getLocStart() function 680 SourceLocation getLocStart() const LLVM_READONLY { return KeywordLoc; } in getLocStart() function 730 SourceLocation getLocStart() const LLVM_READONLY { return KeywordLoc; } in getLocStart() function 769 SourceLocation getLocStart() const LLVM_READONLY { return KeywordLoc; } in getLocStart() function 814 SourceLocation getLocStart() const LLVM_READONLY { return IdentLoc; } in getLocStart() function 868 SourceLocation getLocStart() const LLVM_READONLY { return AttrLoc; } in getLocStart() function 936 SourceLocation getLocStart() const LLVM_READONLY { return IfLoc; } in getLocStart() function [all …]
|
D | Comment.h | 218 SourceLocation getLocStart() const LLVM_READONLY { in getLocStart() function 354 return SourceRange(getLocStart().getLocWithOffset(-1), in getCommandNameRange() 569 setSourceRange(SourceRange(Content.front()->getLocStart(), in ParagraphComment() 571 setLocation(Content.front()->getLocStart()); in ParagraphComment() 665 return getLocStart().getLocWithOffset(1); in getCommandNameBeginLoc() 671 getLocStart().getLocWithOffset(1 + Name.size())); in getCommandNameRange() 691 setSourceRange(SourceRange(getLocStart(), NewLocEnd)); in setArgs() 707 setSourceRange(SourceRange(getLocStart(), NewLocEnd)); in setParagraph() 1108 setSourceRange(SourceRange(Blocks.front()->getLocStart(), in FullComment() 1110 setLocation(Blocks.front()->getLocStart()); in FullComment()
|
D | RawCommentList.h | 111 SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); } in getLocStart() function 172 return SM.isBeforeInTranslationUnit(LHS.getLocStart(), RHS.getLocStart()); in operator()
|
D | ExprOpenMP.h | 104 SourceLocation getLocStart() const LLVM_READONLY { in getLocStart() function 105 return getBase()->getLocStart(); in getLocStart()
|
/external/clang/lib/Analysis/ |
D | ReachableCode.cpp | 133 SourceLocation L = S->getLocStart(); in isExpandedFromConfigurationMacro() 172 if (!PE->getLocStart().isMacroID()) in isConfigurationValue() 407 if (S->getLocStart().isInvalid()) in isValidDeadStmt() 435 if (p1->second->getLocStart() < p2->second->getLocStart()) in SrcCmp() 437 if (p2->second->getLocStart() < p1->second->getLocStart()) in SrcCmp() 470 if (S->getLocStart().isMacroID()) { in scanBackwards() 553 return CE->getLocStart(); in GetUnreachableLoc() 566 return S->getLocStart(); in GetUnreachableLoc() 592 SourceLocation Loc = LoopTarget->getLocStart(); in reportDeadCode() 597 Loc = Inc->getLocStart(); in reportDeadCode()
|
/external/clang/lib/AST/ |
D | RawCommentList.cpp | 71 SourceLocation L1 = R1.getLocStart(); in commentsStartOnSameColumn() 72 SourceLocation L2 = R2.getLocStart(); in commentsStartOnSameColumn() 279 !SourceMgr.isBeforeInTranslationUnit(Comments.back()->getLocStart(), in addComment() 280 RC.getLocStart())) { in addComment() 317 onlyWhitespaceBetween(SourceMgr, C1.getLocEnd(), C2.getLocStart(), in addComment() 319 SourceRange MergedRange(C1.getLocStart(), C2.getLocEnd()); in addComment()
|
D | SelectorLocationsKind.cpp | 52 return Arg->getLocStart(); in getArgLoc() 57 SourceLocation Loc = Arg->getLocStart(); in getArgLoc()
|
/external/clang/lib/ARCMigrate/ |
D | TransAutoreleasePool.cpp | 140 scope.CompoundParent->getLocStart()); in ~AutoreleasePoolRewriter() 145 scope.CompoundParent->getLocStart()); in ~AutoreleasePoolRewriter() 244 return SourceRange((*rangeS)->getLocStart(), (*rangeE)->getLocEnd()); in getIndentedRange() 259 ScopeRange = SourceRange((*scope.Begin)->getLocStart(), in NameReferenceChecker() 260 (*scope.End)->getLocStart()); in NameReferenceChecker() 331 (*scope.Begin)->getLocStart()); in handlePoolScope() 333 (*scope.End)->getLocStart()); in handlePoolScope()
|
D | TransUnbridgedCasts.cpp | 212 E->getLocStart())) { in rewriteToBridgedCast() 229 E->getLocStart()); in rewriteToBridgedCast() 234 SourceLocation insertLoc = E->getSubExpr()->getLocStart(); in rewriteToBridgedCast() 254 SourceLocation InsertLoc = WrapE->getLocStart(); in rewriteToBridgedCast() 372 Pass.TA.reportError(err, E->getLocStart(), in transformObjCToNonObjCCast() 384 Pass.TA.reportNote(note, retS->getLocStart()); in transformObjCToNonObjCCast()
|
/external/clang/lib/CodeGen/ |
D | CGStmtOpenMP.cpp | 260 CD->getBody()->getLocStart()); in GenerateOpenMPCapturedStmtFunction() 1203 CGF, NumThreads, NumThreadsClause->getLocStart()); in emitCommonOMPParallelDirective() 1208 CGF, ProcBindClause->getProcBindKind(), ProcBindClause->getLocStart()); in emitCommonOMPParallelDirective() 1222 CGF.CGM.getOpenMPRuntime().emitParallelCall(CGF, S.getLocStart(), OutlinedFn, in emitCommonOMPParallelDirective() 1237 CGF, S.getLocStart(), OMPD_unknown, /*EmitChecks=*/false, in EmitOMPParallelDirective() 1696 BoolCondVal = RT.emitForNext(*this, S.getLocStart(), IVSize, IVSigned, IL, in EmitOMPOuterLoop() 1730 SourceLocation Loc = S.getLocStart(); in EmitOMPOuterLoop() 1833 RT.emitForDispatchInit(*this, S.getLocStart(), ScheduleKind, IVSize, in EmitOMPForOuterLoop() 1836 RT.emitForStaticInit(*this, S.getLocStart(), ScheduleKind, IVSize, IVSigned, in EmitOMPForOuterLoop() 1860 RT.emitDistributeStaticInit(*this, S.getLocStart(), ScheduleKind, in EmitOMPDistributeOuterLoop() [all …]
|
/external/clang/unittests/Tooling/ |
D | RecursiveASTVisitorTestDeclVisitor.cpp | 20 Match(Variable->getNameAsString(), Variable->getLocStart()); in VisitVarDecl() 40 Match(ParamVar->getNameAsString(), ParamVar->getLocStart()); in VisitParmVarDecl()
|
D | RecursiveASTVisitorTest.cpp | 105 Match(ME->getMemberDecl()->getNameAsString(), ME->getLocStart()); in VisitMemberExpr() 140 Match(VD->getNameAsString(), VD->getLocStart()); in VisitVarDecl()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | StackAddrEscapeChecker.cpp | 58 << SM.getExpansionLineNumber(CL->getLocStart()) in genName() 64 SourceLocation L = ARE->getLocStart(); in genName() 71 SourceLocation L = BD->getLocStart(); in genName()
|