reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/AST/Expr.h
  235   SourceLocation getExprLoc() const LLVM_READONLY;

References

tools/clang/include/clang/AST/Expr.h
 1089     return SourceExpr ? SourceExpr->getExprLoc() : getLocation();
 2499     return getBase()->getExprLoc();
 5770     return getSyntacticForm()->getExprLoc();
tools/clang/include/clang/AST/ExprCXX.h
  211     SourceLocation CLoc = getCallee()->getExprLoc();
  318     return getDecomposedForm().InnerBinOp->getExprLoc();
  979     return getBase()->getExprLoc();
tools/clang/include/clang/AST/ExprObjC.h
 1624     return getSubExpr()->getExprLoc();
tools/clang/include/clang/AST/ExprOpenMP.h
  115     return getBase()->getExprLoc();
tools/clang/include/clang/Sema/Sema.h
 4029     return MakeFullExpr(Arg, Arg ? Arg->getExprLoc() : SourceLocation());
 4037         ActOnFinishFullExpr(Arg, Arg ? Arg->getExprLoc() : SourceLocation(),
 5772         Expr, Expr ? Expr->getExprLoc() : SourceLocation(), DiscardedValue);
tools/clang/lib/ARCMigrate/TransARCAssign.cpp
   46     SourceLocation OrigLoc = E->getExprLoc();
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp
  327     SourceLocation Loc = Msg->getExprLoc();
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp
  108     SourceLocation loc = castExpr->getExprLoc();
  282     SourceLocation Loc = E->getExprLoc();
  336     SourceLocation CastLoc = E->getExprLoc();
tools/clang/lib/ARCMigrate/TransUnusedInitDelegate.cpp
   53                               ME->getExprLoc())) {
   56                               ME->getExprLoc());
tools/clang/lib/AST/ASTImporter.cpp
 7325       E->getExprLoc(), E->getLAngleLoc(), E->getRAngleLoc());
 7703       E->getType(), E->getExprLoc(), E->getParameter(), E->getReplacement());
tools/clang/lib/AST/Expr.cpp
 2396     Loc = getExprLoc();
 2607       Loc = getExprLoc();
 2615         Loc = getExprLoc();
 2624     Loc = getExprLoc();
 2637     Loc = getExprLoc();
 3348   if (!IncludePossibleEffects && getExprLoc().isMacroID())
tools/clang/lib/AST/ExprClassification.cpp
  614         Loc = CE->getExprLoc();
tools/clang/lib/AST/ExprConstant.cpp
  648           Loc = E->getExprLoc();
 1970     Info.Note(E->getExprLoc(), diag::note_constexpr_temporary_here);
 1974       Info.Note((*Alloc)->AllocExpr->getExprLoc(),
 2069         Info.FFDiag(MTE->getExprLoc(),
 2078                                  Info, MTE->getExprLoc(), TempType, *V,
 2474       Info.Ctx.getDiagnostics().Report(E->getExprLoc(),
 2782   if (!HandleSizeof(Info, E->getExprLoc(), EltTy, SizeOfPointee))
 2806     if (!HandleSizeof(Info, E->getExprLoc(), EltTy, SizeOfComponent))
 3224               Loc = E->getExprLoc();
 3368     return CheckFullyInitialized(Info, E->getExprLoc(), SubobjType, Result);
 3675           Info.Note(MTE->getExprLoc(), diag::note_constexpr_temporary_here);
 5539   SourceLocation CallLoc = E->getExprLoc();
 5921     return HandleDestructionImpl(Info, E->getExprLoc(), This, Subobj,
 5968     Info.FFDiag(E->getExprLoc(), Info.getLangOpts().CPlusPlus2a
 5976     Info.FFDiag(E->getExprLoc(),
 5992   if (!HandleSizeof(Info, E->getExprLoc(), ElemType, ElemSize))
 5999     Info.FFDiag(E->getExprLoc(), diag::note_constexpr_operator_new_bad_size)
 6096     Info.FFDiag(E->getExprLoc());
 6366         Info.FFDiag(BCE->getExprLoc(),
 6991     if (!CheckConstexprFunction(Info, E->getExprLoc(), FD, Definition, Body) ||
 6992         !HandleFunctionCall(E->getExprLoc(), Definition, This, Args, Body, Info,
 9009   if (CheckTrivialDefaultConstructor(Info, E->getExprLoc(), FD, ZeroInit)) {
 9024   if (!CheckConstexprFunction(Info, E->getExprLoc(), FD, Definition, Body))
 9056   if (!CheckConstexprFunction(Info, E->getExprLoc(), FD, Definition, Body))
10475   if (!determineEndOffset(Info, E->getExprLoc(), Type, LVal, EndOffset))
11935     if (!HandleSizeof(Info, E->getExprLoc(), SrcTy, Sizeof))
13248   if (!HandleDestruction(Info, E->getExprLoc(), Pointer.getLValueBase(),
13413   return CheckConstantExpression(Info, E->getExprLoc(), E->getType(), Result) &&
13566       !CheckLValueConstantExpression(Info, getExprLoc(),
13590   return CheckConstantExpression(Info, getExprLoc(), getStorageType(Ctx, this),
14224     if (Loc) *Loc = E->getExprLoc();
14233     if (Loc) *Loc = E->getExprLoc();
14318     if (Loc) *Loc = getExprLoc();
tools/clang/lib/AST/Interp/Descriptor.cpp
  257     return E->getExprLoc();
tools/clang/lib/AST/Interp/Interp.h
  122     auto Loc = E->getExprLoc();
tools/clang/lib/AST/Interp/Source.cpp
   17     return E->getExprLoc();
tools/clang/lib/AST/Interp/State.cpp
   28     return diag(E->getExprLoc(), DiagId, ExtraNotes, false);
   54   return CCEDiag(E->getExprLoc(), DiagId, ExtraNotes);
tools/clang/lib/AST/ItaniumMangle.cpp
 3677       Diags.Report(E->getExprLoc(), DiagID)
 3703     Diags.Report(E->getExprLoc(), DiagID)
tools/clang/lib/AST/MicrosoftMangle.cpp
 1412   Diags.Report(E->getExprLoc(), DiagID) << E->getStmtClassName()
 2544       Diags.Report(DSAT->getSizeExpr()->getExprLoc(), DiagID)
tools/clang/lib/Analysis/Consumed.cpp
  639           Call->getArg(Index)->getExprLoc(),
  664     checkCallability(PInfo, FunD, Call->getExprLoc());
 1354                                  BTE->getExprLoc());
tools/clang/lib/Analysis/ThreadSafety.cpp
   74     Loc = DeclExp->getExprLoc();
 1552   SourceLocation Loc = Exp->getExprLoc();
 1689         DiagKind, D->getNameAsString(), Cp.toString(), Exp->getExprLoc());
 1702   SourceLocation Loc = Exp->getExprLoc();
 1784                                         Exp->getExprLoc());
 1788                        ClassifyDiagnostic(I), Exp->getExprLoc());
 1803   SourceLocation Loc = Exp->getExprLoc();
 1895                              Exp->getExprLoc());
tools/clang/lib/CodeGen/CGAtomic.cpp
 1020                         MemTy, E->getExprLoc(), sizeChars);
 1033                         MemTy, E->getExprLoc(), sizeChars);
 1045                         MemTy, E->getExprLoc(), sizeChars);
 1065                         LoweredMemTy, E->getExprLoc(), sizeChars);
 1077                         MemTy, E->getExprLoc(), sizeChars);
 1089                         MemTy, E->getExprLoc(), sizeChars);
 1101                         LoweredMemTy, E->getExprLoc(), sizeChars);
 1113                         MemTy, E->getExprLoc(), sizeChars);
 1121                         LoweredMemTy, E->getExprLoc(), sizeChars);
 1129                         LoweredMemTy, E->getExprLoc(), sizeChars);
 1139                         MemTy, E->getExprLoc(), sizeChars);
 1202         RValTy, E->getExprLoc());
 1254         RValTy, E->getExprLoc());
 1327       RValTy, E->getExprLoc());
tools/clang/lib/CodeGen/CGBuiltin.cpp
  164   return CGF.EmitLoadOfScalar(LV, E->getExprLoc());
 1106             {EmitCheckSourceLocation(E->getExprLoc()),
 1869       CGM.Error(E->getExprLoc(), "using builtin_preserve_access_index() without -g");
 1875       CGM.Error(E->getExprLoc(), "nested builtin_preserve_access_index() not supported");
 2171     EmitUnreachable(E->getExprLoc());
 2389                         E->getArg(0)->getExprLoc(), FD, 0);
 2399                         E->getArg(0)->getExprLoc(), FD, 0);
 2401                         E->getArg(1)->getExprLoc(), FD, 1);
 2459                         E->getArg(0)->getExprLoc(), FD, 0);
 2461                         E->getArg(1)->getExprLoc(), FD, 1);
 2472                         E->getArg(0)->getExprLoc(), FD, 0);
 3142     return RValue::get(EmitAnnotationCall(F, AnnVal, Str, E->getExprLoc()));
 9441     CGM.Error(E->getExprLoc(), "using builtin_preserve_field_info() without -g");
tools/clang/lib/CodeGen/CGCall.cpp
 3477       EmitNonNullArgCheck(RVArg, ArgTypes[Idx], (*Arg)->getExprLoc(), AC,
tools/clang/lib/CodeGen/CGClass.cpp
 2075                          ThisAVS.mayOverlap(), E->getExprLoc(),
 2323                          AggValueSlot::MayOverlap, E->getExprLoc(),
tools/clang/lib/CodeGen/CGCoroutine.cpp
  238     auto Loc = S.getResumeExpr()->getExprLoc();
tools/clang/lib/CodeGen/CGDebugInfo.cpp
  123   init(E->getExprLoc());
tools/clang/lib/CodeGen/CGDecl.cpp
  747     EmitNullabilityCheck(lvalue, value, init->getExprLoc());
  842   EmitNullabilityCheck(lvalue, value, init->getExprLoc());
  848     llvm::Value *oldValue = EmitLoadOfScalar(lvalue, init->getExprLoc());
tools/clang/lib/CodeGen/CGDeclCXX.cpp
  648                 D->getInit()->getExprLoc());
tools/clang/lib/CodeGen/CGException.cpp
  429       const ObjCAtThrowStmt S(E->getExprLoc(), const_cast<Stmt *>(ThrowStmt));
tools/clang/lib/CodeGen/CGExpr.cpp
  172   SourceLocation Loc = E->getExprLoc();
  568                                 /*NullCheckValue=*/ false, E->getExprLoc());
  606     EmitTypeCheck(TCK_ReferenceBinding, E->getExprLoc(), Value, Ty);
  919                                               C.getSizeType(), E->getExprLoc());
  976     EmitCheckSourceLocation(E->getExprLoc()),
 1116                                    CE->getExprLoc());
 1222     EmitTypeCheck(TCK, E->getExprLoc(), LV.getPointer(),
 1519                             E->getExprLoc())
 2386                                           E->getExprLoc());
 2634           E->getExprLoc());
 4375         /*NullCheckValue=*/false, E->getExprLoc());
 4400       EmitTypeCheck(TCK_DowncastReference, E->getExprLoc(),
 4944                          E->getExprLoc());
tools/clang/lib/CodeGen/CGExprAgg.cpp
  223     CGF.EmitAtomicLoad(LV, E->getExprLoc(), Dest);
tools/clang/lib/CodeGen/CGExprCXX.cpp
   90                   CE ? CE->getExprLoc() : SourceLocation());
  279                            AggValueSlot::DoesNotOverlap, CE->getExprLoc(),
  320     CallLoc = CE->getExprLoc();
 1867                     DE->getExprLoc(), Ptr.getPointer(),
 2114   CGF.EmitTypeCheck(CodeGenFunction::TCK_DynamicOperation, E->getExprLoc(),
 2212   EmitTypeCheck(TCK_DynamicOperation, DCE->getExprLoc(), ThisAddr.getPointer(),
tools/clang/lib/CodeGen/CGExprComplex.cpp
   73     return EmitLoadOfLValue(CGF.EmitLValue(E), E->getExprLoc());
  130                               E->getExprLoc());
  418                           E->getExprLoc());
  468     return EmitLoadOfLValue(CGF.MakeAddrLValue(V, DestTy), Op->getExprLoc());
  477     return EmitLoadOfLValue(DestLV, Op->getExprLoc());
  533                                    DestTy, Op->getExprLoc());
  540                                     Op->getExprLoc());
 1097                           E->getExprLoc());
tools/clang/lib/CodeGen/CGExprConstant.cpp
 1369     CGM.Error(E->getExprLoc(),
tools/clang/lib/CodeGen/CGExprScalar.cpp
  305                                 E->getExprLoc());
 1543   StaticData.push_back(CGF.EmitCheckSourceLocation(Info.E->getExprLoc()));
 1978     return EmitLoadOfLValue(LV, CE->getExprLoc());
 1987     return EmitLoadOfLValue(DestLV, CE->getExprLoc());
 2033               addHeapAllocSiteMetadata(CI, CE->getType(), CE->getExprLoc());
 2074       CGF.EmitTypeCheck(CodeGenFunction::TCK_DowncastPointer, CE->getExprLoc(),
 2209                                 CE->getExprLoc());
 2216                                 CE->getExprLoc());
 2223                                 CE->getExprLoc());
 2231                                 CE->getExprLoc());
 2240                                 CE->getExprLoc(), Opts);
 2246                                 CE->getExprLoc());
 2251                                 CE->getExprLoc(), Opts);
 2275                                          CE->getExprLoc());
 2300                               E->getExprLoc());
 3252                                      op.E->getExprLoc(), "add.ptr");
 3270                                     op.E->getExprLoc(), "add.ptr");
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 7210                                              LenExpr->getExprLoc());
 7220                                        OAE->getLowerBound()->getExprLoc());
 8008               CGF.EmitLoadOfScalar(CGF.EmitLValue(IE), IE->getExprLoc());
 8064               this->CGF.EmitLValue(L.IE), L.IE->getExprLoc());
10759         ExprLoc = VLENExpr->getExprLoc();
10847                                  D.getNumIterations()->getExprLoc());
10890         CounterVal->getExprLoc());
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 3080                       RemoteLaneOffset, Private->getExprLoc());
 3086                                  Private->getType(), Private->getExprLoc());
 3095             Private->getExprLoc());
 4617         cast<OMPLoopDirective>(D).getLowerBoundVariable()->getExprLoc());
 4627         cast<OMPLoopDirective>(D).getUpperBoundVariable()->getExprLoc());
tools/clang/lib/CodeGen/CGStmt.cpp
 1878                             InputExpr->getExprLoc());
 2103                                             InputExpr->getExprLoc());
 2339             OutExpr->getExprLoc(),
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
  258                       OrigDRE->getType(), VK_LValue, OrigDRE->getExprLoc());
  794                         (*IRef)->getType(), VK_LValue, (*IRef)->getExprLoc());
  926                           (*IRef)->getType(), VK_LValue, (*IRef)->getExprLoc());
 1003                           (*IRef)->getType(), VK_LValue, (*IRef)->getExprLoc());
 1458                         VD->getInit()->getExprLoc());
 1502                       (*IC)->getType(), VK_LValue, (*IC)->getExprLoc());
 1572                         E->getType(), VK_LValue, E->getExprLoc());
 1740                         (*IPC)->getType(), VK_LValue, (*IPC)->getExprLoc());
 2158       PrevLB, LS.getPrevLowerBoundVariable()->getExprLoc());
 2162       LS.getPrevLowerBoundVariable()->getExprLoc());
 2164       PrevUB, LS.getPrevUpperBoundVariable()->getExprLoc());
 2168       LS.getPrevUpperBoundVariable()->getExprLoc());
 2904         Prio->getExprLoc()));
 3029                         Pair.second->getExprLoc());
 3061                         Data.ReductionCopies[Cnt]->getExprLoc()),
 3105                                  TaskgroupDescriptors[Cnt]->getExprLoc());
 3112                 InRedPrivs[Cnt]->getExprLoc()),
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 2067   SourceLocation Loc = E->getExprLoc();
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 3011       Diags.Report(E->getExprLoc(), DiagID) << RD << E->getSourceRange();
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
 1101     Diags.Report(Msg->getExprLoc(), diagID) << OrigTy << FinalTy
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
 2605   ParenExpr *PE = new (Context) ParenExpr(Exp->getLocation(), Exp->getExprLoc(),
 4043   SourceLocation BlockLoc = CE->getExprLoc();
 4688   ParenExpr *PE = new (Context) ParenExpr(DeclRefExp->getExprLoc(),
 4689                                           DeclRefExp->getExprLoc(),
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
 3857   ParenExpr *PE = new (Context) ParenExpr(DeclRefExp->getExprLoc(),
 3858                                           DeclRefExp->getExprLoc(),
tools/clang/lib/Parse/ParseExpr.cpp
 1496         Diag(PostfixExpr->getExprLoc(),
tools/clang/lib/Parse/ParseStmt.cpp
  700     SourceLocation CaseLoc = MissingCase ? Expr.get()->getExprLoc() :
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
  132     if (E->getExprLoc().isMacroID())
tools/clang/lib/Sema/JumpDiagnostics.cpp
  554                                    ExtendedObject->getExprLoc()));
tools/clang/lib/Sema/Sema.cpp
 2113   SourceLocation Loc = E.get()->getExprLoc();
tools/clang/lib/Sema/SemaCast.cpp
 1867         Self.Diag(SrcExpr.get()->getExprLoc(),
 2549                            SrcExpr.get()->getExprLoc()))
 2574   Self.Diag(SrcExpr.get()->getExprLoc(),
 2686     Self.Diag(SrcExpr.get()->getExprLoc(),
 2721     Self.Diag(SrcExpr.get()->getExprLoc(), diag::err_cast_selector_expr);
 2730       Self.Diag(SrcExpr.get()->getExprLoc(),
tools/clang/lib/Sema/SemaChecking.cpp
  469     SemaRef.Diag(TheCall->getExprLoc(), DiagID)
 4189     S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string)
 7659     S.Diag(IsStringLocation ? ArgumentExpr->getExprLoc() : Loc, PDiag)
 8321                          E->getExprLoc(), false, CSR);
 9183     Diag(Call->getExprLoc(), diag::warn_unsigned_abs) << ArgType << ParamType;
 9184     Diag(Call->getExprLoc(), diag::note_remove_abs)
 9199     Diag(Call->getExprLoc(), diag::warn_pointer_abs) << DiagType << ArgType;
 9218     Diag(Call->getExprLoc(), diag::warn_abs_too_small)
 9224     emitReplacement(*this, Call->getExprLoc(),
 9237   Diag(Call->getExprLoc(), diag::warn_wrong_absolute_value_type)
 9240   emitReplacement(*this, Call->getExprLoc(),
 9251   if (Call->getExprLoc().isMacroID()) return;
 9289   Diag(Call->getExprLoc(), diag::warn_max_unsigned_zero)
 9302   Diag(Call->getExprLoc(), diag::note_remove_max_call)
 9539       !isArgumentExpandedFromMacro(SM, CallLoc, SizeArg->getExprLoc())) {
 9541     SourceLocation DiagLoc = SizeArg->getExprLoc();
 9563     SourceLocation DiagLoc = Call->getArg(1)->getExprLoc();
 9634                            SizeOfArg->getExprLoc())) {
 9657           SourceLocation SL = SizeOfArg->getExprLoc();
 9693           DiagRuntimeBehavior(LenExpr->getExprLoc(), Dest,
 9726       DiagRuntimeBehavior(Dest->getExprLoc(), Dest,
 9734         Dest->getExprLoc(), Dest,
 9741         DiagRuntimeBehavior(Dest->getExprLoc(), Dest,
 9747         DiagRuntimeBehavior(Dest->getExprLoc(), Dest,
 9758       Dest->getExprLoc(), Dest,
10984         S.Diag(WidthExpr->getExprLoc(), diag::note_widen_bitfield)
11057     S.DiagRuntimeBehavior(E->getExprLoc(), E,
11063   S.Diag(E->getExprLoc(), diag)
11198     S.DiagRuntimeBehavior(E->getExprLoc(), E,
11204     S.Diag(E->getExprLoc(), DiagID)
11301                         E->getExprLoc()))
11507   SourceLocation ExprLoc = E->getExprLoc();
11562     S.Diag(E->getExprLoc(), diag::warn_atomic_implicit_seq_cst);
11728           S.DiagRuntimeBehavior(E->getExprLoc(), E,
11749           S.DiagRuntimeBehavior(E->getExprLoc(), E,
11770           S.DiagRuntimeBehavior(E->getExprLoc(), E,
11816               E->getExprLoc(), E,
11871           E->getExprLoc(), E,
11916             E->getExprLoc(), E,
12116   CC = E->getExprLoc();
12190   SemaRef.Diag(E->getExprLoc(), PD);
12229   if (E->getExprLoc().isMacroID()) {
12231     if (IsInAnyMacroBody(SM, E->getExprLoc()) ||
12242     Diag(E->getExprLoc(), DiagID) << E->getSourceRange() << Range << IsEqual;
12273     Diag(E->getExprLoc(), DiagID) << IsParam << S.str()
12367   Diag(E->getExprLoc(), DiagID) << DiagType << S.str() << E->getSourceRange()
12374   Diag(E->getExprLoc(), diag::note_function_warning_silence)
12403   Diag(E->getExprLoc(), diag::note_function_to_function_call)
12700         Mod->getExprLoc(), {Mod, ModOrUse},
12703             << O << SourceRange(ModOrUse->getExprLoc()));
13210       if (!SizeExpr || SizeExpr->getExprLoc().isMacroID())
13441     Loc = e->getExprLoc();
13639   S.Diag(capturer->getExprLoc(), diag::warn_arc_retain_cycle)
14555       Diag(TypeTagExpr->getExprLoc(),
14586       Diag(ArgumentExpr->getExprLoc(),
14622     Diag(ArgumentExpr->getExprLoc(), diag::warn_type_safety_type_mismatch)
tools/clang/lib/Sema/SemaCodeComplete.cpp
 5118   SourceLocation Loc = Fn->getExprLoc();
tools/clang/lib/Sema/SemaConcept.cpp
   41     Diag(ConstraintExpression->getExprLoc(),
tools/clang/lib/Sema/SemaCoroutine.cpp
  776   SourceLocation CallLoc = E->getExprLoc();
 1053   auto Loc = E->getExprLoc();
tools/clang/lib/Sema/SemaDecl.cpp
 6985         Diag(E->getExprLoc(), diag::warn_asm_label_on_auto_decl) << Label;
 6991           Diag(E->getExprLoc(), diag::err_asm_unknown_register_name) << Label;
 7005           Diag(E->getExprLoc(), diag::err_asm_unknown_register_name) << Label;
 7009           Diag(E->getExprLoc(), diag::err_asm_invalid_global_var_reg) << Label;
 7011           Diag(E->getExprLoc(), diag::err_asm_register_size_mismatch) << Label;
10763   Diag(Culprit->getExprLoc(), diag::err_init_element_not_constant)
11289       SourceLocation SL = I->getExprLoc();
11646       Diag(Init->getExprLoc(), diag::err_static_data_member_reinitialization)
11648       Diag(VDecl->getCanonicalDecl()->getInit()->getExprLoc(),
11816         Diag(Culprit->getExprLoc(),
11907           Diag(Init->getExprLoc(), diag::err_in_class_initializer_non_constant)
11957     checkNonTrivialCUnionInInitializer(Init, Init->getExprLoc());
12423         Diag(CacheCulprit->getExprLoc(), diag::err_thread_dynamic_init)
12530           Diag(CacheCulprit->getExprLoc(),
tools/clang/lib/Sema/SemaDeclAttr.cpp
  258     S.Diag(Expr->getExprLoc(), diag::err_ice_too_large)
  286     S.Diag(Expr->getExprLoc(), diag::err_ice_too_large)
 3027   SourceLocation Loc = E->getExprLoc();
 4712     S.Diag(E->getExprLoc(), diag::err_attribute_argument_n_type)
 4718     S.Diag(E->getExprLoc(), diag::err_ice_too_large) << I.toString(10, false)
 4723     S.Diag(E->getExprLoc(), diag::warn_attribute_argument_n_negative)
tools/clang/lib/Sema/SemaDeclCXX.cpp
14197     Diag(LangStr->getExprLoc(), diag::err_language_linkage_spec_not_ascii)
14213     Diag(LangStr->getExprLoc(), diag::err_language_linkage_spec_unknown)
14221                                                LangStr->getExprLoc(), Language,
tools/clang/lib/Sema/SemaExpr.cpp
  454         if (!checkAddressOfFunctionIsAvailable(FD, Diagnose, E->getExprLoc()))
  526             S.Diag(OIRE->getExprLoc(), diag::warn_objc_isa_assign)
  541             S.Diag(OIRE->getExprLoc(), diag::warn_objc_isa_use)
  589     Diag(E->getExprLoc(), diag::err_opencl_half_load_store)
  600       Diag(E->getExprLoc(), diag::warn_objc_isa_use)
  605       Diag(E->getExprLoc(), diag::warn_objc_isa_use);
  626     (void)isCompleteType(E->getExprLoc(), T);
  778                                                 E->getExprLoc(), E);
  938       RequireCompleteType(E->getExprLoc(), E->getType(),
 1470     Diag(ControllingExpr->getExprLoc(),
 3371     Diag(E->getExprLoc(), diag::err_pragma_loop_invalid_argument_type) << QT;
 3383     Diag(E->getExprLoc(), diag::err_pragma_loop_invalid_argument_value)
 3838     return CheckVecStepTraitOperandType(*this, ExprTy, E->getExprLoc(),
 3842   if (!CheckExtensionTraitOperandType(*this, ExprTy, E->getExprLoc(),
 3851     if (RequireCompleteType(E->getExprLoc(),
 3867     Diag(E->getExprLoc(), diag::err_sizeof_alignof_function_type)
 3876     Diag(E->getExprLoc(), diag::warn_side_effects_unevaluated_context);
 3878   if (CheckObjCTraitOperandConstraints(*this, ExprTy, E->getExprLoc(),
 3888           Diag(E->getExprLoc(), diag::warn_sizeof_array_param)
 3979     S.Diag(E->getExprLoc(), diag::err_sizeof_alignof_typeof_bitfield)
 4013       S.Diag(E->getExprLoc(), diag::err_alignof_member_of_incomplete_type)
 4104         CSI->addVLATypeCapture(Size->getExprLoc(), VAT, Context.getSizeType());
 4207       Diag(E->getExprLoc(), diag::err_openmp_default_simd_align_expr);
 4210     Diag(E->getExprLoc(), diag::err_sizeof_alignof_typeof_bitfield) << 0;
 4349     Diag(idx->getExprLoc(), diag::warn_deprecated_comma_subscript)
 4514         Diag(Base->getExprLoc(), diag::err_omp_typecheck_section_value)
 4519     auto Res = PerformOpenMPImplicitIntegerConversion(LowerBound->getExprLoc(),
 4522       return ExprError(Diag(LowerBound->getExprLoc(),
 4529       Diag(LowerBound->getExprLoc(), diag::warn_omp_section_is_char)
 4534         PerformOpenMPImplicitIntegerConversion(Length->getExprLoc(), Length);
 4536       return ExprError(Diag(Length->getExprLoc(),
 4543       Diag(Length->getExprLoc(), diag::warn_omp_section_is_char)
 4552     Diag(Base->getExprLoc(), diag::err_omp_section_function_type)
 4557   if (RequireCompleteType(Base->getExprLoc(), ResultTy,
 4568         Diag(LowerBound->getExprLoc(), diag::err_omp_section_not_subset_of_array)
 4582         Diag(Length->getExprLoc(), diag::err_omp_section_length_negative)
 5596       Diag(Fn->getExprLoc(), getLangOpts().CPlusPlus2a
 5796     Diag(Fn->getExprLoc(), diag::err_anyx86_interrupt_called);
 5808         Diag(Fn->getExprLoc(), diag::warn_arm_interrupt_calling_convention);
 6135       checkNonTrivialCUnion(E->getType(), E->getExprLoc(),
 6141                                        E->getInitializer()->getExprLoc());
 6331       Diag(Src.get()->getExprLoc(),
 6401       Diag(Src.get()->getExprLoc(),
 6435       Diag(Src.get()->getExprLoc(),
 6469       Diag(Src.get()->getExprLoc(),
 6684       Diag(PLE->getExprLoc(), diag::err_altivec_empty_initializer);
 6771       Diag(E->getExprLoc(),
 6814     Result = ActOnBinOp(S, E->getExprLoc(), tok::comma, Result.get(),
 6857     SourceLocation loc = NullExpr->getExprLoc();
 7317       S.Diag(E->getExprLoc(), diag::err_opencl_ternary_with_block);
 7855     opaqueValue = new (Context) OpaqueValueExpr(commonExpr->getExprLoc(),
 8560         Diag(RHS.get()->getExprLoc(),
10627         Diag(E.get()->getExprLoc(), diag::warn_pointer_compare)
10629             << FixItHint::CreateReplacement(E.get()->getExprLoc(),
10635           Diag(E.get()->getExprLoc(), diag::warn_pointer_compare)
10637               << FixItHint::CreateReplacement(E.get()->getExprLoc(),
11373            !RHS.get()->getExprLoc().isMacroID()) ||
11839   if (LHSExpr->getExprLoc().isMacroID() || RHSExpr->getExprLoc().isMacroID())
11839   if (LHSExpr->getExprLoc().isMacroID() || RHSExpr->getExprLoc().isMacroID())
12336       Diag(op->getExprLoc(), diag::err_opencl_taking_address_capture);
12899         checkNonTrivialCUnion(LHS.get()->getType(), LHS.get()->getExprLoc(),
13034       Diag(LHS.get()->getExprLoc(), diag::warn_objc_isa_assign)
13042       Diag(LHS.get()->getExprLoc(), diag::warn_objc_isa_assign);
15122       Diag(E->getExprLoc(), diag::warn_dereference_of_noderef_type)
15126       Diag(E->getExprLoc(), diag::warn_dereference_of_noderef_type_no_decl)
16630     checkNonTrivialCUnion(E->getType(), E->getExprLoc(),
17346       S.Diag(E->getExprLoc(), diag::err_unsupported_unknown_any_call)
17438       S.Diag(E->getExprLoc(), diag::err_unsupported_unknown_any_expr)
17538     S.Diag(E->getExprLoc(), diagID)
17620     S.Diag(E->getExprLoc(), diag::err_func_returning_array_function)
17692       S.Diag(E->getExprLoc(), diag::err_unknown_any_function)
17743       S.Diag(E->getExprLoc(), diag::err_unknown_any_var_function_type)
17750     S.Diag(E->getExprLoc(), diag::err_unsupported_unknown_any_decl)
17844     S.Diag(E->getExprLoc(), diag::err_unsupported_unknown_any_expr)
tools/clang/lib/Sema/SemaExprCXX.cpp
  527     Diag(E->getExprLoc(), WasEvaluated
  900       MarkFunctionReferenced(E->getExprLoc(), Destructor);
  901       CheckDestructorAccess(E->getExprLoc(), Destructor,
  903       if (DiagnoseUseOfDecl(Destructor, E->getExprLoc()))
  928       MarkFunctionReferenced(E->getExprLoc(), CD);
 1276   CheckCXXThisCapture(This->getExprLoc());
 1829           Diag(ArraySize ? (*ArraySize)->getExprLoc() : TypeRange.getBegin(),
 3175     SemaRef.Diag(NE->getExprLoc(), diag::note_allocated_here)
 3407         CheckDestructorAccess(Ex.get()->getExprLoc(), Dtor,
 3535     Diag(TheCall->getExprLoc(), diag::err_builtin_requires_language)
 3550   DiagnoseUseOfDecl(OperatorNewOrDelete, TheCall->getExprLoc());
 3551   MarkFunctionReferenced(TheCall->getExprLoc(), OperatorNewOrDelete);
 3865     ICS.DiagnoseAmbiguousConversion(*this, From->getExprLoc(),
 3875         DiagnoseAssignmentResult(Incompatible, From->getExprLoc(), ToType,
 4128       (void)isCompleteType(From->getExprLoc(), From->getType());
 4129       (void)isCompleteType(From->getExprLoc(), ToType);
 6494     MarkFunctionReferenced(E->getExprLoc(), Destructor);
 6495     CheckDestructorAccess(E->getExprLoc(), Destructor,
 6498     if (DiagnoseUseOfDecl(Destructor, E->getExprLoc()))
 6662     MarkFunctionReferenced(Bind->getExprLoc(), Destructor);
 6663     CheckDestructorAccess(Bind->getExprLoc(), Destructor,
 6666     if (DiagnoseUseOfDecl(Destructor, Bind->getExprLoc()))
 7214           Exp.get()->getExprLoc(), Exp.get()->getExprLoc(), Method, Exp.get());
 7214           Exp.get()->getExprLoc(), Exp.get()->getExprLoc(), Method, Exp.get());
 7218         Diag(Exp.get()->getExprLoc(), diag::note_lambda_to_block_conv);
 7262     Diag(Operand->getExprLoc(), diag::warn_side_effects_unevaluated_context);
 7400     RequireCompleteType(E->getExprLoc(), E->getType(),
 7495       S.MarkCaptureUsedInEnclosingContext(Var, VarExpr->getExprLoc(),
 7507       SourceLocation ExprLoc = VarExpr->getExprLoc();
tools/clang/lib/Sema/SemaExprObjC.cpp
  742     ConvertedValueExpr = PerformCopyInitialization(IE, ValueExpr->getExprLoc(),
 2293   SourceLocation MsgLoc = Msg->getExprLoc();
 2410       S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string)
 2775     Diag(Receiver->getExprLoc(), diag::warn_messaging_unqualified_id);
 3112           Diag(Args[0]->getExprLoc(), diag::note_used_here);
 3676     (castRange.isValid() ? castRange.getBegin() : castExpr->getExprLoc());
 3743           S.Diag(br ? castExpr->getExprLoc() : noteLoc,
 3783           S.Diag(br ? castExpr->getExprLoc() : noteLoc,
 4228                                                     : castExpr->getExprLoc());
tools/clang/lib/Sema/SemaInit.cpp
 2882             Context, CodeUnit, PromotedCharTy, SubExpr->getExprLoc());
 2904             Context, CodeUnit, PromotedCharTy, SubExpr->getExprLoc());
 3823   if (!S.isCompleteType(List->getExprLoc(), E)) {
 3837       List->getExprLoc(), List->getBeginLoc(), List->getEndLoc());
 5314          S.getSourceManager().isInSystemHeader(Init->getExprLoc());
 5399   S.Diag(src->getExprLoc(), diag::err_arc_nonlocal_writeback)
 5738       OpaqueValueExpr OVE(Initializer->getExprLoc(), InitEltT,
 7719   if (RequireCompleteType(E->getExprLoc(), T, diag::err_incomplete_type))
 8157             S.Diag(CurInit.get()->getExprLoc(),
 8241       S.Diag(InitList->getExprLoc(), diag::warn_cxx98_compat_ctor_list_init)
 8381           OpaqueValueExpr(Cur->getExprLoc(), Cur->getType(),
 8448       S.Diag(CurInit.get()->getExprLoc(),
tools/clang/lib/Sema/SemaOpenMP.cpp
 1714     targetDiag(E->getExprLoc(), diag::err_omp_unsupported_type)
 2176                 *this, DE->getExprLoc(), Type.getUnqualifiedType(),
 2184                 *this, VDPrivate, DE->getType(), DE->getExprLoc()));
 2428     SourceLocation ILoc = DE->getExprLoc();
 2560         Allocator ? Allocator->getExprLoc() : RefExpr->getExprLoc();
 2560         Allocator ? Allocator->getExprLoc() : RefExpr->getExprLoc();
 2564         PrevAllocator ? PrevAllocator->getExprLoc() : A->getLocation();
 2638         Diag(Allocator->getExprLoc(),
 2714     SemaRef.Diag(DVar.RefExpr->getExprLoc(), diag::note_omp_explicit_dsa)
 2819       SourceLocation ELoc = E->getExprLoc();
 3517           S.CreateBuiltinUnaryOp(CaptureExpr->getExprLoc(), UO_AddrOf, Init);
 3542                           CaptureExpr->getExprLoc());
 3552                            CaptureExpr->getExprLoc());
 3558     Res = S.CreateBuiltinUnaryOp(CaptureExpr->getExprLoc(), UO_Deref, Ref);
 4106   ELoc = RefExpr->getExprLoc();
 4208       S.Diag(AC->getAllocator()->getExprLoc(),
 4220         S.Diag(E->getExprLoc(),
 4678     Diag(P.second->getExprLoc(), diag::err_omp_no_dsa_for_variable)
 4764     Diag(E->getExprLoc(), diag::err_omp_param_or_this_in_clause)
 4788             Diag(E->getExprLoc(), diag::err_omp_aligned_twice)
 4790             Diag(AlignedArgs[CanonPVD]->getExprLoc(),
 4802             Diag(E->getExprLoc(), diag::err_omp_aligned_expected_array_or_ptr)
 4811         Diag(E->getExprLoc(), diag::err_omp_aligned_twice)
 4813         Diag(AlignedThis->getExprLoc(), diag::note_omp_explicit_dsa)
 4819     Diag(E->getExprLoc(), diag::err_omp_param_or_this_in_clause)
 4858             Diag(E->getExprLoc(), diag::err_omp_wrong_dsa)
 4861             Diag(LinearArgs[CanonPVD]->getExprLoc(),
 4868             Diag(E->getExprLoc(), diag::err_omp_wrong_dsa)
 4871             Diag(UniformedArgs[CanonPVD]->getExprLoc(),
 4881           (void)CheckOpenMPLinearDecl(CanonPVD, E->getExprLoc(), LinKind,
 4888         Diag(E->getExprLoc(), diag::err_omp_wrong_dsa)
 4892         Diag(UniformedLinearThis->getExprLoc(), diag::note_omp_explicit_dsa)
 4901       (void)CheckOpenMPLinearDecl(/*D=*/nullptr, E->getExprLoc(), LinKind,
 4905     Diag(E->getExprLoc(), diag::err_omp_param_or_this_in_clause)
 4922           Diag(Step->getExprLoc(), diag::err_omp_expected_uniform_param)
 4930           Diag(Step->getExprLoc(), diag::err_omp_expected_int_param)
 4939       NewStep = PerformOpenMPImplicitIntegerConversion(Step->getExprLoc(), Step)
 5037         Diag(VariantRef->getExprLoc(), diag::err_omp_function_expected)
 5053       Diag(VariantRef->getExprLoc(),
 5076     Diag(VariantRef->getExprLoc(), diag::err_omp_function_expected)
 5084     Diag(VariantRef->getExprLoc(), diag::err_omp_function_expected)
 5090     Diag(VariantRef->getExprLoc(), diag::err_omp_function_expected)
 5097     Diag(VariantRef->getExprLoc(),
 5160               VariantRef->getExprLoc(),
 5162           PartialDiagnosticAt(VariantRef->getExprLoc(),
 5515       SemaRef.Diag(NewStep->getExprLoc(),
 5525           SemaRef.CreateBuiltinUnaryOp(NewStep->getExprLoc(), UO_Minus, NewStep)
 5550       SemaRef.Diag(E->getExprLoc(), diag::err_omp_stmt_depends_on_loop_counter)
 5563       SemaRef.Diag(E->getExprLoc(),
 5578       SemaRef.Diag(E->getExprLoc(),
 6575         SemaRef.Diag(CollapseLoopCountExpr->getExprLoc(),
 6579         SemaRef.Diag(OrderedLoopCountExpr->getExprLoc(),
 6879                          E->getExprLoc(),
 6881                          E->getExprLoc(), E)
 6884                        ? S.CreateBuiltinBinOp(ConvE->getExprLoc(), BO_Comma,
 6923         SemaRef.Diag(OrderedLoopCountExpr->getExprLoc(),
 6926         SemaRef.Diag(CollapseLoopCountExpr->getExprLoc(),
 7055           SemaRef.BuildBinOp(CurScope, PreCond.get()->getExprLoc(), BO_LAnd,
 7059     SourceLocation Loc = N->getExprLoc();
 7107         CurScope, LastIteration.get()->getExprLoc(), BO_Sub,
 7127         CurScope, SaveRef.get()->getExprLoc(), BO_Add, SaveRef.get(),
 7174         LastIteration.get()->getExprLoc(), InitLoc, IsUBGreater.get(),
 7494           SemaRef, VD, IS.CounterVar->getType(), IS.CounterVar->getExprLoc(),
 7635       S.Diag(SimdlenLength->getExprLoc(),
 8292           NoteLoc = X->getExprLoc();
 8304       NoteLoc = ErrorLoc = AtomicBinOp->getRHS()->getExprLoc();
 8375         NoteLoc = ErrorLoc = AtomicBody->getExprLoc();
 8400         OpaqueValueExpr(X->getExprLoc(), X->getType(), VK_RValue);
 8402         OpaqueValueExpr(E->getExprLoc(), E->getType(), VK_RValue);
 8505             NoteLoc = NotLValueExpr->getExprLoc();
 8517           NoteLoc = NotScalarExpr->getExprLoc();
 8522         ErrorLoc = AtomicBody->getExprLoc();
 8525                               : AtomicBody->getExprLoc();
 8567             NoteLoc = X->getExprLoc();
 8579           NoteLoc = NotScalarExpr->getExprLoc();
 8584         ErrorLoc = AtomicBody->getExprLoc();
 8587                               : AtomicBody->getExprLoc();
 8662         ErrorLoc = AtomicBody->getExprLoc();
 8665                               : AtomicBody->getExprLoc();
 8813                     NoteLoc = SecondBinOp->getLHS()->getExprLoc();
11088     SourceLocation Loc = ValExpr->getExprLoc();
11161     Diag(E->getExprLoc(), diag::err_omp_negative_expression_in_clause)
11167     Diag(E->getExprLoc(), diag::warn_omp_alignment_not_power_of_two)
11253   if (!findOMPAllocatorHandleT(*this, A->getExprLoc(), DSAStack))
12385           buildVarDecl(*this, RefExpr->getExprLoc(), ElemType, D->getName());
12389       VarDecl *VDInitTemp = buildVarDecl(*this, RefExpr->getExprLoc(), ElemType,
12404       VarDecl *VDInit = buildVarDecl(*this, RefExpr->getExprLoc(), Type,
12407                                        RefExpr->getExprLoc());
12414         Diag(RefExpr->getExprLoc(),
12422         RefExpr->getExprLoc());
13251           S.Diag(DVar.RefExpr->getExprLoc(), diag::note_omp_referenced);
13657             S.Diag(RefExpr->getExprLoc(),
13982                            DE->getType().getUnqualifiedType(), DE->getExprLoc(),
13989           SemaRef, S, RefExpr->getExprLoc(), *CurPrivate, InitExpr, IV, Step,
14000           buildCounterUpdate(SemaRef, S, RefExpr->getExprLoc(), CapturedRef,
14074       Diag(PrevRef->getExprLoc(), diag::note_omp_explicit_dsa)
14125     SourceLocation ELoc = RefExpr->getExprLoc();
14168         *this, SrcVD, ElemType.getUnqualifiedType(), DE->getExprLoc());
14173         buildDeclRefExpr(*this, DstVD, ElemType, DE->getExprLoc());
14177         BuildBinOp(/*S=*/nullptr, DE->getExprLoc(), BO_Assign, PseudoDstExpr,
14181     AssignmentOp = ActOnFinishFullExpr(AssignmentOp.get(), DE->getExprLoc(),
14363     SourceLocation ELoc = RefExpr->getExprLoc();
14405         OOLoc = MCE->getCallee()->getExprLoc();
14629   SourceLocation ELoc = E->getExprLoc();
14778             SemaRef.Diag(CurE->getIdx()->getExprLoc(),
14780             SemaRef.Diag(CurE->getIdx()->getExprLoc(),
14839             SemaRef.Diag(CurE->getLength()->getExprLoc(),
14841             SemaRef.Diag(CurE->getLength()->getExprLoc(),
14848             SemaRef.Diag(CurE->getLowerBound()->getExprLoc(),
14850             SemaRef.Diag(CurE->getLowerBound()->getExprLoc(),
14881   SourceLocation ELoc = E->getExprLoc();
14930             SemaRef.Diag(CI->getAssociatedExpression()->getExprLoc(),
14933             SemaRef.Diag(SI->getAssociatedExpression()->getExprLoc(),
14983             SemaRef.Diag(RE->getExprLoc(), diag::note_used_here)
14996             std::prev(CI)->getAssociatedExpression()->getExprLoc();
15020             SemaRef.Diag(RE->getExprLoc(), diag::note_used_here)
15031             SemaRef.Diag(RE->getExprLoc(), diag::note_used_here)
15070           SemaRef.Diag(RE->getExprLoc(), diag::note_used_here)
15106     SemaRef.Diag(EnclosingExpr->getExprLoc(), diag::note_used_here)
15290     SourceLocation ELoc = RE->getExprLoc();
15422     if (!checkTypeMappable(VE->getExprLoc(), VE->getSourceRange(), SemaRef,
16347   checkDeclInTargetContext(E->getExprLoc(), E->getSourceRange(), *this, D);
16432         buildVarDecl(*this, RefExpr->getExprLoc(), Type, ".devptr.temp");
16434         *this, VDInit, RefExpr->getType(), RefExpr->getExprLoc());
16517       Diag(ConflictExpr->getExprLoc(), diag::note_used_here)
16557     if (!findOMPAllocatorHandleT(*this, Allocator->getExprLoc(), DSAStack))
tools/clang/lib/Sema/SemaOverload.cpp
 1284   OverloadCandidateSet Conversions(From->getExprLoc(),
 2931       DiagRuntimeBehavior(From->getExprLoc(), From,
 2935       Diag(From->getExprLoc(), diag::warn_non_literal_null_pointer)
 2955                 From->getExprLoc(), From->getSourceRange(), DeclarationName(),
 2967         Diag(From->getExprLoc(), diag::ext_ms_impcast_fn_obj)
 3082     Diag(From->getExprLoc(), diag::err_ambiguous_memptr_conv)
 3088     Diag(From->getExprLoc(), diag::err_memptr_conv_via_virtual)
 3095     CheckBaseClassAccess(From->getExprLoc(), FromClass, ToClass,
 3360     if (!S.isCompleteType(From->getExprLoc(), ToType)) {
 3540   OverloadCandidateSet CandidateSet(From->getExprLoc(),
 5550       S.ActOnFinishFullExpr(Result.get(), From->getExprLoc(),
 5753     SemaRef.CheckMemberOperatorAccess(From->getExprLoc(), From, nullptr, Found);
 5772   SemaRef.CheckMemberOperatorAccess(From->getExprLoc(), From, nullptr, Found);
 6186       SourceLocation Loc = Args.front()->getExprLoc();
 7057     if (DeduceReturnType(Conversion, From->getExprLoc()))
11725       ResolveExceptionSpec(AddressOfExpr->getExprLoc(), FPT);
11797   DiagnoseUseOfDecl(Found, E->getExprLoc());
11875         Diag(ovl->getExprLoc(), diag::err_addr_ovl_ambiguous)
11887       completeFunctionType(*this, Matched, ovl->getExprLoc(), Complain))
11928       Diag(ovl.Expression->getExprLoc(),
12066     AddArgumentDependentLookupCandidates(ULE->getName(), ULE->getExprLoc(),
12257           SemaRef, Fn->getExprLoc(), SS, R, OverloadCandidateSet::CSK_Normal,
12421                                                        Arg->getExprLoc()))
12489   OverloadCandidateSet CandidateSet(Fn->getExprLoc(),
13876   SourceLocation Loc = Base->getExprLoc();
14239     ResolveExceptionSpec(E->getExprLoc(), FPT);
tools/clang/lib/Sema/SemaPseudoObject.cpp
  677             S.Diag(RefExpr->getExprLoc(), diag::err_property_setter_ambiguous_use)
 1072       Diag(FromE->getExprLoc(), diag::err_objc_subscript_pointer)
 1073         << T << FixItHint::CreateInsertion(FromE->getExprLoc(), "@");
 1075       Diag(FromE->getExprLoc(), diag::err_objc_subscript_type_conversion)
 1081   if (RequireCompleteType(FromE->getExprLoc(), T,
 1111     Diag(FromE->getExprLoc(), diag::err_objc_subscript_type_conversion)
 1115   Diag(FromE->getExprLoc(), diag::err_objc_multiple_subscript_type_conversion)
 1168     S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type)
 1217       S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_method_not_found)
 1231       S.Diag(RefExpr->getKeyExpr()->getExprLoc(),
 1240       S.Diag(RefExpr->getKeyExpr()->getExprLoc(),
 1273     S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type)
 1332       S.Diag(BaseExpr->getExprLoc(),
 1347       S.Diag(RefExpr->getKeyExpr()->getExprLoc(),
 1355       S.Diag(RefExpr->getBaseExpr()->getExprLoc(),
 1367           S.Diag(RefExpr->getKeyExpr()->getExprLoc(),
 1370           S.Diag(RefExpr->getBaseExpr()->getExprLoc(),
tools/clang/lib/Sema/SemaStmt.cpp
   49   FE = ActOnFinishFullExpr(FE.get(), FE.get()->getExprLoc(), DiscardedValue);
  231   SourceLocation ExprLoc = E->IgnoreParenImpCasts()->getExprLoc();
  434     return ActOnFinishFullExpr(Val.get(), Val.get()->getExprLoc(), false,
  463       ER = ActOnFinishFullExpr(ER.get(), ER.get()->getExprLoc(), false);
  578       !Diags.isIgnored(diag::warn_comma_operator, CondExpr->getExprLoc()))
  841   S.Diag(Case->getExprLoc(), diag::warn_comparison_of_mixed_enum_types_switch)
 1120       Diag(CondExpr->getExprLoc(), diag::warn_missing_case_for_condition)
 1155           Diag(CaseExpr->getExprLoc(), diag::warn_not_in_enum)
 1166           Diag(CaseExpr->getExprLoc(), diag::warn_not_in_enum)
 1176           Diag(CaseExpr->getExprLoc(), diag::warn_not_in_enum)
 1232         DiagnosticBuilder DB = Diag(CondExpr->getExprLoc(),
 1262   if (Diags.isIgnored(diag::warn_not_in_enum_assignment, SrcExpr->getExprLoc()))
 1283             Diag(SrcExpr->getExprLoc(), diag::warn_not_in_enum_assignment)
 1308             Diag(SrcExpr->getExprLoc(), diag::warn_not_in_enum_assignment)
 1325       !Diags.isIgnored(diag::warn_comma_operator, CondVal.second->getExprLoc()))
 1354       !Diags.isIgnored(diag::warn_comma_operator, Cond->getExprLoc()))
 1797                        Second.get().second->getExprLoc()))
 3144                                       Value->getExprLoc())) {
 3173         Diag(Value->getExprLoc(), diag::warn_return_std_move_in_cxx11)
 3176         Diag(Value->getExprLoc(), diag::note_add_std_move_in_cxx11)
 3181                                            Value->getExprLoc())) {
 3206             Diag(Value->getExprLoc(), diag::warn_return_std_move)
 3209             Diag(Value->getExprLoc(), diag::note_add_std_move)
 3459     Diag(RetExpr->getExprLoc(),
 3481       Diag(RetExpr->getExprLoc(), diag::err_auto_fn_deduction_failure)
 4194     return StmtError(Diag(FilterExpr->getExprLoc(),
tools/clang/lib/Sema/SemaTemplate.cpp
 2528       if (Matches(PD->getDepth(), E->getExprLoc()))
 5775   if (!S.isCompleteType(Arg->getExprLoc(), ParamType))
 5793     SourceLocation DiagLoc = Arg->getExprLoc();
 5833     S.Diag(Arg->getExprLoc(), diag::err_template_arg_wrongtype_null_constant)
 5843     S.Diag(Arg->getExprLoc(), diag::err_template_arg_untyped_null_constant)
 6021       S.Diag(Arg->getExprLoc(), diag::warn_cxx98_compat_template_arg_null);
 6275     S.Diag(ResultArg->getExprLoc(), diag::warn_cxx98_compat_template_arg_null);
 6367       Diag(Arg->getExprLoc(),
 6378     ParamType = CheckNonTypeTemplateParameterType(ParamType, Arg->getExprLoc());
 6838       Diag(Arg->getExprLoc(), diag::err_template_arg_not_convertible)
 6847       Diag(Arg->getExprLoc(), diag::warn_cxx98_compat_template_arg_null);
10014         Diag(FailedCond->getExprLoc(),
10206   CurrentInstantiationRebuilder Rebuilder(*this, E->getExprLoc(),
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 3454       S.DeduceReturnType(Fn, R.Expression->getExprLoc(), /*Diagnose*/ false))
 4472   SourceLocation Loc = Init->getExprLoc();
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
 1408     VarDecl *VD = cast_or_null<VarDecl>(TransformDecl(E->getExprLoc(), D));
 1411     return RebuildVarDeclRefExpr(VD, E->getExprLoc());
 1424     VarDecl *D = cast_or_null<VarDecl>(TransformDecl(E->getExprLoc(), *I));
 1454                                                     E->getExprLoc(), *Pack);
 1465   return RebuildVarDeclRefExpr(cast<VarDecl>(TransformedDecl), E->getExprLoc());
tools/clang/lib/Sema/SemaTemplateVariadic.cpp
 1149     S.Diag(E->getExprLoc(), diag::err_fold_expression_bad_operand)
tools/clang/lib/Sema/SemaType.cpp
 7736           SourceLocation PointOfInstantiation = E->getExprLoc();
 7803   return RequireCompleteType(E->getExprLoc(), T, Diagnoser);
 8301     Diag(E->getExprLoc(), diag::err_sizeof_alignof_typeof_bitfield) << 2;
 8306       DiagnoseUseOfDecl(TT->getDecl(), E->getExprLoc());
 8389     Diag(E->getExprLoc(), diag::warn_side_effects_unevaluated_context);
tools/clang/lib/Sema/TreeTransform.h
 8796             cast<NamedDecl>(getDerived().TransformDecl(E->getExprLoc(), D));
 8843             cast<NamedDecl>(getDerived().TransformDecl(E->getExprLoc(), D));
 8888             cast<NamedDecl>(getDerived().TransformDecl(E->getExprLoc(), D));
 9049             cast<NamedDecl>(TT.getDerived().TransformDecl(E->getExprLoc(), D));
10593   return getDerived().RebuildCXXDefaultInitExpr(E->getExprLoc(), Field);
tools/clang/lib/Serialization/ASTWriterStmt.cpp
 1544   Record.AddSourceLocation(E->getExprLoc());
tools/clang/lib/StaticAnalyzer/Checkers/ConversionChecker.cpp
   64   if (Cast->getExprLoc().isMacroID())
tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
  652   SourceLocation DomLoc = CE->getArg(0)->getExprLoc();
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp
  328     if ((Expr1->getExprLoc().isMacroID()) || (Expr2->getExprLoc().isMacroID()))
  328     if ((Expr1->getExprLoc().isMacroID()) || (Expr2->getExprLoc().isMacroID()))
tools/clang/tools/extra/clang-tidy/abseil/DurationFactoryScaleCheck.cpp
  144   if (Call->getExprLoc().isMacroID())
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
  233   if (Arg->getExprLoc().isMacroID())
tools/clang/tools/extra/clang-tidy/bugprone/FoldInitTypeCheck.cpp
  111     diag(CallNode.getExprLoc(), "folding type %0 into type %1 might result in "
tools/clang/tools/extra/clang-tidy/bugprone/MoveForwardingReferenceCheck.cpp
  121   auto Diag = diag(CallMove->getExprLoc(),
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousEnumUsageCheck.cpp
  164     diag(EnumExpr->getExprLoc(), BitmaskNoteMessage, DiagnosticIDs::Note);
  167     diag(EnumExpr->getExprLoc(), BitmaskNoteMessage, DiagnosticIDs::Note);
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
  204               return D1->getExprLoc() < D2->getExprLoc();
  204               return D1->getExprLoc() < D2->getExprLoc();
  358   SourceLocation UseLoc = Use.DeclRef->getExprLoc();
  359   SourceLocation MoveLoc = MovingCall->getExprLoc();
  414   if (!MovingCall || !MovingCall->getExprLoc().isValid())
tools/clang/tools/extra/clang-tidy/cert/CommandProcessorCheck.cpp
   39   diag(E->getExprLoc(), "calling %0 uses a command processor") << Fn;
tools/clang/tools/extra/clang-tidy/cert/FloatLoopCounter.cpp
   28   diag(FS->getInc()->getExprLoc(), "loop induction expression should not have "
tools/clang/tools/extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp
   97     diag(Func->getExprLoc(),
  105     diag(Func->getExprLoc(),
  114     diag(Func->getExprLoc(),
tools/clang/tools/extra/clang-tidy/cert/SetLongJmpCheck.cpp
   74   diag(E->getExprLoc(), DiagWording) << cast<NamedDecl>(E->getCalleeDecl());
tools/clang/tools/extra/clang-tidy/cert/StrToNumCheck.cpp
  225   diag(Call->getExprLoc(),
tools/clang/tools/extra/clang-tidy/cert/ThrownExceptionTypeCheck.cpp
   34   diag(E->getExprLoc(),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp
  383     handleBinaryOperator(Context, CO->getLHS()->getExprLoc(), Lhs,
  385     handleBinaryOperator(Context, CO->getRHS()->getExprLoc(), Lhs,
  394   if (Cast.getExprLoc().isMacroID())
  402   SourceLocation SourceLoc = Lhs.getExprLoc();
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsArrayToPointerDecayCheck.cpp
   75   diag(MatchedCast->getExprLoc(), "do not implicitly decay an array into a "
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp
   85     auto Diag = diag(Matched->getExprLoc(),
  114     diag(Matched->getExprLoc(), "std::array<> index %0 is negative")
  131     diag(Matched->getExprLoc(),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.cpp
   57   diag(MatchedExpr->getExprLoc(), "do not use pointer arithmetic");
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeVarargCheck.cpp
   55     diag(Matched->getExprLoc(), "do not call c-style vararg functions");
   59     diag(Matched->getExprLoc(),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp
   84       diag(Call.getExprLoc(),
  127     diag(Call->getExprLoc(), "slicing object from type %0 to %1 discards "
tools/clang/tools/extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp
   62   if (CastExpr->getExprLoc().isMacroID())
tools/clang/tools/extra/clang-tidy/google/AvoidNSObjectNewCheck.cpp
  116     diag(CallExpr->getExprLoc(), "do not create objects with +new")
tools/clang/tools/extra/clang-tidy/linuxkernel/MustCheckErrsCheck.cpp
   38     diag(MatchedCallExpr->getExprLoc(), "result from function %0 is unused")
   45     diag(MatchedTransitiveCallExpr->getExprLoc(),
tools/clang/tools/extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp
   18 AST_MATCHER(Expr, isMacroID) { return Node.getExprLoc().isMacroID(); }
   73     SourceLocation StartLoc = MatchedDecl->getCallee()->getExprLoc();
   83     SourceLocation StartLoc = MatchedDecl->getCallee()->getExprLoc();
tools/clang/tools/extra/clang-tidy/misc/NonCopyableObjects.cpp
   64     diag(E->getExprLoc(),
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
  320 AST_MATCHER(Expr, isMacro) { return Node.getExprLoc().isMacroID(); }
  325   SourceLocation Loc = Node.getExprLoc();
  613   SourceLocation LhsLoc = LhsExpr->getExprLoc();
  614   SourceLocation RhsLoc = RhsExpr->getExprLoc();
  631   SourceLocation LhsLoc = LhsExpr->getExprLoc();
  632   SourceLocation RhsLoc = RhsExpr->getExprLoc();
  884     if((Value != 0 && ~Value != 0) || Sym->getExprLoc().isMacroID())
  959         diag(LhsExpr->getExprLoc(), "expression is redundant");
  961         diag(RhsExpr->getExprLoc(), "expression is redundant");
  970         diag(RhsExpr->getExprLoc(), "expression is redundant");
  972         diag(LhsExpr->getExprLoc(), "expression is redundant");
tools/clang/tools/extra/clang-tidy/misc/StaticAssertCheck.cpp
  106         SM.getImmediateSpellingLoc(IsAlwaysFalse->getExprLoc());
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
  578         Base->getExprLoc(), 0, Context->getSourceManager(),
  584                      SourceRange(Base->getExprLoc(), ArrowLoc)));
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
  147   SourceLocation ConstructCallStart = Construct->getExprLoc();
tools/clang/tools/extra/clang-tidy/modernize/ReturnBracedInitListCheck.cpp
   52   SourceLocation Loc = MatchedConstructExpr->getExprLoc();
tools/clang/tools/extra/clang-tidy/modernize/UseBoolLiteralsCheck.cpp
   65       diag(Expression->getExprLoc(),
tools/clang/tools/extra/clang-tidy/modernize/UseEmplaceCheck.cpp
  132       Call->getExprLoc(), Call->getArg(0)->getExprLoc());
  152       MakeCall ? MakeCall->getExprLoc() : CtorCall->getExprLoc();
  152       MakeCall ? MakeCall->getExprLoc() : CtorCall->getExprLoc();
tools/clang/tools/extra/clang-tidy/objc/SuperSelfCheck.cpp
   95   auto Diag = diag(Message->getExprLoc(), "suspicious invocation of %0 in "
tools/clang/tools/extra/clang-tidy/performance/InefficientStringConcatenationCheck.cpp
   80     diag(LhsStr->getExprLoc(), DiagMsg);
tools/clang/tools/extra/clang-tidy/performance/NoexceptMoveConstructorCheck.cpp
   74         diag(E->getExprLoc(),
tools/clang/tools/extra/clang-tidy/performance/TypePromotionInMathFnCheck.cpp
  185   auto Diag = diag(Call->getExprLoc(), "call to '%0' promotes float to double")
tools/clang/tools/extra/clang-tidy/portability/SIMDIntrinsicsCheck.cpp
  153     diag(Call->getExprLoc(), Message);
tools/clang/tools/extra/clang-tidy/readability/RedundantStringInitCheck.cpp
   63   diag(CtorExpr->getExprLoc(), "redundant string initialization")
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp
  257       if (SM.getFileID(Child->ASTNode.get<Expr>()->getExprLoc()) != F)
tools/clang/unittests/Tooling/RecursiveASTVisitorTests/ParenExpr.cpp
   18     Match("", Parens->getExprLoc());