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

References

gen/tools/clang/include/clang/Sema/AttrParsedAttrImpl.inc
   27     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
   40     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
   53     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
   66     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
   84     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  108     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
  124     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  163     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  172     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  187     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
  201     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  246     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  255     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  268     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  281     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  326     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  339     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
  352     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
  385     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
  409     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  418     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  447     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  456     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  465     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  479     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  506     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
  519     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  532     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
  545     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
  558     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  571     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  584     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  596   S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr;
  606     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  620     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  633     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  646     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  655     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  669     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  682     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
  695     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  708     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  721     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
  755     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
  776     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  785     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
  794     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  807     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  820     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
  832   S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr;
  860     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  873     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  886     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  899     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  912     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  925     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  946     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  955     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  971     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  980     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
  993     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1002     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1016     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1030     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1043     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1056     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1071     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1080     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1089     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1116     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1129     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1142     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1151     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1160     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1173     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1182     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1191     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1203   S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr;
 1213     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1232     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1245     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1263     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1276     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1291     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1304     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1319     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1328     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1337     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1350     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1381     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1396     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1408   S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr;
 1434     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1443     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1456     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1474     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1488     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1501     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1514     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1552     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1585     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1594     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1607     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1620     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1633     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1642     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1661     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1677     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1690     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1703     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1716     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1729     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1742     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1755     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1768     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1783     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1797     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1811     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1824     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1837     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1850     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1869     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 1883     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1892     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1905     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1924     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1933     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1949     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1965     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1978     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 1991     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2004     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2018     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2031     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2044     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2056   S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr;
 2066     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2079     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2092     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2105     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2117   S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr;
 2130     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2143     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2155   S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr;
 2166     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2179     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2192     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2205     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2219     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2232     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2246     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2259     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2272     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2302     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2315     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2324     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2336   S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr;
 2346     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2360     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2373     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2386     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2425     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2438     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2475     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2488     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2497     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2506     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2515     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2524     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2533     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2542     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2557     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2566     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2603     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2615   S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr;
 2625     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2638     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2675     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2706     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2720     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2734     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2747     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2760     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2794     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2807     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2816     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2830     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2843     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2856     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2875     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2888     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2901     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2914     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2926   S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr;
 2932     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2945     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 2974     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 2983     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 3018     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 3027     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 3039   S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr;
 3045     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 3058     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 3071     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 3084     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 3122     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 3137     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 3151     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 3169     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 3182     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type_str)
 3195     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
 3233     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str)
tools/clang/include/clang/Sema/Sema.h
 1675       const SemaDiagnosticBuilder &DB = S.Diag(Loc, DiagID);
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
   91       S.Diag(L, diag) << R1 << R2;
   98           S.Diag(Open, diag::note_unreachable_silence)
  149     S.Diag(B->getExprLoc(), diag::warn_tautological_overlap_comparison)
  159     S.Diag(B->getExprLoc(), diag::warn_comparison_bitwise_always)
  168     S.Diag(B->getExprLoc(), diag::warn_comparison_bitwise_or) << DiagRange;
  272     S.Diag(Body->getBeginLoc(), diag::warn_infinite_recursive_function);
  340     S.Diag(OpLoc, diag::warn_throw_in_noexcept_func) << FD;
  347         S.Diag(FD->getLocation(), diag::note_throw_in_dtor)
  351       S.Diag(FD->getLocation(), diag::note_throw_in_function)
  675       S.Diag(Loc, DiagID) << FSI->CoroutinePromise->getType();
  677       S.Diag(Loc, DiagID);
  704           S.Diag(LBrace, CD.diag_NeverFallThroughOrReturn) << 0 << FD;
  706           S.Diag(LBrace, CD.diag_NeverFallThroughOrReturn) << 1 << MD;
  708           S.Diag(LBrace, CD.diag_NeverFallThroughOrReturn);
  758     S.Diag(VD->getLocation(), diag::note_block_var_fixit_add_initialization)
  779   S.Diag(Loc, diag::note_var_fixit_add_initialization) << VD->getDeclName()
  816     S.Diag(Use.getUser()->getBeginLoc(), diag::warn_uninit_var)
  823     S.Diag(VD->getLocation(), diag::warn_sometimes_uninit_var)
  828     S.Diag(Use.getUser()->getBeginLoc(), diag::note_uninit_var_use)
  959     S.Diag(Range.getBegin(), diag::warn_sometimes_uninit_var)
  962     S.Diag(User->getBeginLoc(), diag::note_uninit_var_use)
  965       S.Diag(Fixit1.RemoveRange.getBegin(), diag::note_uninit_fixit_remove_cond)
  972     S.Diag(Use.getUser()->getBeginLoc(), diag::warn_maybe_uninit_var)
 1004         S.Diag(DRE->getBeginLoc(), diag::warn_uninit_self_reference_in_init)
 1014       S.Diag(BE->getBeginLoc(),
 1026     S.Diag(VD->getBeginLoc(), diag::note_var_declared_here)
 1117                   S.Diag(AS->getBeginLoc(),
 1285     S.Diag(Label->getBeginLoc(),
 1305         S.Diag(L, diag::note_insert_fallthrough_fixit)
 1309       S.Diag(L, diag::note_insert_break_fixit)
 1315     S.Diag(F->getBeginLoc(), diag::err_fallthrough_attr_invalid_placement);
 1484     S.Diag(FirstRead->getBeginLoc(), DiagKind)
 1492       S.Diag(Use.getUseExpr()->getBeginLoc(),
tools/clang/lib/Sema/DeclSpec.cpp
 1097     S.Diag(TSTLoc, diag::err_decltype_auto_cannot_be_combined)
 1107         S.Diag(TSSLoc, diag::err_invalid_vector_bool_decl_spec)
 1114         S.Diag(TSTLoc, diag::err_invalid_vector_bool_decl_spec)
 1122         S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_bool_decl_spec)
 1130         S.Diag(TSTLoc, diag::err_invalid_vector_long_long_decl_spec);
 1140         S.Diag(TSWRange.getBegin(),
 1144         S.Diag(TSTLoc, diag::err_invalid_vector_double_decl_spec);
 1150         S.Diag(TSTLoc, diag::err_invalid_vector_float_decl_spec);
 1154         S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_long_decl_spec);
 1156         S.Diag(TSWRange.getBegin(),
 1180       S.Diag(TSSLoc, diag::err_invalid_sign_spec)
 1196       S.Diag(TSWRange.getBegin(), diag::err_invalid_width_spec)
 1208       S.Diag(TSWRange.getBegin(), diag::err_invalid_width_spec)
 1221       S.Diag(TSCLoc, diag::ext_plain_complex)
 1229         S.Diag(TSTLoc, diag::ext_integer_complex);
 1231       S.Diag(TSCLoc, diag::err_invalid_complex_spec)
 1250         S.Diag(getStorageClassSpecLoc(),
 1255         S.Diag(getThreadStorageClassSpecLoc(),
 1279     S.Diag(TSTLoc, diag::ext_auto_type_specifier);
 1282     S.Diag(StorageClassSpecLoc, diag::warn_auto_storage_class)
 1285     S.Diag(TSTLoc, diag::warn_cxx17_compat_unicode_type);
 1287     S.Diag(TSTLoc, diag::warn_cxx98_compat_unicode_type)
 1290     S.Diag(ConstexprLoc, diag::warn_cxx98_compat_constexpr);
 1292     S.Diag(ConstexprLoc, diag::warn_cxx20_compat_consteval);
 1294     S.Diag(ConstexprLoc, diag::warn_cxx20_compat_constinit);
 1317     S.Diag(SCLoc, diag::err_friend_decl_spec)
 1345     S.Diag(SCLoc, diag::err_friend_decl_spec)
tools/clang/lib/Sema/JumpDiagnostics.cpp
  675     S.Diag(GotoJumps[0]->getBeginLoc(),
  811   S.Diag(Jump->getBeginLoc(), diag::err_indirect_goto_in_protected_scope)
  813   S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target)
  824       S.Diag(Scopes[ToScopes[I]].Loc, Scopes[ToScopes[I]].InDiag);
  841       S.Diag(Scopes[I].Loc, Scopes[I].OutDiag);
  852       S.Diag(Scopes[I].Loc, Scopes[I].InDiag);
  858     S.Diag(Jump->getBeginLoc(),
  861     S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target)
  889         S.Diag(From->getBeginLoc(), diag::warn_jump_out_of_seh_finally);
  916     S.Diag(DiagLoc, JumpDiagWarning);
  922     S.Diag(DiagLoc, JumpDiagError);
  928     S.Diag(DiagLoc, JumpDiagCXX98Compat);
  935     S.Diag(GS->getGotoLoc(), diag::err_goto_ms_asm_label)
  937     S.Diag(GS->getLabel()->getLocation(), diag::note_goto_ms_asm_label)
tools/clang/lib/Sema/Sema.cpp
  392     Diag(Loc, diag::warn_stack_exhausted);
  472   Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType;
  496   Diag(E->getBeginLoc(), diag::warn_zero_as_null_pointer_constant)
  732       S.Diag(VD->getLocation(), isExternallyVisible(VD->getType()->getLinkage())
  740       S.Diag(VD->getLocation(), diag::warn_undefined_internal)
  747       S.Diag(VD->getLocation(), diag::warn_undefined_inline) << VD;
  751       S.Diag(VD->getLocation(), diag::err_undefined_inline_var) << VD;
  754       S.Diag(UseLoc, diag::note_used_here);
  858     Diag(TD->getLocation(), diag::warn_unused_local_typedef)
 1024       Diag(WeakID.second.getLocation(), diag::warn_attribute_wrong_decl_type)
 1027       Diag(WeakID.second.getLocation(), diag::warn_weak_identifier_undeclared)
 1046     Diag(ModuleScopes.back().BeginLoc,
 1060       Diag(getSourceManager().getLocForStartOfFile(
 1120       Diag(VD->getLocation(), diag::warn_tentative_incomplete_array);
 1157             Diag(DiagD->getLocation(), diag::warn_unneeded_member_function)
 1164               Diag(DiagD->getLocation(),
 1168               Diag(DiagD->getLocation(), diag::warn_unneeded_internal_decl)
 1173             Diag(DiagD->getLocation(), diag::warn_unused_template)
 1176             Diag(DiagD->getLocation(),
 1186           Diag(DiagD->getLocation(), diag::warn_unneeded_internal_decl)
 1192             Diag(DiagD->getLocation(), diag::warn_unused_const_variable)
 1196             Diag(DiagD->getLocation(), diag::warn_unused_template)
 1199             Diag(DiagD->getLocation(), diag::warn_unused_variable)
 1219         Diag(D->getLocation(), diag::warn_unused_private_field)
 1348       Diag(Loc, diag::warn_cxx98_compat_sfinae_access_control);
 1390   SemaDiagnosticBuilder Builder(Diag(Loc, PD.getDiagID()));
 1469     ImmediateDiag.emplace(S.Diag(Loc, DiagID));
 1897     Diag(Comment.getBegin(), diag::warn_not_a_doxygen_trailing_member_comment) <<
 2057     S.Diag(Fn->getLocation(), diag::note_possible_target_of_call);
 2062     S.Diag(FinalNoteLoc, diag::note_ovl_too_many_candidates)
 2267       Diag(DiagLoc, diag::err_opencl_requires_extension) << Selector << DiagInfo
tools/clang/lib/Sema/SemaAccess.cpp
   51     Diag(MemberDecl->getLocation(),
   54     Diag(PrevMemberDecl->getLocation(), diag::note_previous_access_declaration)
 1054       S.Diag(D->getLocation(), diag::note_access_protected_restricted_noobject)
 1076       return S.Diag(D->getLocation(),
 1082     return S.Diag(D->getLocation(),
 1142   S.Diag(D->getLocation(), diag::note_access_natural)
 1248   S.Diag(base->getSourceRange().getBegin(), diagnostic)
 1254     S.Diag(entity.getTargetDecl()->getLocation(),
 1302       S.Diag(AccessLoc, diag::ext_ms_using_declaration_inaccessible)
tools/clang/lib/Sema/SemaAttr.cpp
  230       Diag(PragmaLoc, diag::err_pragma_options_align_mac68k_target_unsupported);
  245         Diag(PragmaLoc, diag::warn_pragma_options_align_reset_failed)
  305       Diag(PragmaLoc, diag::warn_pragma_pack_invalid_alignment);
  319       Diag(PragmaLoc, diag::warn_pragma_pack_show) << "mac68k";
  321       Diag(PragmaLoc, diag::warn_pragma_pack_show) << AlignmentVal;
  327       Diag(PragmaLoc, diag::warn_pragma_pack_pop_identifier_and_alignment);
  329       Diag(PragmaLoc, diag::warn_pragma_pop_failed) << "pack" << "stack empty";
  359     Diag(IncludeLoc, diag::warn_pragma_pack_non_default_at_include);
  360     Diag(PrevPackState.CurrentPragmaLocation, diag::note_pragma_pack_here);
  364     Diag(IncludeLoc, diag::warn_pragma_pack_modified_after_include);
  365     Diag(PackStack.CurrentPragmaLocation, diag::note_pragma_pack_here);
  374     Diag(StackSlot.PragmaPushLocation, diag::warn_pragma_pack_no_pop_eof);
  378       DiagnosticBuilder DB = Diag(PackStack.CurrentPragmaLocation,
  421     Diag(PragmaLoc, diag::warn_pragma_pop_failed) << "vtordisp"
  478   Diag(Decl->getLocation(), diag::err_section_conflict)
  480   Diag(OtherDecl->getLocation(), diag::note_declared_at)
  484       Diag(A->getLocation(), diag::note_pragma_entered_here);
  487       Diag(A->getLocation(), diag::note_pragma_entered_here);
  499       Diag(PragmaSectionLocation, diag::err_section_conflict)
  501       Diag(Section->second.PragmaSectionLocation,
  524     Diag(PragmaLocation, diag::warn_pragma_pop_failed) << PragmaName
  532       Diag(PragmaLocation, diag::warn_attribute_section_drectve) << PragmaName;
  561     Diag(PragmaLoc, diag::warn_pragma_unused_undeclared_var)
  568     Diag(PragmaLoc, diag::warn_pragma_unused_expected_var_arg)
  575     Diag(PragmaLoc, diag::warn_used_but_marked_unused) << Name;
  682         Diag(Rule.second.getBegin(),
  707         Diag(
  745         Diag(PragmaLoc, diag::err_pragma_attribute_invalid_matchers)
  757     Diag(PragmaLoc, diag::err_pragma_attr_attr_no_push);
  775     Diag(PragmaLoc, diag::err_pragma_attribute_stack_mismatch) << 1;
  790           Diag(Entry.Attribute->getLoc(), diag::warn_pragma_attribute_unused)
  792           Diag(PragmaLoc, diag::note_pragma_attribute_region_ends_here);
  801     Diag(PragmaLoc, diag::err_pragma_attribute_stack_mismatch)
  804     Diag(PragmaLoc, diag::err_pragma_attribute_stack_mismatch) << 1;
  846   Diag(PragmaAttributeStack.back().Loc, diag::err_pragma_attribute_no_pop_eof);
  920       Diag(PragmaLoc, diag::warn_attribute_unknown_visibility) << VisType;
  966     Diag(EndLoc, diag::err_pragma_pop_visibility_mismatch);
  976     Diag(Back->second, diag::err_pragma_push_visibility_mismatch);
  977     Diag(EndLoc, diag::note_surrounding_namespace_ends_here);
  986     Diag(EndLoc, diag::err_pragma_pop_visibility_mismatch);
  987     Diag(Back->second, diag::note_surrounding_namespace_starts_here);
tools/clang/lib/Sema/SemaCUDA.cpp
   45     return ExprError(Diag(LLLLoc, diag::err_undeclared_var_use)
  331           Diag(ClassDecl->getLocation(),
  375           Diag(ClassDecl->getLocation(),
  517       Diag(VD->getLocation(), VD->hasAttr<CUDASharedAttr>()
  535         Diag(VD->getLocation(), diag::err_ref_bad_target_global_initializer)
  537         Diag(InitFn->getLocation(), diag::note_previous_decl) << InitFn;
  592       Diag(NewD->getLocation(),
  595       Diag(Match->getLocation(),
  768       Diag(NewFD->getLocation(), diag::err_cuda_ovl_target)
  770       Diag(OldFD->getLocation(), diag::note_previous_declaration);
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp
  266   Diag(loc, diag::err_incomplete_nested_name_spec)
  295     Diag(SuperLoc, diag::err_invalid_super_scope);
  298     Diag(SuperLoc, diag::err_super_in_lambda_unsupported);
  301     Diag(SuperLoc, diag::err_no_base_classes) << RD->getName();
  598         Diag(IdInfo.CCLoc, diag::err_nested_name_spec_is_not_class)
  602           Diag(ND->getLocation(), diag::note_declared_at);
  606       Diag(R.getNameLoc(), OnlyNamespace
  611         Diag(ND->getLocation(), diag::note_entity_declared_at)
  657     Diag(IdInfo.IdentifierLoc, diag::ext_nested_name_spec_is_enum);
  690          Diag(IdInfo.IdentifierLoc,
  693          Diag(SD->getLocation(), diag::note_ambig_member_ref_object_type)
  695          Diag(OuterDecl->getLocation(), diag::note_ambig_member_ref_scope);
  760       Diag(IdInfo.IdentifierLoc, diag::warn_cxx98_compat_enum_nested_name_spec);
  802         Diag(IdInfo.IdentifierLoc,
  814       Diag(IdInfo.IdentifierLoc, diag::err_expected_class_or_namespace)
  817       Diag(IdInfo.IdentifierLoc, diag::err_expected_class_or_namespace)
  820         Diag(ND->getLocation(), diag::note_entity_declared_at)
  824     Diag(IdInfo.IdentifierLoc, diag::err_no_member) << IdInfo.Identifier
  827     Diag(IdInfo.IdentifierLoc, diag::err_undeclared_var_use)
  859     Diag(DS.getTypeSpecTypeLoc(), diag::err_expected_class_or_namespace)
  948     Diag(CCLoc, diag::err_non_type_template_in_nested_name_specifier)
  963     Diag(TemplateNameLoc, diag::err_nested_name_spec_non_tag) << T;
tools/clang/lib/Sema/SemaCast.cpp
  290       return ExprError(Diag(OpLoc, diag::err_openclcxx_not_supported)
  453   S.Diag(opRange.getBegin(), msg) << castType
  474         S.Diag(DeclFrom->getLocation(), diag::note_type_incomplete)
  478         S.Diag(DeclTo->getLocation(), diag::note_type_incomplete)
  732     Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ref_or_ptr)
  749     Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class)
  765       Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ptr)
  772       Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_rvalue)
  794     Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class)
  808     Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_qualifiers_away)
  840     Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_polymorphic)
  849     Self.Diag(OpRange.getBegin(), diag::err_no_dynamic_cast_with_fno_rtti);
  874     Self.Diag(OpRange.getBegin(), msg) << CT_Const
  966   Self.Diag(BeginLoc, diag::warn_reinterpret_different_from_static)
  969   Self.Diag(BeginLoc, diag::note_reinterpret_updowncast_use_static)
  996       Self.Diag(OpRange.getBegin(), diag::err_bad_reinterpret_cast_overload)
 1062       Self.Diag(OpRange.getBegin(), diag::err_bad_static_cast_overload)
 1244           Self.Diag(OpRange.getBegin(), diag::ext_ms_cast_fn_obj) << OpRange;
 1485     Self.Diag(OpRange.getBegin(), diag::err_ambiguous_base_to_derived_cast)
 1495     Self.Diag(OpRange.getBegin(), diag::err_static_downcast_via_virtual)
 1587     Self.Diag(OpRange.getBegin(), diag::err_ambiguous_memptr_conv)
 1594     Self.Diag(OpRange.getBegin(), diag::err_memptr_conv_via_virtual)
 1853   Diag(Range.getBegin(), DiagID) << SrcType << DestType << Range;
 1867         Self.Diag(SrcExpr.get()->getExprLoc(),
 1917   Self.Diag(OpRange.getBegin(), diag::warn_cast_calling_conv)
 1959   Self.Diag(NameLoc, diag::note_change_calling_conv_fixit)
 1985     Self.Diag(Loc, Diag) << SrcType << DestType;
 2069       Self.Diag(OpRange.getBegin(), diag::err_bad_reinterpret_cast_reference)
 2297     Self.Diag(OpRange.getBegin(),
 2306     Self.Diag(OpRange.getBegin(),
 2383         Self.Diag(OpRange.getBegin(), DiagID)
 2524         Self.Diag(OpRange.getBegin(), diag::err_bad_cstyle_cast_overload)
 2574   Self.Diag(SrcExpr.get()->getExprLoc(),
 2636       Self.Diag(OpRange.getBegin(), diag::ext_typecheck_cast_nonscalar)
 2646         Self.Diag(OpRange.getBegin(), diag::ext_typecheck_cast_to_union)
 2651         Self.Diag(OpRange.getBegin(), diag::err_typecheck_cast_to_union_no_type)
 2667         Self.Diag(OpRange.getBegin(),
 2676     Self.Diag(OpRange.getBegin(), diag::err_typecheck_cond_expect_scalar)
 2686     Self.Diag(SrcExpr.get()->getExprLoc(),
 2721     Self.Diag(SrcExpr.get()->getExprLoc(), diag::err_cast_selector_expr);
 2730       Self.Diag(SrcExpr.get()->getExprLoc(),
 2741       Self.Diag(SrcExpr.get()->getBeginLoc(),
 2752       Self.Diag(SrcExpr.get()->getBeginLoc(), diag::err_opencl_cast_to_half)
 2773           Self.Diag(SrcExpr.get()->getBeginLoc(),
 2782       Self.Diag(SrcExpr.get()->getBeginLoc(),
 2819     Self.Diag(OpRange.getBegin(), diag::err_bit_cast_type_size_mismatch)
 2826     Self.Diag(OpRange.getBegin(), diag::err_bit_cast_non_trivially_copyable)
 2833     Self.Diag(OpRange.getBegin(), diag::err_bit_cast_non_trivially_copyable)
 2873     Self.Diag(SrcExpr.get()->getBeginLoc(), diag::warn_cast_qual2)
 2876     Self.Diag(SrcExpr.get()->getBeginLoc(), diag::warn_cast_qual)
tools/clang/lib/Sema/SemaChecking.cpp
  115     return S.Diag(call->getEndLoc(), diag::err_typecheck_call_too_few_args)
  123   return S.Diag(range.getBegin(), diag::err_typecheck_call_too_many_args)
  138     S.Diag(ValArg->getBeginLoc(), diag::err_builtin_annotation_first_arg)
  147     S.Diag(StrArg->getBeginLoc(), diag::err_builtin_annotation_second_arg)
  159     S.Diag(TheCall->getEndLoc(), diag::err_typecheck_call_too_few_args_at_least)
  169       S.Diag(Arg->getBeginLoc(), diag::err_msvc_annotation_wide_str)
  213       S.Diag(Arg.get()->getBeginLoc(), diag::err_overflow_builtin_must_be_int)
  234       S.Diag(Arg.get()->getBeginLoc(),
  259     S.Diag(BuiltinLoc, diag::err_first_argument_to_cwsc_not_call)
  266     S.Diag(BuiltinLoc, diag::err_first_argument_to_cwsc_block_call)
  274       S.Diag(BuiltinLoc, diag::err_first_argument_to_cwsc_builtin_call)
  280     S.Diag(BuiltinLoc, diag::err_first_argument_to_cwsc_pdtor_call)
  289     S.Diag(BuiltinLoc, diag::err_second_argument_to_cwsc_not_pointer)
  469     SemaRef.Diag(TheCall->getExprLoc(), DiagID)
  507       S.Diag(ErrorLoc,
  518     S.Diag(Call->getBeginLoc(), diag::err_opencl_requires_extension)
  535     S.Diag(NDRangeArg->getBeginLoc(), diag::err_opencl_builtin_expected_type)
  542     S.Diag(BlockArg->getBeginLoc(), diag::err_opencl_builtin_expected_type)
  558     S.Diag(BlockArg->getBeginLoc(), diag::err_opencl_builtin_expected_type)
  592     S.Diag(TheCall->getBeginLoc(),
  632     S.Diag(TheCall->getBeginLoc(),
  645     S.Diag(TheCall->getArg(0)->getBeginLoc(),
  653     S.Diag(TheCall->getArg(1)->getBeginLoc(),
  661     S.Diag(TheCall->getArg(2)->getBeginLoc(),
  672       S.Diag(Arg3->getBeginLoc(), diag::err_opencl_builtin_expected_type)
  680       S.Diag(Arg3->getBeginLoc(),
  695       S.Diag(Arg6->getBeginLoc(), diag::err_opencl_builtin_expected_type)
  704       S.Diag(TheCall->getArg(3)->getBeginLoc(),
  717       S.Diag(TheCall->getArg(4)->getBeginLoc(),
  729       S.Diag(TheCall->getArg(5)->getBeginLoc(),
  743   S.Diag(TheCall->getBeginLoc(),
  758     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_first_arg)
  777       S.Diag(Arg0->getBeginLoc(),
  791       S.Diag(Arg0->getBeginLoc(),
  815     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_invalid_arg)
  848       S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_invalid_arg)
  858       S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_invalid_arg)
  869     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_arg_num)
  892     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_invalid_arg)
  920     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_invalid_arg)
  939     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_first_arg)
  956     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_to_addr_arg_num)
  964     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_to_addr_invalid_arg)
  970     S.Diag(Call->getArg(0)->getBeginLoc(),
 1028     S.Diag(TheCall->getBeginLoc(), diag::err_builtin_launder_invalid_arg)
 1066   S.Diag(TheCall->getBeginLoc(), diag::err_builtin_target_unsupported)
 1186     Diag(TheCall->getBeginLoc(), diag::warn_alloca)
 1334     Diag(TheCall->getBeginLoc(), diag::warn_atomic_implicit_seq_cst)
 1381       Diag(PtrArg->getBeginLoc(), diag::err_typecheck_convert_incompatible)
 1391       Diag(FnPtrArg->getBeginLoc(), diag::err_typecheck_convert_incompatible)
 1401       Diag(FnPtrArg->getBeginLoc(), diag::err_typecheck_convert_incompatible)
 1409         Diag(FnPtrArg->getBeginLoc(), diag::err_typecheck_convert_incompatible)
 1418         Diag(FnPtrArg->getBeginLoc(), diag::err_typecheck_convert_incompatible)
 1674       return Diag(TheCall->getBeginLoc(), diag::err_invalid_neon_type_code)
 1762     Diag(DRE->getBeginLoc(), diag::err_atomic_builtin_must_be_pointer)
 1779     Diag(DRE->getBeginLoc(), diag::ext_typecheck_convert_discards_qualifiers)
 1796     Diag(DRE->getBeginLoc(), diag::err_atomic_builtin_must_be_pointer_intfltptr)
 1804     Diag(DRE->getBeginLoc(), diag::err_atomic_exclusive_builtin_pointer_size)
 1818     Diag(DRE->getBeginLoc(), diag::err_arc_atomic_ownership)
 1975     Diag(Arg->getBeginLoc(), diag::err_preserve_field_info_not_field)
 1983     Diag(Arg->getBeginLoc(), diag::err_preserve_field_info_not_const)
 2784         return Diag(TheCall->getBeginLoc(),
 2793       return Diag(TheCall->getBeginLoc(),
 2804       return Diag(TheCall->getBeginLoc(),
 3250     return Diag(TheCall->getBeginLoc(), diag::err_64_bit_builtin_32_bit_tgt)
 3256     return Diag(TheCall->getBeginLoc(), diag::err_ppc_builtin_only_on_pwr7)
 3261       return Diag(TheCall->getBeginLoc(), diag::err_ppc_builtin_only_on_pwr7)
 3307       return Diag(Arg->getBeginLoc(), diag::err_systemz_invalid_tabort_code)
 3373     return S.Diag(TheCall->getBeginLoc(), diag::err_expr_not_string_literal)
 3380     return S.Diag(TheCall->getBeginLoc(), diag::err_invalid_cpu_supports)
 3393     return S.Diag(TheCall->getBeginLoc(), diag::err_expr_not_string_literal)
 3400     return S.Diag(TheCall->getBeginLoc(), diag::err_invalid_cpu_is)
 3606   return Diag(TheCall->getBeginLoc(), diag::err_x86_builtin_invalid_rounding)
 3709   return Diag(TheCall->getBeginLoc(), diag::err_x86_builtin_invalid_scale)
 3734     return Diag(TheCall->getCallee()->getBeginLoc(),
 4189     S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string)
 4191     S.Diag(FDecl->getLocation(), diag::note_entity_declared_at)
 4674     Diag(CallRange.getEnd(), diag::err_typecheck_call_too_few_args)
 4679     Diag(Args[AdjustedNumArgs]->getBeginLoc(),
 4695     Diag(ExprRange.getBegin(), diag::err_atomic_builtin_must_be_pointer)
 4705       Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_atomic)
 4711       Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_non_const_atomic)
 4719       Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_non_const_pointer)
 4730       Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_atomic_int_or_ptr)
 4738         Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_int32_or_ptr);
 4743       Diag(ExprRange.getBegin(), diag::err_atomic_op_bitwise_needs_atomic_int)
 4755     Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_atomic_int_or_ptr)
 4764     Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_trivial_copy)
 4780     Diag(ExprRange.getBegin(), diag::err_arc_atomic_ownership)
 4959       Diag(SubExprs[1]->getBeginLoc(),
 4969       Diag(Scope->getBeginLoc(), diag::err_atomic_op_has_invalid_synch_scope)
 4983     Diag(AE->getBeginLoc(), diag::err_atomic_load_store_uses_lib)
 5032     Diag(TheCall->getEndLoc(), diag::err_typecheck_call_too_few_args_at_least)
 5051     Diag(DRE->getBeginLoc(), diag::err_atomic_builtin_must_be_pointer)
 5059     Diag(DRE->getBeginLoc(), diag::err_atomic_builtin_must_be_pointer_intptr)
 5065     Diag(DRE->getBeginLoc(), diag::err_atomic_builtin_cannot_be_const)
 5079     Diag(DRE->getBeginLoc(), diag::err_arc_atomic_ownership)
 5130     Diag(DRE->getBeginLoc(), diag::err_atomic_builtin_pointer_size)
 5308     Diag(TheCall->getEndLoc(), diag::err_typecheck_call_too_few_args_at_least)
 5314   Diag(TheCall->getEndLoc(), diag::warn_atomic_implicit_seq_cst)
 5318     Diag(TheCall->getEndLoc(), diag::warn_sync_fetch_and_nand_semantics_change)
 5422     Diag(DRE->getBeginLoc(), diag::err_nontemporal_builtin_must_be_pointer)
 5434     Diag(DRE->getBeginLoc(),
 5466     Diag(Arg->getBeginLoc(), diag::err_cfstring_literal_not_string_constant)
 5483       Diag(Arg->getBeginLoc(), diag::warn_cfstring_truncated)
 5502         Diag(Arg->getBeginLoc(), diag::err_os_log_format_not_string_constant)
 5529         return S.Diag(Fn->getBeginLoc(),
 5538         return S.Diag(Fn->getBeginLoc(),
 5546     return S.Diag(Fn->getBeginLoc(), diag::err_builtin_x64_aarch64_only);
 5569     S.Diag(Fn->getBeginLoc(), diag::err_va_start_captured_stmt);
 5573     S.Diag(Fn->getBeginLoc(), diag::err_va_start_outside_function);
 5578     S.Diag(Fn->getBeginLoc(), diag::err_va_start_fixed_function);
 5598     Diag(TheCall->getArg(2)->getBeginLoc(),
 5608     return Diag(TheCall->getEndLoc(),
 5645     Diag(TheCall->getArg(1)->getBeginLoc(),
 5662     Diag(Arg->getBeginLoc(), diag::warn_va_start_type_is_undefined) << Reason;
 5663     Diag(ParamLoc, diag::note_parameter_type) << Type;
 5677     return Diag(Call->getEndLoc(),
 5701     Diag(Arg1->getBeginLoc(), diag::err_typecheck_convert_incompatible)
 5709     Diag(Arg2->getBeginLoc(), diag::err_typecheck_convert_incompatible)
 5722     return Diag(TheCall->getEndLoc(), diag::err_typecheck_call_too_few_args)
 5725     return Diag(TheCall->getArg(2)->getBeginLoc(),
 5752     return Diag(OrigArg0.get()->getBeginLoc(),
 5767     return Diag(TheCall->getEndLoc(), diag::err_typecheck_call_too_few_args)
 5770     return Diag(TheCall->getArg(NumArgs)->getBeginLoc(),
 5783     return Diag(OrigArg->getBeginLoc(),
 5819     return Diag(TheCall->getEndLoc(),
 5825     return Diag(TheCall->getEndLoc(),
 5833     return Diag(TheCall->getBeginLoc(),
 5846     return Diag(BuiltinLoc, diag::err_vec_builtin_non_vector)
 5854     return Diag(BuiltinLoc, diag::err_vec_builtin_incompatible_vector)
 5872     return ExprError(Diag(TheCall->getEndLoc(),
 5890           Diag(TheCall->getBeginLoc(), diag::err_vec_builtin_non_vector)
 5904         return ExprError(Diag(TheCall->getBeginLoc(),
 5910       return ExprError(Diag(TheCall->getBeginLoc(),
 5929       return ExprError(Diag(TheCall->getBeginLoc(),
 5938       return ExprError(Diag(TheCall->getBeginLoc(),
 5965     return ExprError(Diag(BuiltinLoc,
 5969     return ExprError(Diag(BuiltinLoc,
 5976       return ExprError(Diag(BuiltinLoc,
 5992     return Diag(TheCall->getEndLoc(),
 6013     Diag(Arg->getBeginLoc(), diag::warn_assume_side_effects)
 6033         Diag(TheCall->getBeginLoc(), diag::warn_alloca_align_alignof)
 6039       return Diag(TheCall->getBeginLoc(), diag::err_alignment_not_power_of_two)
 6043       return Diag(TheCall->getBeginLoc(), diag::err_alignment_too_small)
 6047       return Diag(TheCall->getBeginLoc(), diag::err_alignment_too_big)
 6060     return Diag(TheCall->getEndLoc(),
 6074       return Diag(TheCall->getBeginLoc(), diag::err_alignment_not_power_of_two)
 6080       Diag(TheCall->getBeginLoc(), diag::warn_assume_aligned_too_great)
 6104     return Diag(TheCall->getEndLoc(), diag::err_typecheck_call_too_few_args)
 6109     return Diag(TheCall->getEndLoc(),
 6147       return Diag(Arg.get()->getEndLoc(), diag::err_os_log_argument_too_big)
 6187     return Diag(TheCall->getBeginLoc(), diag::err_constant_integer_arg_type)
 6212       return Diag(TheCall->getBeginLoc(), diag::err_argument_invalid_range)
 6242     return Diag(TheCall->getBeginLoc(), diag::err_argument_not_multiple)
 6267   return Diag(TheCall->getBeginLoc(), diag::err_argument_not_power_of_2)
 6311   return Diag(TheCall->getBeginLoc(), diag::err_argument_not_shifted_byte)
 6338   return Diag(TheCall->getBeginLoc(),
 6356       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_must_be_pointer)
 6365       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_must_be_integer)
 6383       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_must_be_pointer)
 6405       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_must_be_pointer)
 6410       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_must_be_integer)
 6427       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_must_be_pointer)
 6456       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_null_or_pointer)
 6460       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_null_or_pointer)
 6471         return Diag(TheCall->getBeginLoc(), diag::err_typecheck_sub_ptr_compatible)
 6479       return Diag(TheCall->getBeginLoc(), diag::err_memtag_any2arg_pointer)
 6523     return Diag(TheCall->getBeginLoc(), diag::err_expr_not_string_literal)
 6532     return Diag(TheCall->getBeginLoc(), diag::err_arm_invalid_specialreg)
 6574       return Diag(TheCall->getBeginLoc(), diag::err_arm_invalid_specialreg)
 6602     return Diag(TheCall->getBeginLoc(), diag::err_builtin_longjmp_unsupported)
 6613     return Diag(TheCall->getBeginLoc(), diag::err_builtin_longjmp_invalid_val)
 6623     return Diag(TheCall->getBeginLoc(), diag::err_builtin_setjmp_unsupported)
 7140     Diag(Loc, diag::warn_missing_format_string) << Range;
 7193     Diag(FormatLoc, diag::warn_format_nonliteral_noargs)
 7201       Diag(FormatLoc, diag::note_format_security_fixit)
 7205       Diag(FormatLoc, diag::note_format_security_fixit)
 7210     Diag(FormatLoc, diag::warn_format_nonliteral)
 7367     S.Diag(getLocationOfByte(LM.getStart()), diag::note_format_fix_specifier)
 7401     S.Diag(getLocationOfByte(LM.getStart()), diag::note_format_fix_specifier)
 7429     S.Diag(getLocationOfByte(CS.getStart()), diag::note_format_fix_specifier)
 7663       S.Diag(IsStringLocation ? Loc : StringRange.getBegin(),
 7758   S.Diag(getLocationOfByte(MaskType.data()), diag::err_invalid_mask_type_size);
 7958       S.Diag(E->getBeginLoc(), diag::note_printf_c_str)
 8571         S.Diag(E->getBeginLoc(), diag::err_cannot_pass_to_vararg_format)
 9138   S.Diag(Loc, diag::note_replace_abs_function)
 9147   S.Diag(Loc, diag::note_include_header_or_declare) << HeaderName
 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)
 9237   Diag(Call->getExprLoc(), diag::warn_wrong_absolute_value_type)
 9289   Diag(Call->getExprLoc(), diag::warn_max_unsigned_zero)
 9302   Diag(Call->getExprLoc(), diag::note_remove_max_call)
 9326   S.Diag(Size->getOperatorLoc(), diag::warn_memsize_comparison)
 9328   S.Diag(FnLoc, diag::note_memsize_comparison_paren)
 9333   S.Diag(SizeRange.getBegin(), diag::note_memsize_comparison_cast_silence)
 9548       S.Diag(DiagLoc, diag::warn_suspicious_bzero_size);
 9549       S.Diag(DiagLoc, diag::note_suspicious_bzero_size_silence);
 9551       S.Diag(DiagLoc, diag::warn_suspicious_sizeof_memset) << 0;
 9552       S.Diag(DiagLoc, diag::note_suspicious_sizeof_memset_silence) << 0;
 9564     S.Diag(DiagLoc, diag::warn_suspicious_sizeof_memset) << 1;
 9565     S.Diag(DiagLoc, diag::note_suspicious_sizeof_memset_silence) << 1;
 9850   Diag(CompareWithSrcDRE->getBeginLoc(), diag::warn_strlcpycat_wrong_size)
 9867   Diag(OriginalSizeArg->getBeginLoc(), diag::note_strlcpycat_wrong_size)
 9951       Diag(SL, diag::warn_strncat_wrong_size) << SR;
 9953       Diag(SL, diag::warn_strncat_src_size) << SR;
 9958     Diag(SL, diag::warn_strncat_large_size) << SR;
 9960     Diag(SL, diag::warn_strncat_src_size) << SR;
 9971   Diag(SL, diag::note_strncat_wrong_size)
 9985     Diag(ReturnLoc, diag::warn_null_ret)
10000         Diag(ReturnLoc, diag::warn_operator_new_returns_null)
10045   Diag(Loc, diag::warn_floatingpoint_eq)
10763     S.Diag(E->getOperatorLoc(), Diag)
10917       S.Diag(InitLoc, diag::warn_no_underlying_type_specified_for_enum_bitfield)
10964         S.Diag(InitLoc, DiagID) << Bitfield << ED;
10968         S.Diag(Bitfield->getTypeSpecStartLoc(), diag::note_change_bitfield_sign)
10982         S.Diag(InitLoc, diag::warn_bitfield_too_small_for_enum)
10984         S.Diag(WidthExpr->getExprLoc(), diag::note_widen_bitfield)
11021   S.Diag(InitLoc, diag::warn_impcast_bitfield_precision_constant)
11049     S.Diag(E->getRHS()->getBeginLoc(), diag::warn_atomic_implicit_seq_cst);
11063   S.Diag(E->getExprLoc(), diag)
11116           S.Diag(CContext, diag::warn_impcast_float_to_objc_signed_char_bool)
11144         S.Diag(CContext, diag::warn_impcast_constant_value_to_objc_bool)
11204     S.Diag(E->getExprLoc(), DiagID)
11220     S.Diag(E->getOperatorLoc(), diag::warn_atomic_implicit_seq_cst);
11339   S.Diag(Loc, diag::warn_impcast_null_pointer_to_integer)
11372     S.Diag(Element->getBeginLoc(), diag::warn_objc_collection_literal_element)
11500   S.Diag(Loc, diag::warn_conditional_mixed_enum_types)
11517         S.Diag(ExprLoc, diag::warn_left_shift_always) << 0;
11521         S.Diag(ExprLoc, diag::warn_left_shift_always)
11524         S.Diag(ExprLoc, diag::warn_left_shift_in_bool_context) << E;
11538       S.Diag(ExprLoc, diag::warn_integer_constants_in_conditional_always_true);
11562     S.Diag(E->getExprLoc(), diag::warn_atomic_implicit_seq_cst);
11596             S.Diag(CC, diag::warn_impcast_constant_value_to_objc_bool)
11848         S.Diag(CC, diag::warn_impcast_int_to_objc_signed_char_bool)
12052       S.Diag(UO->getBeginLoc(), diag::warn_bitwise_negation_bool)
12089       S.Diag(E->getBeginLoc(), diag::warn_atomic_implicit_seq_cst);
12147         S.Diag(U->getSubExpr()->getBeginLoc(),
12158     S.Diag(E->getBeginLoc(),
12194     SemaRef.Diag(FD->getLocation(), diag::note_reference_is_return_value) << FD;
12242     Diag(E->getExprLoc(), DiagID) << E->getSourceRange() << Range << IsEqual;
12273     Diag(E->getExprLoc(), DiagID) << IsParam << S.str()
12275     Diag(NonnullAttr->getLocation(), diag::note_declared_nonnull) << IsParam;
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)
13036   S.Diag(Loc, diag::err_array_star_in_function_definition);
13066       Diag(Param->getLocation(), diag::err_parameter_name_omitted);
13100         Diag(Param->getLocation(), diag::err_attribute_pointers_only)
13177   Diag(TRange.getBegin(), diag::warn_cast_align)
13639   S.Diag(capturer->getExprLoc(), diag::warn_arc_retain_cycle)
13641   S.Diag(owner.Loc, diag::note_arc_retain_cycle_owner)
13791         Diag(Message->getSourceRange().getBegin(),
13807           Diag(Message->getSourceRange().getBegin(),
13811             Diag(Decl->getLocation(),
13821           Diag(Message->getSourceRange().getBegin(),
13824           Diag(Decl->getLocation(),
13900   S.Diag(Loc, diag::warn_arc_literal_assign)
13914       S.Diag(Loc, diag::warn_arc_retained_assign)
13992           Diag(Loc, diag::warn_arc_retained_property_assign)
14056   Diag(NBody->getSemiLoc(), DiagID);
14057   Diag(NBody->getSemiLoc(), diag::note_empty_body_on_separate_line);
14121     Diag(NBody->getSemiLoc(), DiagID);
14122     Diag(NBody->getSemiLoc(), diag::note_empty_body_on_separate_line);
14164     Diag(OpLoc, diag::warn_self_move) << LHSExpr->getType()
14201     Diag(OpLoc, diag::warn_self_move) << LHSExpr->getType()
14208     Diag(OpLoc, diag::warn_self_move) << LHSExpr->getType()
14544     Diag(CallSiteLoc, diag::err_tag_index_out_of_range)
14555       Diag(TypeTagExpr->getExprLoc(),
14564     Diag(CallSiteLoc, diag::err_tag_index_out_of_range)
14586       Diag(ArgumentExpr->getExprLoc(),
14622     Diag(ArgumentExpr->getExprLoc(), diag::warn_type_safety_type_mismatch)
14641     Diag(m.E->getBeginLoc(), diag::warn_taking_address_of_packed_member)
tools/clang/lib/Sema/SemaConcept.cpp
   41     Diag(ConstraintExpression->getExprLoc(),
  114     Diag(E.get()->getBeginLoc(),
tools/clang/lib/Sema/SemaCoroutine.cpp
   57     S.Diag(KwLoc, diag::err_implied_coroutine_type_not_found)
  114     S.Diag(FuncLoc,
  130     S.Diag(FuncLoc,
  154     S.Diag(Loc, diag::err_implied_coroutine_type_not_found)
  164     S.Diag(Found->getLocation(), diag::err_malformed_std_coroutine_handle);
  196     S.Diag(Loc, isa<ObjCMethodDecl>(S.CurContext)
  215     S.Diag(Loc, diag::err_coroutine_invalid_func_context) << ID << Keyword;
  322     S.Diag(Loc, diag::err_coroutine_handle_missing_member)
  362     S.Diag(Loc, diag::err_no_member)
  432       S.Diag(AwaitReady->getDirectCallee()->getBeginLoc(),
  434       S.Diag(Loc, diag::note_coroutine_promise_call_implicitly_required)
  454         S.Diag(AwaitSuspend->getCalleeDecl()->getLocation(),
  457         S.Diag(Loc, diag::note_coroutine_promise_call_implicitly_required)
  628       Diag(Loc, diag::note_coroutine_promise_suspend_implicitly_required)
  630       Diag(KWLoc, diag::note_declared_coroutine_here) << Keyword;
  685     S.Diag(Loc, diag::err_coroutine_unevaluated_context) << Keyword;
  689     S.Diag(Loc, diag::err_coroutine_within_handler) << Keyword;
  736       Diag(Loc,
  911     S.Diag(Loc, diag::err_implicit_coroutine_std_nothrow_type_not_found);
  920     S.Diag(Found->getLocation(), diag::err_malformed_std_nothrow);
  980     Diag(Fn->FirstReturnLoc, diag::err_return_in_coroutine);
  981     Diag(Fn->FirstCoroutineStmtLoc, diag::note_declared_coroutine_here)
 1064   S.Diag(
 1068   S.Diag(Fn.FirstCoroutineStmtLoc, diag::note_declared_coroutine_here)
 1106     S.Diag(Found.getFoundDecl()->getLocation(), diag::note_member_declared_here)
 1108     S.Diag(Fn.FirstCoroutineStmtLoc, diag::note_declared_coroutine_here)
 1232       S.Diag(OperatorNew->getLocation(),
 1235       S.Diag(Loc, diag::note_coroutine_promise_call_implicitly_required)
 1316     S.Diag(FD.getLocation(),
 1319     S.Diag(LRVoid.getRepresentativeDecl()->getLocation(),
 1322     S.Diag(LRValue.getRepresentativeDecl()->getLocation(),
 1329     S.Diag(FD.getLocation(),
 1332     S.Diag(PromiseRecordDecl->getLocation(), diag::note_defined_here)
 1363     S.Diag(Loc, DiagID) << PromiseRecordDecl;
 1364     S.Diag(PromiseRecordDecl->getLocation(), diag::note_defined_here)
 1383     S.Diag(Fn.FirstSEHTryLoc, diag::err_seh_in_a_coroutine_with_cxx_exceptions);
 1384     S.Diag(Fn.FirstCoroutineStmtLoc, diag::note_declared_coroutine_here)
 1408     S.Diag(MethodDecl->getLocation(), diag::note_member_declared_here)
 1411   S.Diag(Fn.FirstCoroutineStmtLoc, diag::note_declared_coroutine_here)
 1577         Diag(KwLoc, diag::err_implied_coroutine_type_not_found)
 1585         Diag(Found->getLocation(), diag::err_malformed_std_coroutine_traits);
tools/clang/lib/Sema/SemaDecl.cpp
  255   S.Diag(NameLoc, diag::ext_found_via_dependent_bases_lookup) << &II;
  477       Diag(NameLoc, diag::err_out_of_line_qualified_id_type_names_constructor)
  570     Diag(NameLoc, diag::ext_ms_delayed_template_argument) << &II;
  580     Diag(NameLoc, diag::ext_undeclared_unqual_id_with_dependent_base) << &II
  743     Diag(IILoc, IsTemplateName ? diag::err_no_template
  747     Diag(IILoc, IsTemplateName ? diag::err_no_member_template
  755     Diag(SS->getRange().getBegin(), DiagID)
  815     SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag)
  821       SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type)
 1554     Diag(New->getLocation(), diag::err_mismatched_owning_module)
 1560     Diag(Old->getLocation(), diag::note_previous_declaration);
 1864   Diag(D->getLocation(), DiagID) << D << Hint;
 1878     S.Diag(L->getLocation(), diag::err_undeclared_label_use) <<L->getDeclName();
 1913         Diag(D->getLocation(), diag::warn_ctor_parm_shadows_field)
 1915         Diag(FD->getLocation(), diag::note_previous_declaration);
 2050       Diag(Loc, diag::warn_implicit_decl_no_jmp_buf)
 2057     Diag(Loc, diag::warn_implicit_decl_requires_sysheader)
 2066     Diag(Loc, diag::ext_implicit_lib_function_decl)
 2070       Diag(Loc, diag::note_include_header_or_declare)
 2179     Diag(New->getLocation(), diag::err_redefinition_variably_modified_typedef)
 2192     Diag(New->getLocation(), diag::err_redefinition_different_typedef)
 2257     Diag(New->getLocation(), diag::err_redefinition_different_kind)
 2352     Diag(New->getLocation(), diag::err_redefinition)
 2373   Diag(New->getLocation(), diag::ext_redefinition_of_typedef)
 2474       S.Diag(NewAlignasAttr->getLocation(), diag::err_alignas_mismatch)
 2477       S.Diag(OldAlignasAttr->getLocation(), diag::note_previous_declaration);
 2490     S.Diag(New->getLocation(), diag::err_alignas_missing_on_definition)
 2492     S.Diag(OldAlignasAttr->getLocation(), diag::note_alignas_on_declaration)
 2650         S.Diag(VD->getLocation(), Diag) << VD->getDeclName();
 2654           S.Diag(Def->getLocation(), diag::note_previous_definition);
 2688         S.Diag(Def->getLocation(), diag::err_alignas_missing_on_definition)
 2690         S.Diag(NewAttribute->getLocation(), diag::note_alignas_on_declaration)
 2707     S.Diag(NewAttribute->getLocation(),
 2709     S.Diag(Def->getLocation(), diag::note_previous_definition);
 2753     S.Diag(InitDecl->getLocation(), diag::ext_constinit_missing)
 2755     S.Diag(CIAttr->getLocation(), diag::note_constinit_specified_here);
 2759     S.Diag(CIAttr->getLocation(),
 2763     S.Diag(InitDecl->getLocation(), diag::note_constinit_missing_here)
 2823         Diag(New->getLocation(), diag::err_different_asm_label);
 2824         Diag(OldA->getLocation(), diag::note_previous_declaration);
 2829       Diag(New->getLocation(), diag::err_late_asm_label_name)
 2840           Diag(NewAbiTagAttr->getLocation(),
 2843           Diag(OldAbiTagAttr->getLocation(), diag::note_previous_declaration);
 2847       Diag(NewAbiTagAttr->getLocation(), diag::err_abi_tag_on_redeclaration);
 2848       Diag(Old->getLocation(), diag::note_previous_declaration);
 2856         Diag(New->getLocation(), diag::warn_attribute_section_on_redeclaration);
 2857         Diag(Old->getLocation(), diag::note_previous_declaration);
 2866     Diag(New->getLocation(), diag::warn_mismatched_section)
 2868     Diag(Old->getLocation(), diag::note_previous_declaration);
 2923     S.Diag(CDA->getLocation(),
 2931     S.Diag(FirstVD->getLocation(),
 2963         S.Diag(NewParam->getLocation(), diag::warn_mismatched_nullability_attr)
 2972         S.Diag(OldParam->getLocation(), diag::note_previous_declaration);
 3080     S.Diag(New->getLocation(), diag::err_using_decl_conflict_reverse);
 3081     S.Diag(OldS->getTargetDecl()->getLocation(), diag::note_using_decl_target);
 3082     S.Diag(OldS->getUsingDecl()->getLocation(), diag::note_using_decl) << 0;
 3164         Diag(New->getLocation(), diag::err_using_decl_friend);
 3165         Diag(Shadow->getTargetDecl()->getLocation(),
 3167         Diag(Shadow->getUsingDecl()->getLocation(),
 3177       Diag(New->getLocation(), diag::err_redefinition_different_kind)
 3190     Diag(New->getLocation(), diag::err_builtin_redeclare) << Old->getDeclName();
 3191     Diag(Old->getLocation(), diag::note_previous_builtin_declaration)
 3211       Diag(New->getLocation(), diag::ext_static_non_static) << New;
 3212       Diag(OldLocation, PrevDiag);
 3214       Diag(New->getLocation(), diag::err_static_non_static) << New;
 3215       Diag(OldLocation, PrevDiag);
 3222     Diag(New->getLocation(), diag::err_internal_linkage_redeclaration)
 3234       Diag(New->getLocation(), diag::err_attribute_overloadable_mismatch)
 3255         Diag(DiagOld->getLocation(),
 3302       Diag(New->getLocation(), diag::warn_cconv_unsupported)
 3310       Diag(New->getLocation(), diag::err_cconv_change)
 3317       Diag(First->getLocation(), diag::note_previous_declaration);
 3332       Diag(New->getLocation(), diag::err_regparm_mismatch)
 3335       Diag(OldLocation, diag::note_previous_declaration);
 3346       Diag(New->getLocation(), diag::err_function_attribute_mismatch)
 3348       Diag(OldLocation, diag::note_previous_declaration);
 3361       Diag(New->getLocation(), diag::err_function_attribute_mismatch) << Attr;
 3362       Diag(OldLocation, diag::note_previous_declaration);
 3398     Diag(New->getLocation(), diag::err_different_pass_object_size_params)
 3400     Diag(OldLocation, PrevDiag) << Old << Old->getType();
 3437           Diag(New->getLocation(), diag::err_member_def_does_not_match_ret_type)
 3440           Diag(New->getLocation(), diag::err_ovl_diff_return_type)
 3442         Diag(OldLocation, PrevDiag) << Old << Old->getType()
 3488           Diag(New->getLocation(), diag::err_ovl_static_nonstatic_member);
 3489           Diag(OldLocation, PrevDiag) << Old << Old->getType();
 3508           Diag(New->getLocation(), NewDiag);
 3510           Diag(New->getLocation(), diag::err_member_redeclared_in_instantiation)
 3513         Diag(OldLocation, PrevDiag) << Old << Old->getType();
 3525           Diag(NewMethod->getLocation(),
 3531         Diag(NewMethod->getLocation(),
 3544       Diag(NRA->getLocation(), diag::err_noreturn_missing_on_first_decl);
 3545       Diag(Old->getFirstDecl()->getLocation(),
 3555       Diag(CDA->getLocation(),
 3557       Diag(Old->getFirstDecl()->getLocation(),
 3586         Diag(New->getLocation(), diag::ext_retained_language_linkage) << New;
 3587         Diag(OldLocation, PrevDiag);
 3589         Diag(New->getLocation(), diag::err_different_language_linkage) << New;
 3590         Diag(OldLocation, PrevDiag);
 3695         Diag(Warnings[Warn].NewParm->getLocation(),
 3700           Diag(Warnings[Warn].OldParm->getLocation(),
 3723       Diag(New->getLocation(), diag::warn_redecl_library_builtin) << New;
 3724       Diag(OldLocation, diag::note_previous_builtin_declaration)
 3744   Diag(New->getLocation(), diag::err_conflicting_types) << New->getDeclName();
 3745   Diag(OldLocation, PrevDiag) << Old << Old->getType();
 3819   S.Diag(New->getLocation(), New->isThisDeclarationADefinition()
 3828   S.Diag(OldLocation, PrevDiag);
 3995     Diag(New->getLocation(), diag::err_redefinition_different_kind)
 4014     Diag(New->getLocation(), diag::err_duplicate_member)
 4016     Diag(Old->getLocation(), diag::note_previous_declaration);
 4026     Diag(New->getLocation(), diag::warn_weak_import) << New->getDeclName();
 4034     Diag(New->getLocation(), diag::err_internal_linkage_redeclaration)
 4063       Diag(New->getLocation(), diag::ext_static_non_static)
 4065       Diag(OldLocation, PrevDiag);
 4067       Diag(New->getLocation(), diag::err_static_non_static)
 4069       Diag(OldLocation, PrevDiag);
 4087     Diag(New->getLocation(), diag::err_non_static_static) << New->getDeclName();
 4088     Diag(OldLocation, PrevDiag);
 4095     Diag(New->getLocation(), diag::err_extern_non_extern) << New->getDeclName();
 4096     Diag(OldLocation, PrevDiag);
 4101     Diag(New->getLocation(), diag::err_non_extern_extern) << New->getDeclName();
 4102     Diag(OldLocation, PrevDiag);
 4117     Diag(New->getLocation(), diag::err_redefinition) << New->getDeclName();
 4118     Diag(OldLocation, PrevDiag);
 4127       Diag(New->getLocation(), diag::err_inline_decl_follows_def) << New;
 4128       Diag(Def->getLocation(), diag::note_previous_definition);
 4141       Diag(New->getLocation(), diag::err_thread_non_thread) << New->getDeclName();
 4142       Diag(OldLocation, PrevDiag);
 4144       Diag(New->getLocation(), diag::err_non_thread_thread) << New->getDeclName();
 4145       Diag(OldLocation, PrevDiag);
 4151       Diag(New->getLocation(), diag::err_thread_thread_different_kind)
 4153       Diag(OldLocation, PrevDiag);
 4163       Diag(New->getLocation(),
 4172     Diag(New->getLocation(), diag::err_different_language_linkage) << New;
 4173     Diag(OldLocation, PrevDiag);
 4215         Diag(IncLoc, diag::note_redefinition_modules_same_file)
 4218           Diag(Mod->DefinitionLoc, diag::note_defined_here)
 4221         Diag(IncLoc, diag::note_redefinition_include_same_file)
 4241       Diag(Old->getLocation(), diag::note_use_ifdef_guards);
 4249     Diag(Old->getLocation(), diag::note_previous_definition);
 4271     Diag(New->getLocation(), diag::err_redefinition) << New;
 4355     Diag(NewTD->getLocation(), diag::err_typedef_changes_linkage);
 4363     Diag(tagLoc, diag::note_typedef_changes_linkage)
 4429       Diag(DS.getRestrictSpecLoc(),
 4435     Diag(DS.getInlineSpecLoc(), diag::err_inline_non_function)
 4444       Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_tag)
 4448       Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_wrong_decl_kind)
 4478     Diag(SS.getBeginLoc(), diag::err_standalone_class_nested_name_specifier)
 4536         Diag(DS.getBeginLoc(), diag::ext_ms_anonymous_record)
 4560       Diag(DS.getBeginLoc(), diag::ext_typedef_without_a_name)
 4568     Diag(DS.getModulePrivateSpecLoc(), diag::err_module_private_local_class)
 4585     Diag(DS.getBeginLoc(), diag::ext_no_declarators) << DS.getSourceRange();
 4608       Diag(DS.getStorageClassSpecLoc(), diag::err_mutable_nonmember);
 4610       Diag(DS.getStorageClassSpecLoc(), DiagID)
 4615     Diag(DS.getThreadStorageClassSpecLoc(), DiagID)
 4619       Diag(DS.getConstSpecLoc(), DiagID) << "const";
 4621       Diag(DS.getConstSpecLoc(), DiagID) << "volatile";
 4624       Diag(DS.getAtomicSpecLoc(), DiagID) << "_Atomic";
 4626       Diag(DS.getUnalignedSpecLoc(), DiagID) << "__unaligned";
 4640         Diag(AL.getLoc(), diag::warn_declspec_attribute_ignored)
 4669   SemaRef.Diag(NameLoc, diag::err_anonymous_record_member_redecl)
 4671   SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
 4795   S.Diag(DefaultInitLoc, diag::err_multiple_mem_union_initialization);
 4796   S.Diag(findDefaultInitializer(Parent), diag::note_previous_initializer) << 0;
 4819     Diag(Record->getLocation(), diag::ext_anonymous_union);
 4821     Diag(Record->getLocation(), diag::ext_gnu_anonymous_struct);
 4823     Diag(Record->getLocation(), diag::ext_c11_anonymous_struct);
 4841         Diag(Record->getLocation(), diag::err_anonymous_union_not_static)
 4853         Diag(DS.getStorageClassSpecLoc(),
 4867         Diag(DS.getConstSpecLoc(), diag::ext_anonymous_struct_union_qualified)
 4871         Diag(DS.getVolatileSpecLoc(),
 4876         Diag(DS.getRestrictSpecLoc(),
 4881         Diag(DS.getAtomicSpecLoc(),
 4886         Diag(DS.getUnalignedSpecLoc(),
 4905           Diag(FD->getLocation(), diag::err_anonymous_record_nonpublic_member)
 4929             Diag(MemRecord->getLocation(), diag::ext_anonymous_record_with_type)
 4933             Diag(MemRecord->getLocation(), diag::err_anonymous_record_with_type)
 4941           Diag(MemRecord->getLocation(),
 4963           Diag(Mem->getLocation(), diag::ext_anonymous_record_with_type)
 4966           Diag(Mem->getLocation(), DK) << Record->isUnion();
 4982     Diag(Record->getLocation(), diag::err_anonymous_struct_not_member)
 4997     Diag(DS.getBeginLoc(), diag::ext_no_declarators) << DS.getSourceRange();
 5021       Diag(Record->getLocation(), diag::err_mutable_nonmember);
 5163       Diag(Name.StartLocation,
 5167         Diag(Template->getLocation(), diag::note_template_decl_here);
 5408     Diag(NameInfo.getLoc(), diag::err_member_name_of_class) << Name;
 5449       Diag(Loc, LangOpts.MicrosoftExt ? diag::warn_member_extra_qualification
 5454       Diag(Loc, diag::warn_namespace_member_extra_qualification) << Name;
 5464       Diag(Loc, diag::err_member_qualification)
 5467       Diag(Loc, diag::err_invalid_declarator_global_scope)
 5470       Diag(Loc, diag::err_invalid_declarator_in_function)
 5473       Diag(Loc, diag::err_invalid_declarator_in_block)
 5476       Diag(Loc, diag::err_invalid_declarator_scope)
 5484     Diag(Loc, diag::err_member_qualification)
 5508     Diag(Loc, diag::err_decltype_in_declarator)
 5526       Diag(D.getDeclSpec().getBeginLoc(), diag::err_declarator_need_ident)
 5553       Diag(D.getIdentifierLoc(),
 5567       Diag(D.getIdentifierLoc(),
 5699       Diag(D.getIdentifierLoc(), diag::err_template_typedef);
 5874     Diag(DS.getVirtualSpecLoc(),
 5878     Diag(DS.getExplicitSpecLoc(),
 5882     Diag(DS.getNoreturnSpecLoc(),
 5891     Diag(D.getIdentifierLoc(), diag::err_qualified_typedef_declarator)
 5902     Diag(D.getDeclSpec().getInlineSpecLoc(), diag::err_inline_non_function)
 5905     Diag(D.getDeclSpec().getConstexprSpecLoc(), diag::err_invalid_constexpr)
 5910       Diag(D.getName().StartLocation,
 5914       Diag(D.getName().StartLocation, diag::err_typedef_not_identifier)
 5952         Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size);
 5956           Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size);
 5958           Diag(NewTD->getLocation(), diag::err_vla_decl_in_file_scope);
 5960           Diag(NewTD->getLocation(), diag::err_array_too_large)
 5963           Diag(NewTD->getLocation(), diag::err_vm_decl_in_file_scope);
 6094       Diag(decl->getLocation(), diag::err_arc_autoreleasing_var)
 6111       Diag(var->getLocation(), diag::err_arc_thread_ownership)
 6128       S.Diag(Attr->getLocation(), diag::err_attribute_weak_static);
 6134       S.Diag(Attr->getLocation(), diag::err_attribute_weakref_not_static);
 6145         S.Diag(Attr->getLocation(), diag::err_alias_is_definition) << VD << 0;
 6155       S.Diag(Attr->getLocation(),
 6180       S.Diag(ND.getLocation(), diag::err_attribute_dll_not_extern)
 6190         S.Diag(ND.getLocation(),
 6211           S.Diag(A->getLocation(), diag::err_lifetimebound_no_object_param)
 6214           S.Diag(A->getLocation(), diag::err_lifetimebound_ctor_dtor)
 6281     S.Diag(NewDecl->getLocation(), DiagID)
 6284     S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
 6314       S.Diag(NewDecl->getLocation(),
 6317       S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
 6322       S.Diag(NewDecl->getLocation(),
 6325       S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
 6326       S.Diag(OldImportAttr->getLocation(), diag::note_previous_attribute);
 6335     S.Diag(NewDecl->getLocation(),
 6496     Diag(D.getIdentifierLoc(), diag::err_bad_variable_name) << Name;
 6505       Diag(D.getIdentifierLoc(),
 6518         Diag(D.getIdentifierLoc(),
 6529         Diag(D.getIdentifierLoc(), diag::err_opencl_function_pointer);
 6540         Diag(D.getIdentifierLoc(), diag::err_opencl_half_declaration) << R;
 6551         Diag(D.getIdentifierLoc(), diag::err_wrong_sampler_addressspace);
 6560         Diag(D.getIdentifierLoc(), diag::err_opencl_nonconst_global_sampler);
 6570         Diag(D.getBeginLoc(), diag::err_event_t_addr_space_qual);
 6581       Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(),
 6607     Diag(D.getIdentifierLoc(), diag::err_mutable_nonmember);
 6618     Diag(D.getDeclSpec().getStorageClassSpecLoc(),
 6631       Diag(D.getIdentifierLoc(), diag::err_typecheck_sclass_fscope);
 6666         Diag(D.getDeclSpec().getStorageClassSpecLoc(),
 6678         Diag(D.getDeclSpec().getStorageClassSpecLoc(),
 6690           Diag(D.getIdentifierLoc(),
 6697           Diag(D.getIdentifierLoc(),
 6703           Diag(D.getIdentifierLoc(),
 6725         Diag(TemplateParams->getTemplateLoc(),
 6746           Diag(D.getIdentifierLoc(),
 6809       Diag(D.getDeclSpec().getInlineSpecLoc(), diag::err_inline_non_function)
 6813       Diag(D.getDeclSpec().getInlineSpecLoc(),
 6817       Diag(D.getDeclSpec().getInlineSpecLoc(),
 6850       Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(),
 6864         Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(),
 6875     Diag(D.getDeclSpec().getConstexprSpecLoc(),
 6893       Diag(D.getDeclSpec().getConstexprSpecLoc(),
 6915       Diag(D.getDeclSpec().getStorageClassSpecLoc(),
 6923       Diag(NewVD->getLocation(), diag::err_module_private_specialization)
 6928       Diag(NewVD->getLocation(), diag::err_module_private_specialization)
 6932       Diag(NewVD->getLocation(), diag::err_module_private_local)
 6953       Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(),
 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;
 7015         Diag(D.getBeginLoc(), diag::err_asm_bad_register_type);
 7030         Diag(NewVD->getLocation(), diag::warn_redefine_extname_not_applied)
 7071         Diag(NewVD->getLocation(), diag::err_nonstatic_member_out_of_line)
 7078       Diag(D.getIdentifierLoc(), diag::err_no_member)
 7147       Diag(D.getBeginLoc(), diag::err_main_global_variable);
 7152       Diag(D.getBeginLoc(), diag::warn_main_redefined);
 7354   Diag(R.getNameLoc(), WarningDiag) << Name << Kind << OldDC;
 7356     Diag(CaptureLoc, diag::note_var_explicitly_captured_here)
 7358   Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration);
 7369     Diag(Shadow.VD->getLocation(), CaptureLoc.isInvalid()
 7375       Diag(CaptureLoc, diag::note_var_explicitly_captured_here)
 7377     Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration);
 7409   Diag(Loc, diag::warn_modifying_shadowing_decl) << D << OldDC;
 7410   Diag(D->getLocation(), diag::note_var_declared_here) << D;
 7411   Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration);
 7487   S.Diag(ND->getLocation(), diag::err_extern_c_global_conflict)
 7489   S.Diag(Prev->getLocation(), diag::note_extern_c_global_conflict)
 7549     Diag(NewVD->getLocation(), diag::err_statically_allocated_object)
 7561     Diag(NewVD->getLocation(), diag::err_as_qualified_auto_decl) << 0;
 7571     Diag(NewVD->getLocation(), diag::err_static_function_scope);
 7579       Diag(NewVD->getLocation(), diag::err_opencl_block_storage_type);
 7587         Diag(NewVD->getLocation(), diag::err_opencl_invalid_block_declaration)
 7593         Diag(NewVD->getLocation(), diag::err_opencl_extern_block_declaration);
 7614           Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space)
 7617           Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space)
 7624         Diag(NewVD->getLocation(), diag::err_opencl_function_variable)
 7636             Diag(NewVD->getLocation(), diag::err_opencl_function_variable)
 7639             Diag(NewVD->getLocation(), diag::err_opencl_function_variable)
 7649               Diag(NewVD->getLocation(), diag::err_opencl_addrspace_scope)
 7652               Diag(NewVD->getLocation(), diag::err_opencl_addrspace_scope)
 7663         Diag(NewVD->getLocation(), diag::err_as_qualified_auto_decl) << 1;
 7673       Diag(NewVD->getLocation(), diag::warn_gc_attribute_weak_on_local);
 7676       Diag(NewVD->getLocation(), diag::warn_attribute_weak_on_local);
 7707         Diag(NewVD->getLocation(), diag::err_vla_decl_in_file_scope)
 7710         Diag(NewVD->getLocation(), diag::err_vla_decl_has_static_storage)
 7713         Diag(NewVD->getLocation(), diag::err_vla_decl_has_extern_linkage)
 7721         Diag(NewVD->getLocation(), diag::err_vm_decl_in_file_scope);
 7723         Diag(NewVD->getLocation(), diag::err_vm_decl_has_extern_linkage);
 7728     Diag(NewVD->getLocation(), diag::warn_illegal_constant_array_size);
 7737       Diag(NewVD->getLocation(), diag::err_typecheck_decl_incomplete_type)
 7745     Diag(NewVD->getLocation(), diag::err_block_on_nonlocal);
 7751     Diag(NewVD->getLocation(), diag::err_block_on_vm);
 7843   S.Diag(MD->getLocation(), DiagID) << MD->getDeclName();
 7851       S.Diag(O->getLocation(), diag::note_overridden_virtual_function);
 8073   SemaRef.Diag(NewFD->getLocation(), DiagMsg)
 8093       SemaRef.Diag(Loc, IsMember ? diag::note_member_def_close_param_match
 8098       SemaRef.Diag(FD->getLocation(), diag::note_member_def_close_const_match)
 8101       SemaRef.Diag(FD->getLocation(),
 8114     SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(),
 8131       SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(),
 8179     SemaRef.Diag(D.getDeclSpec().getConstexprSpecLoc(),
 8226       SemaRef.Diag(D.getIdentifierLoc(), diag::err_destructor_not_member);
 8239       SemaRef.Diag(D.getIdentifierLoc(),
 8266       SemaRef.Diag(D.getIdentifierLoc(), diag::err_constructor_return_type)
 8388     S.Diag(Param->getLocation(), diag::err_opencl_ptrptr_kernel_param);
 8397     S.Diag(Param->getLocation(), diag::err_kernel_arg_address_space);
 8414       S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT;
 8422           S.Diag(Loc, diag::note_entity_declared_at) << PT;
 8510         S.Diag(Param->getLocation(),
 8515         S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT;
 8518       S.Diag(OrigRecDecl->getLocation(), diag::note_within_field_of_type)
 8528         S.Diag(OuterField->getLocation(), diag::note_within_field_of_type)
 8532       S.Diag(FD->getLocation(), diag::note_illegal_field_declared_here)
 8578     Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(),
 8638         Diag(D.getDeclSpec().getVirtualSpecLoc(), diag::err_virtual_in_union);
 8668           Diag(NewFD->getLocation(), diag::err_destructor_template);
 8716           Diag(D.getIdentifierLoc(), diag::err_template_spec_decl_friend)
 8743         Diag(D.getDeclSpec().getVirtualSpecLoc(),
 8747         Diag(D.getDeclSpec().getVirtualSpecLoc(),
 8753         Diag(D.getDeclSpec().getVirtualSpecLoc(),
 8763         Diag(D.getDeclSpec().getVirtualSpecLoc(), diag::err_auto_fn_virtual);
 8790         Diag(D.getDeclSpec().getInlineSpecLoc(),
 8804         Diag(D.getDeclSpec().getExplicitSpecLoc(),
 8811         Diag(D.getDeclSpec().getExplicitSpecLoc(),
 8827         Diag(D.getDeclSpec().getConstexprSpecLoc(), diag::err_constexpr_dtor)
 8837         Diag(ModulePrivateLoc, diag::err_module_private_specialization)
 8894       Diag(D.getDeclSpec().getStorageClassSpecLoc(),
 8935         Diag(NewFD->getLocation(), diag::warn_redefine_extname_not_applied)
 9032     Diag(NewFD->getLocation(), diag::err_vm_func_decl);
 9074       Diag(NewFD->getLocation(),
 9109         Diag(NewFD->getLocation(), DiagID)
 9130       Diag(D.getDeclSpec().getInlineSpecLoc(),
 9151         Diag(D.getIdentifierLoc(), diag::err_function_template_partial_spec)
 9215           Diag(NewFD->getLocation(),
 9222           Diag(NewFD->getLocation(),
 9359       Diag(NewFD->getLocation(), diag::ext_out_of_line_declaration)
 9371     Diag(NewFD->getLocation(),
 9423         Diag(NewFD->getLocation(), diag::err_config_scalar_return)
 9436       Diag(NewFD->getLocation(), diag::err_variadic_device_fn);
 9448       Diag(D.getIdentifierLoc(), diag::err_static_kernel);
 9455       Diag(D.getIdentifierLoc(), diag::err_expected_kernel_void_return_type)
 9467         Diag(D.getIdentifierLoc(), diag::err_method_kernel);
 9471         Diag(D.getIdentifierLoc(), diag::err_template_kernel);
 9497             Diag(Param->getTypeSpecStartLoc(), diag::err_reference_pipe_type );
 9521       Diag(attr->getLocation(), diag::warn_availability_on_static_initializer)
 9526       Diag(attr->getLocation(), diag::warn_availability_on_static_initializer)
 9674     S.Diag(FD->getLocation(), diag::err_bad_multiversion_option)
 9682       S.Diag(FD->getLocation(), diag::err_bad_multiversion_option)
 9689       S.Diag(FD->getLocation(), diag::err_bad_multiversion_option)
 9833     S.Diag(NewFD->getLocation(), diag::err_multiversion_not_supported);
 9835       S.Diag(OldFD->getLocation(), diag::note_previous_declaration);
 9846     S.Diag(OldFD->getLocation(), diag::err_multiversion_no_other_attrs)
 9848     S.Diag(NewFD->getLocation(), diag::note_multiversioning_caused_here);
 9853     return S.Diag(NewFD->getLocation(), diag::err_multiversion_no_other_attrs)
 9858     return S.Diag(NewFD->getLocation(), diag::err_multiversion_after_used);
 9931     S.Diag(NewFD->getLocation(), diag::err_multiversion_not_supported);
 9932     S.Diag(OldFD->getLocation(), diag::note_previous_declaration);
 9958     S.Diag(NewFD->getLocation(), diag::note_multiversioning_caused_here);
 9967     S.Diag(NewFD->getLocation(), diag::err_multiversion_duplicate);
 9968     S.Diag(OldFD->getLocation(), diag::note_previous_declaration);
 9979       S.Diag(FD->getLocation(), diag::err_multiversion_required_in_redecl)
 9981       S.Diag(NewFD->getLocation(), diag::note_multiversioning_caused_here);
10011     S.Diag(NewFD->getLocation(), diag::err_multiversion_types_mixed);
10012     S.Diag(OldFD->getLocation(), diag::note_previous_declaration);
10047         S.Diag(NewFD->getLocation(), diag::err_multiversion_duplicate);
10048         S.Diag(CurFD->getLocation(), diag::note_previous_declaration);
10074         S.Diag(NewFD->getLocation(), diag::err_cpu_dispatch_mismatch);
10075         S.Diag(CurFD->getLocation(), diag::note_previous_declaration);
10098               S.Diag(NewFD->getLocation(), diag::err_cpu_specific_multiple_defs)
10100               S.Diag(CurFD->getLocation(), diag::note_previous_declaration);
10162     S.Diag(NewFD->getLocation(), diag::err_multiversion_types_mixed);
10175       S.Diag(NewFD->getLocation(), diag::err_multiversion_not_allowed_on_main);
10198     S.Diag(NewFD->getLocation(), diag::err_multiversion_required_in_redecl)
10341         Diag(MD->getLocation(), diag::warn_cxx14_compat_constexpr_not_const)
10418       Diag(NewFD->getLocation(),
10420       Diag((*OtherUnmarkedIter)->getLocation(),
10446           Diag(NewFD->getLocation(), diag::err_destructor_name);
10461         Diag(Guide->getBeginLoc(), diag::err_deduction_guide_specialized)
10527         Diag(NewFD->getLocation(), diag::warn_return_value_udt_incomplete)
10531         Diag(NewFD->getLocation(), diag::warn_return_value_udt) << NewFD << R;
10565         Diag(NewFD->getLocation(),
10585     Diag(DS.getStorageClassSpecLoc(), getLangOpts().CPlusPlus
10589     Diag(DS.getInlineSpecLoc(), diag::err_inline_main)
10594     Diag(NoreturnLoc, diag::ext_noreturn_main);
10595     Diag(NoreturnLoc, diag::note_main_remove_noreturn)
10599     Diag(DS.getConstexprSpecLoc(), diag::err_constexpr_main)
10606     Diag(FD->getLocation(), diag::err_opencl_no_main)
10632       Diag(FD->getTypeSpecStartLoc(), diag::ext_main_returns_nonint);
10635         Diag(RTRange.getBegin(), diag::note_main_change_return_type)
10649       Diag(FD->getTypeSpecStartLoc(), diag::err_main_returns_nonint)
10666     Diag(FD->getLocation(), diag::ext_variadic_main);
10678     Diag(FD->getLocation(), diag::err_main_surplus_args) << nparams;
10715       Diag(FD->getLocation(), diag::err_main_arg_wrong) << i << Expected[i];
10722     Diag(FD->getLocation(), diag::warn_main_one_arg);
10726     Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD;
10746     Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD;
10763   Diag(Culprit->getExprLoc(), diag::err_init_element_not_constant)
11132       Diag(VDecl->getLocation(), diag::err_auto_var_requires_init)
11167     Diag(Init->getBeginLoc(), IsInitCapture
11175     Diag(DeduceInits[1]->getBeginLoc(),
11184     Diag(Init->getBeginLoc(), IsInitCapture
11217       Diag(Range.getBegin(),
11224       Diag(Range.getBegin(), diag::err_init_capture_deduction_failure)
11239     Diag(Loc, diag::warn_auto_var_is_id) << VN << Range;
11343       S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11349       S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11360         S.Diag(OrigLoc, diag::err_non_trivial_c_union_in_invalid_context)
11369       S.Diag(RD->getLocation(), diag::note_non_trivial_c_union)
11408       S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11414       S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11425         S.Diag(OrigLoc, diag::err_non_trivial_c_union_in_invalid_context)
11434       S.Diag(RD->getLocation(), diag::note_non_trivial_c_union)
11474       S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11480       S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11491         S.Diag(OrigLoc, diag::err_non_trivial_c_union_in_invalid_context)
11500       S.Diag(RD->getLocation(), diag::note_non_trivial_c_union)
11558     Diag(Method->getLocation(), diag::err_member_function_initialization)
11567     Diag(RealDecl->getLocation(), diag::err_illegal_initializer);
11590     Diag(VDecl->getLocation(), diag::err_attribute_dllimport_data_definition);
11597     Diag(VDecl->getLocation(), diag::err_block_extern_cant_init);
11646       Diag(Init->getExprLoc(), diag::err_static_data_member_reinitialization)
11648       Diag(VDecl->getCanonicalDecl()->getInit()->getExprLoc(),
11666     Diag(VDecl->getLocation(), diag::err_local_cant_init);
11816         Diag(Culprit->getExprLoc(),
11859       Diag(VDecl->getLocation(), diag::err_in_class_initializer_non_const)
11870         Diag(VDecl->getLocation(), diag::err_in_class_initializer_volatile);
11881         Diag(Loc, diag::ext_in_class_initializer_non_constant)
11886         Diag(Loc, diag::err_in_class_initializer_non_constant)
11896         Diag(VDecl->getLocation(),
11899         Diag(VDecl->getBeginLoc(),
11903         Diag(VDecl->getLocation(), diag::ext_in_class_initializer_float_type)
11907           Diag(Init->getExprLoc(), diag::err_in_class_initializer_non_constant)
11915       Diag(VDecl->getLocation(), diag::err_in_class_initializer_literal_type)
11921       Diag(VDecl->getLocation(), diag::err_in_class_initializer_bad_type)
11938       Diag(VDecl->getLocation(), diag::warn_extern_init);
12039       Diag(Var->getLocation(), diag::err_decomp_decl_requires_init) << Var;
12061           Diag(Var->getLocation(),
12068         Diag(Var->getLocation(), diag::err_invalid_constexpr_var_decl);
12079       Diag(Var->getLocation(), diag::err_opencl_constant_no_init);
12122         Diag(Var->getLocation(), diag::warn_private_extern);
12123         Diag(Var->getLocation(), diag::note_private_extern);
12166       Diag(Var->getLocation(),
12175       Diag(Var->getLocation(), diag::err_reference_var_requires_init)
12274     Diag(D->getLocation(), diag::err_for_range_decl_must_be_var);
12303     Diag(VD->getOuterLocStart(), diag::err_for_range_storage_class)
12347       Diag(var->getLocation(), diag::err_opencl_invalid_block_declaration)
12393       Diag(var->getLocation(), diag::warn_missing_variable_declarations) << var;
12394       Diag(var->getTypeSpecStartLoc(), diag::note_static_for_internal_linkage)
12414       Diag(var->getLocation(), diag::err_thread_nontrivial_dtor);
12416         Diag(var->getLocation(), diag::note_use_thread_local);
12423         Diag(CacheCulprit->getExprLoc(), diag::err_thread_dynamic_init)
12426           Diag(var->getLocation(), diag::note_use_thread_local);
12498         Diag(DiagLoc, diag::err_constexpr_var_requires_const_init)
12518         Diag(var->getLocation(), diag::err_require_constant_init_failed)
12520         Diag(Attr->getLocation(),
12530           Diag(CacheCulprit->getExprLoc(),
12545           Diag(var->getLocation(), diag::warn_global_constructor)
12663         Diag(VD->getLocation(), diag::err_tls_var_aligned_over_maximum)
12719       Diag(VD->getLocation(),
12723       Diag(IA->getLocation(), diag::note_attribute);
12739       Diag(VD->getLocation(), diag::err_attribute_dll_thread_local) << VD
12747       Diag(Attr->getLocation(), diag::warn_attribute_ignored) << Attr;
12775       Diag(I->getRange().getBegin(),
12781       Diag(I->getRange().getBegin(),
12830             Diag(FirstDecompDeclaratorInGroup->getLocation(),
12841             Diag(FirstNonDeducedAutoInGroup->getLocation(),
12890         Diag(D->getTypeSourceInfo()->getTypeLoc().getBeginLoc(),
12954     Diag(D.getIdentifierLoc(), diag::err_qualified_param_declarator)
12971     Diag(D.getIdentifierLoc(), diag::err_bad_parameter_name)
12978     Diag(D.getIdentifierLoc(), diag::err_bad_parameter_name_template_id);
12997       Diag(DS.getStorageClassSpecLoc(),
13006     Diag(DS.getStorageClassSpecLoc(),
13012     Diag(DS.getThreadStorageClassSpecLoc(), diag::err_invalid_thread)
13015     Diag(DS.getInlineSpecLoc(), diag::err_inline_non_function)
13018     Diag(DS.getConstexprSpecLoc(), diag::err_invalid_constexpr)
13042         Diag(D.getIdentifierLoc(), diag::err_param_redefinition) << II;
13043         Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
13076     Diag(New->getLocation(), diag::err_module_private_local)
13082     Diag(New->getLocation(), diag::err_block_on_nonlocal);
13111       Diag(Parameter->getLocation(), diag::warn_unused_parameter)
13127       Diag(D->getLocation(), diag::warn_return_value_size)
13139       Diag(Parameter->getLocation(), diag::warn_parameter_size)
13165           Diag(NameLoc, diag::err_arc_array_param_no_ownership)
13204     Diag(NameLoc,
13220     Diag(NameLoc, diag::err_arg_with_address_space);
13240         Diag(FTI.Params[i].IdentLoc, diag::ext_param_not_declared)
13426     Diag(FD->getLocation(), diag::err_redefinition_extern_inline)
13429     Diag(FD->getLocation(), diag::err_redefinition) << FD->getDeclName();
13431   Diag(Definition->getLocation(), diag::note_previous_definition);
13507     Diag(Attr->getLocation(), diag::err_alias_is_definition) << FD << 0;
13512     Diag(Attr->getLocation(), diag::err_alias_is_definition) << FD << 1;
13555       Diag(FD->getLocation(), diag::err_builtin_definition) << FD;
13619     Diag(FD->getLocation(), diag::err_attribute_dllimport_function_definition);
13629     Diag(FD->getLocation(), diag::warn_function_def_in_objc_container);
13753       S.Diag(P.first, diag::warn_implicitly_retains_self)
13783           Diag(dcl->getLocation(), diag::err_auto_fn_no_return_but_not_auto)
13822       Diag(FD->getLocation(), diag::ext_pure_function_definition);
13852       Diag(FD->getLocation(), diag::warn_missing_prototype) << FD;
13860             Diag(PossiblePrototype->getLocation(),
13868         Diag(FD->getTypeSpecStartLoc(), diag::note_static_for_internal_linkage)
13888         Diag(FTL.getLParenLoc(), diag::warn_strict_prototypes) << 2;
13896           Diag(CmpndBody->body_front()->getBeginLoc(),
13936       Diag(MD->getEndLoc(), diag::warn_objc_missing_super_call)
13960         Diag(MD->getLocation(),
13962         Diag(InitMethod->getLocation(),
13970         Diag(MD->getLocation(),
14047           Diag(S->getBeginLoc(), diag::err_non_asm_stmt_in_naked_function);
14048           Diag(FD->getAttr<NakedAttr>()->getLocation(), diag::note_attribute);
14126       Diag(Loc, diag::ext_use_out_of_scope_declaration)
14128       Diag(ExternCPrev->getLocation(), diag::note_previous_declaration);
14144   Diag(Loc, diag_id) << &II;
14370       Diag(NewTD->getLocation(), diag::err_module_private_local)
14414   Diag(UnderlyingLoc, diag::err_enum_invalid_underlying) << T;
14424     Diag(EnumLoc, diag::err_enum_redeclare_scoped_mismatch)
14426     Diag(Prev->getLocation(), diag::note_previous_declaration);
14436       Diag(EnumLoc, diag::err_enum_redeclare_type_mismatch)
14438       Diag(Prev->getLocation(), diag::note_previous_declaration)
14443     Diag(EnumLoc, diag::err_enum_redeclare_fixed_mismatch)
14445     Diag(Prev->getLocation(), diag::note_previous_declaration);
14561       Diag(NewTagLoc, diag::warn_struct_class_tag_mismatch)
14586           Diag(NewTagLoc, diag::warn_struct_class_previous_tag_mismatch)
14590         Diag(I->getInnerLocStart(), diag::note_struct_class_suggestion)
14607     Diag(NewTagLoc, diag::warn_struct_class_tag_mismatch)
14610     Diag(Redecl->getLocation(), diag::note_previous_use);
14614       Diag(NewTagLoc, diag::note_struct_class_suggestion)
14732         Diag(KWLoc, diag::err_enum_template);
14752         Diag(TemplateParams->getTemplateLoc(), diag::err_template_tag_noparams)
14874         Diag(SS.getRange().getBegin(), diag::err_dependent_nested_name_spec)
14904       Diag(NameLoc, diag::err_not_tag_in_scope)
14974         Diag(NameLoc, diag::ext_friend_tag_redecl_outside_namespace)
15127         Diag(KWLoc, diag::err_using_decl_conflict_reverse);
15128         Diag(Shadow->getTargetDecl()->getLocation(),
15130         Diag(Shadow->getUsingDecl()->getLocation(), diag::note_using_decl)
15154             Diag(KWLoc, diag::err_use_with_wrong_tag)
15159             Diag(KWLoc, diag::err_use_with_wrong_tag) << Name;
15160           Diag(PrevTagDecl->getLocation(), diag::note_previous_use);
15179               Diag(ScopedEnumKWLoc, diag::err_enum_class_reference)
15206           Diag(NameLoc, diag::ext_member_redeclared);
15207           Diag(PrevTagDecl->getLocation(), diag::note_previous_declaration);
15288                   Diag(NameLoc, diag::warn_redefinition_in_param_list) << Name;
15290                   Diag(NameLoc, diag::err_redefinition) << Name;
15305                 Diag(NameLoc, diag::err_nested_redefinition) << Name;
15306                 Diag(PrevTagDecl->getLocation(),
15350         Diag(NameLoc, diag::err_tag_reference_non_tag) << PrevDecl << NTK
15352         Diag(PrevDecl->getLocation(), diag::note_declared_at);
15363         Diag(NameLoc, diag::err_tag_reference_conflict) << NTK;
15364         Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl;
15372         Diag(NameLoc, diag::err_tag_definition_of_typedef)
15374         Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl;
15381         Diag(NameLoc, diag::err_redefinition_different_kind) << Name;
15427         Diag(Loc, diag::ext_forward_ref_enum_def)
15429         Diag(Def->getLocation(), diag::note_previous_definition);
15436         Diag(Loc, DiagID);
15470     Diag(New->getLocation(), diag::err_type_defined_in_type_specifier)
15477     Diag(New->getLocation(), diag::err_type_defined_in_enum)
15519       Diag(New->getLocation(), diag::err_module_private_specialization)
15543         Diag(Loc, diag::err_type_defined_in_param_type)
15548       Diag(Loc, diag::warn_decl_in_param_list) << Context.getTagDeclType(New);
15783       return Diag(FieldLoc, diag::err_not_integral_type_bitfield)
15785     return Diag(FieldLoc, diag::err_not_integral_type_anon_bitfield)
15807     return Diag(FieldLoc, diag::err_bitfield_has_zero_width) << FieldName;
15811       return Diag(FieldLoc, diag::err_bitfield_has_negative_width)
15813     return Diag(FieldLoc, diag::err_anon_bitfield_has_negative_width)
15833         return Diag(FieldLoc, diag::err_bitfield_width_exceeds_type_width)
15837       return Diag(FieldLoc, diag::err_anon_bitfield_width_exceeds_type_width)
15847         Diag(FieldLoc, diag::warn_bitfield_width_exceeds_type_width)
15851         Diag(FieldLoc, diag::warn_anon_bitfield_width_exceeds_type_width)
15878     Diag(Decomp.getLSquareLoc(), diag::err_decomp_decl_context)
15903     Diag(D.getDeclSpec().getInlineSpecLoc(), diag::err_inline_non_function)
15906     Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(),
16014     Diag(Loc, diag::err_field_with_address_space);
16024       Diag(Loc, diag::err_opencl_type_struct_or_union_field) << T;
16030       Diag(Loc, diag::err_opencl_bitfields);
16039     Diag(Loc, diag::err_anon_bitfield_qualifiers);
16053       Diag(Loc, diag::warn_illegal_constant_array_size);
16058         Diag(Loc, diag::err_typecheck_negative_array_size);
16060         Diag(Loc, diag::err_array_too_large)
16063         Diag(Loc, diag::err_typecheck_field_variable_size);
16101       Diag(ErrLoc, DiagID);
16121     Diag(Loc, diag::err_duplicate_member) << II;
16122     Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
16145         Diag(NewFD->getLocation(), getLangOpts().MicrosoftExt ?
16171     Diag(Loc, diag::warn_attribute_weak_on_field);
16224         Diag(FD->getLocation(), getLangOpts().CPlusPlus11 ?
16280     Diag(Loc, diag::err_ivar_reference_type);
16286     Diag(Loc, diag::err_typecheck_ivar_variable_size);
16312         Diag(Loc, diag::err_misplaced_ivar) << CDecl->IsClassExtension();
16329       Diag(Loc, diag::err_duplicate_member) << II;
16330       Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
16357     Diag(Loc, diag::warn_ivars_in_interface);
16472       Diag(FD->getLocation(), diag::err_field_declared_as_function)
16486           Diag(FD->getLocation(), diag::err_flexible_array_not_at_end)
16488           Diag((*(i + 1))->getLocation(), diag::note_next_field_declaration);
16506           Diag(FD->getLocation(), DiagID) << FD->getDeclName()
16514           Diag(FD->getLocation(), diag::err_flexible_array_virtual_base)
16517           Diag(FD->getLocation(), diag::ext_c99_flexible_array_member)
16527           Diag(FD->getLocation(), diag::err_flexible_array_has_nontrivial_dtor)
16557             Diag(FD->getLocation(), diag::ext_variable_sized_type_in_struct)
16562             Diag(FD->getLocation(), diag::ext_flexible_array_in_struct)
16580       Diag(FD->getLocation(), diag::err_statically_allocated_object)
16692                 Diag(Record->getLocation(), diag::err_multiple_final_overriders)
16694                 Diag(M->first->getLocation(),
16700                   Diag(OM->Method->getLocation(), diag::note_final_overrider)
16776         Diag(RecLoc, getLangOpts().CPlusPlus ?
16785         Diag(RecLoc, IsEmpty ? diag::ext_empty_struct_union :
16827             Diag(ClsFields[i]->getLocation(),
16829             Diag(ClsIvar->getLocation(), diag::note_previous_definition);
16835               Diag(ClsFields[i]->getLocation(),
16837               Diag(ClsExtIvar->getLocation(), diag::note_previous_definition);
16941               Diag(IdLoc, diag::ext_enumerator_too_large) << EltTy;
16943               Diag(IdLoc, diag::err_enumerator_too_large) << EltTy;
16967             Diag(IdLoc, diag::ext_enum_value_not_int)
17025             Diag(IdLoc, diag::err_enumerator_wrapped)
17029             Diag(IdLoc, diag::ext_enumerator_increment_too_large)
17049           Diag(IdLoc, diag::warn_enum_value_overflow);
17053         Diag(IdLoc, diag::ext_enum_value_not_int)
17147         Diag(IdLoc, diag::err_redefinition_of_enumerator) << Id;
17149         Diag(IdLoc, diag::err_redefinition) << Id;
17305     S.Diag(FirstECD->getLocation(), diag::warn_duplicate_enum_values)
17312       S.Diag(ECD->getLocation(), diag::note_duplicate_element)
17458           Diag(Enum->getLocation(), diag::ext_enum_too_large);
17573         Diag(ECD->getLocation(), diag::warn_flag_enum_constant_out_of_range)
17615       Diag(PrevDecl->getLocation(), diag::warn_redefine_extname_not_applied)
tools/clang/lib/Sema/SemaDeclAttr.cpp
  192     S.Diag(AL.getLoc(), Diag) << AL << Num;
  248       S.Diag(getAttrLoc(AI), diag::err_attribute_argument_n_type)
  252       S.Diag(getAttrLoc(AI), diag::err_attribute_argument_type)
  258     S.Diag(Expr->getExprLoc(), diag::err_ice_too_large)
  264     S.Diag(getAttrLoc(AI), diag::err_attribute_requires_positive_integer)
  286     S.Diag(Expr->getExprLoc(), diag::err_ice_too_large)
  300     S.Diag(AL.getLoc(), diag::err_attributes_are_not_compatible) << AL << A;
  301     S.Diag(A->getLocation(), diag::note_conflicting_attribute);
  310     S.Diag(AL.getLocation(), diag::err_attributes_are_not_compatible) << &AL
  312     S.Diag(A->getLocation(), diag::note_conflicting_attribute);
  339     S.Diag(getAttrLoc(AI), diag::err_attribute_argument_n_type)
  347     S.Diag(getAttrLoc(AI), diag::err_attribute_argument_out_of_bounds)
  353       S.Diag(getAttrLoc(AI), diag::err_attribute_invalid_implicit_this_argument)
  373     Diag(Loc->Loc, diag::err_attribute_argument_type)
  390     Diag(ArgExpr->getBeginLoc(), diag::err_attribute_argument_type)
  431     Sema::SemaDiagnosticBuilder DB = S.Diag(D->getBeginLoc(), DiagID);
  519   S.Diag(AL.getLoc(), diag::warn_thread_attribute_decl_not_pointer) << AL << QT;
  644         S.Diag(AL.getLoc(),
  648       S.Diag(AL.getLoc(), diag::warn_thread_attribute_not_on_non_static_member)
  673       S.Diag(AL.getLoc(), diag::warn_thread_attribute_ignored) << AL;
  701           S.Diag(AL.getLoc(),
  715       S.Diag(AL.getLoc(), diag::warn_thread_attribute_argument_not_lockable)
  774     S.Diag(AL.getLoc(), diag::warn_thread_attribute_decl_not_lockable) << AL;
  856     S.Diag(SrcLoc, diag::err_attribute_integers_only)
  870     S.Diag(AL.getLoc(), diag::warn_attribute_return_pointers_only) << AL;
  905     S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type)
  983     S.Diag(AL.getLoc(), diag::err_attr_cond_never_constant_expr) << AL;
  992   S.Diag(AL.getLoc(), diag::ext_clang_enable_if);
 1047   S.Diag(AL.getLoc(), diag::ext_clang_diagnose_if);
 1060     S.Diag(AL.getArgAsExpr(2)->getBeginLoc(),
 1074     S.Diag(D->getBeginLoc(), diag::err_attribute_only_once_per_parameter) << AL;
 1087     S.Diag(E->getBeginLoc(), diag::err_attribute_argument_out_of_range)
 1097     S.Diag(D->getBeginLoc(), diag::err_attribute_pointers_only) << AL << 1;
 1111       S.Diag(IL->Loc, diag::warn_attribute_type_not_supported) << AL
 1116     S.Diag(AL.getLoc(), diag::err_attribute_argument_type)
 1130       S.Diag(AL.getLoc(), diag::warn_attr_on_unconsumable_class) <<
 1164       S.Diag(Loc, diag::warn_attribute_type_not_supported) << AL << StateString;
 1184       S.Diag(Ident->Loc, diag::warn_attribute_type_not_supported)
 1189     S.Diag(AL.getLoc(), diag::err_attribute_argument_type)
 1216       S.Diag(IL->Loc, diag::warn_attribute_type_not_supported) << AL
 1221     S.Diag(AL.getLoc(), diag::err_attribute_argument_type)
 1263       S.Diag(Ident->Loc, diag::warn_attribute_type_not_supported) << AL
 1268     S.Diag(AL.getLoc(), diag::err_attribute_argument_type)
 1285       S.Diag(Ident->Loc, diag::warn_attribute_type_not_supported) << AL
 1290     S.Diag(AL.getLoc(), diag::err_attribute_argument_type)
 1315         S.Diag(AL.getLoc(), diag::warn_attribute_ignored_for_field_of_type)
 1322         S.Diag(AL.getLoc(), diag::warn_attribute_packed_for_bitfield);
 1328     S.Diag(AL.getLoc(), diag::warn_attribute_ignored) << AL;
 1337       S.Diag(AL.getLoc(), diag::warn_iboutlet_object_type)
 1344       S.Diag(AL.getLoc(), diag::warn_iboutlet_object_type)
 1350     S.Diag(AL.getLoc(), diag::warn_attribute_iboutlet) << AL;
 1368     S.Diag(AL.getLoc(), diag::err_attribute_wrong_number_arguments) << AL << 1;
 1383       S.Diag(AL.getLoc(), diag::err_iboutletcollection_type) << "NSObject";
 1398     S.Diag(AL.getLoc(),
 1437       S.Diag(AL.getLoc(), diag::warn_attribute_return_pointers_only)
 1440       S.Diag(AL.getLoc(), diag::warn_attribute_pointers_only)
 1481       S.Diag(AL.getLoc(), diag::warn_attribute_nonnull_no_pointers);
 1496       S.Diag(AL.getLoc(), diag::warn_attribute_nonnull_parm_no_args)
 1527     S.Diag(AL.getLoc(), diag::warn_attribute_pointers_only)
 1554     Diag(AttrLoc, diag::warn_attribute_return_pointers_refs_only)
 1563         Diag(AttrLoc, diag::err_attribute_argument_n_type)
 1567         Diag(AttrLoc, diag::err_attribute_argument_type)
 1574       Diag(AttrLoc, diag::err_alignment_not_power_of_two)
 1584         Diag(AttrLoc, diag::err_attribute_argument_n_type)
 1604     Diag(AttrLoc, diag::warn_attribute_return_pointers_refs_only)
 1617     Diag(ParamExpr->getBeginLoc(), diag::err_attribute_integers_only)
 1647     S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type)
 1661       S.Diag(AL.getLoc(), diag::err_attribute_too_few_arguments) << AL << 2;
 1667       S.Diag(AL.getLoc(), diag::err_attribute_too_many_arguments) << AL << 1;
 1702       S.Diag(AL.getLoc(), diag::err_ownership_type) << AL << Err
 1713         S.Diag(AL.getLoc(), diag::err_attributes_are_not_compatible) << AL << I;
 1720           S.Diag(I->getLocation(), diag::err_ownership_returns_index_mismatch)
 1723             S.Diag(AL.getLoc(), diag::note_ownership_returns_index_mismatch)
 1742     S.Diag(AL.getLoc(), diag::err_attribute_wrong_number_arguments) << AL << 1;
 1758     S.Diag(AL.getLoc(), diag::err_attribute_weakref_not_global_context)
 1805     S.Diag(AL.getLoc(), diag::err_alias_is_definition) << FD << 1;
 1818     S.Diag(AL.getLoc(), diag::err_alias_not_supported_on_darwin);
 1822     S.Diag(AL.getLoc(), diag::err_alias_not_supported_on_nvptx);
 1828       S.Diag(AL.getLoc(), diag::err_alias_is_definition) << FD << 0;
 1834       S.Diag(AL.getLoc(), diag::err_alias_is_definition) << VD << 0;
 1863     S.Diag(LiteralLoc, diag::err_attr_tlsmodel_arg);
 1877   S.Diag(AL.getLoc(), diag::warn_attribute_return_pointers_only)
 1886       S.Diag(AL.getLoc(), diag::err_attribute_dll_lambda) << AL;
 1897       S.Diag(AL.getLoc(), diag::err_attribute_argument_type)
 1906       S.Diag(CPUArg->Loc, diag::err_invalid_cpu_specific_dispatch_value)
 1916       S.Diag(AL.getLoc(), diag::warn_multiversion_duplicate_entries);
 1933     S.Diag(AL.getLoc(), diag::err_attribute_not_supported_in_lang)
 1951       S.Diag(AL.getLoc(), diag::err_attribute_not_supported_on_arch)
 1964     S.Diag(Attrs.getLoc(), diag::warn_attribute_wrong_decl_type)
 1974     S.Diag(Attrs.getLoc(), diag::warn_nocf_check_attribute_ignored);
 1991     Diag(AL.getLoc(), diag::warn_unknown_attribute_ignored) << AL;
 2007       S.Diag(AL.getLoc(), AL.isCXX11Attribute()
 2045     S.Diag(AL.getLoc(), diag::err_repeat_attribute) << A;
 2053     S.Diag(AL.getLoc(), diag::err_attribute_vecreturn_only_vector_member);
 2058     S.Diag(AL.getLoc(), diag::err_attribute_vecreturn_only_pod_record);
 2064       S.Diag(AL.getLoc(), diag::err_attribute_vecreturn_only_vector_member);
 2079       S.Diag(AL.getLoc(),
 2094     S.Diag(AL.getLoc(), diag::ext_cxx17_attr) << AL;
 2130     S.Diag(AL.getLoc(), diag::err_objc_attr_protocol_requires_definition)
 2152     S.Diag(Range.getBegin(), diag::warn_availability_version_ordering)
 2160     S.Diag(Range.getBegin(), diag::warn_availability_version_ordering)
 2168     S.Diag(Range.getBegin(), diag::warn_availability_version_ordering)
 2278             Diag(OldAA->getLocation(),
 2283             Diag(OldAA->getLocation(),
 2291             Diag(CI.getLoc(), diag::note_overridden_method);
 2293             Diag(CI.getLoc(), diag::note_protocol_method);
 2295           Diag(OldAA->getLocation(), diag::warn_mismatched_availability);
 2296           Diag(CI.getLoc(), diag::note_previous_attribute);
 2357     S.Diag(Platform->Loc, diag::warn_availability_unknown_platform)
 2379       S.Diag(AL.getLoc(),
 2484     S.Diag(existingAttr->getLocation(), diag::err_mismatched_visibility);
 2485     S.Diag(CI.getLoc(), diag::note_previous_attribute);
 2507     S.Diag(AL.getRange().getBegin(), diag::warn_attribute_ignored) << AL;
 2516     S.Diag(AL.getRange().getBegin(), diag::err_attribute_wrong_decl_type)
 2529     S.Diag(LiteralLoc, diag::warn_attribute_type_not_supported) << AL
 2538     S.Diag(AL.getLoc(), diag::warn_attribute_protected_visibility);
 2556     S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type)
 2564     S.Diag(IL->Loc, diag::warn_attribute_type_not_supported) << AL << IL->Ident;
 2570     S.Diag(M->getLocation(), diag::err_init_method_bad_return_type)
 2583       S.Diag(TD->getLocation(), diag::err_nsobject_attribute);
 2590       S.Diag(PD->getLocation(), diag::err_nsobject_attribute);
 2601     S.Diag(D->getLocation(), diag::warn_nsobject_attribute);
 2610       S.Diag(TD->getLocation(), diag::warn_ptr_independentclass_attribute);
 2614     S.Diag(D->getLocation(), diag::warn_independentclass_attribute);
 2622     S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type)
 2630     S.Diag(AL.getLoc(), diag::warn_attribute_type_not_supported) << AL << II;
 2644       S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type)
 2650       S.Diag(AL.getLoc(), diag::err_attribute_sentinel_less_than_zero)
 2664       S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type)
 2673       S.Diag(AL.getLoc(), diag::err_attribute_sentinel_not_zero_or_one)
 2682       S.Diag(AL.getLoc(), diag::warn_attribute_sentinel_named_arguments);
 2687       S.Diag(AL.getLoc(), diag::warn_attribute_sentinel_not_variadic) << 0;
 2692       S.Diag(AL.getLoc(), diag::warn_attribute_sentinel_not_variadic) << 0;
 2697       S.Diag(AL.getLoc(), diag::warn_attribute_sentinel_not_variadic) << 1;
 2708         S.Diag(AL.getLoc(), diag::warn_attribute_sentinel_not_variadic) << m;
 2712       S.Diag(AL.getLoc(), diag::warn_attribute_wrong_decl_type)
 2717     S.Diag(AL.getLoc(), diag::warn_attribute_wrong_decl_type)
 2728     S.Diag(AL.getLoc(), diag::warn_attribute_void_function_method) << AL << 0;
 2733       S.Diag(AL.getLoc(), diag::warn_attribute_void_function_method) << AL << 1;
 2747         S.Diag(AL.getLoc(), diag::ext_cxx2a_attr) << AL;
 2756       S.Diag(AL.getLoc(), diag::ext_cxx17_attr) << AL;
 2767       S.Diag(AL.getLoc(), diag::warn_attribute_invalid_on_definition)
 2774       S.Diag(AL.getLoc(), diag::warn_attribute_wrong_decl_type)
 2793       S.Diag(AL.getLoc(), diag::err_attribute_argument_is_zero)
 2803     S.Diag(AL.getLoc(), diag::warn_duplicate_attribute) << AL;
 2816     S.Diag(AL.getLoc(), diag::err_attribute_argument_is_zero)
 2824     S.Diag(AL.getLoc(), diag::warn_duplicate_attribute) << AL;
 2832     S.Diag(AL.getLoc(), diag::err_attribute_wrong_number_arguments) << AL << 1;
 2843     S.Diag(AL.getLoc(), diag::err_attribute_invalid_argument) << 3 << AL;
 2849       S.Diag(AL.getLoc(), diag::warn_duplicate_attribute) << AL;
 2869     Diag(ExistingAttr->getLocation(), diag::warn_mismatched_section)
 2871     Diag(CI.getLoc(), diag::note_previous_attribute);
 2880     Diag(LiteralLoc, diag::err_attribute_section_invalid_for_target) << Error
 2901     S.Diag(LiteralLoc, diag::err_attribute_section_invalid_for_target)
 2918     S.Diag(LiteralLoc, diag::err_attribute_section_invalid_for_target)
 2937     Diag(ExistingAttr->getLocation(), diag::warn_mismatched_section)
 2939     Diag(CI.getLoc(), diag::note_previous_attribute);
 2954       S.Diag(AL.getLoc(),
 2973       return Diag(LiteralLoc, diag::warn_unsupported_target_attribute)
 2980     return Diag(LiteralLoc, diag::warn_unsupported_target_attribute)
 2984     return Diag(LiteralLoc, diag::warn_unsupported_target_attribute)
 2990       return Diag(LiteralLoc, diag::warn_unsupported_target_attribute)
 3018     S.Diag(AL.getLoc(), diag::warn_duplicate_attribute) << AL;
 3035       S.Diag(Loc, diag::warn_cleanup_ext);
 3039       S.Diag(Loc, diag::err_attribute_cleanup_arg_not_function) << 1
 3045       S.Diag(Loc, diag::warn_cleanup_ext);
 3049       S.Diag(Loc, diag::err_attribute_cleanup_arg_not_function) << 2
 3056     S.Diag(Loc, diag::err_attribute_cleanup_arg_not_function) << 0;
 3061     S.Diag(Loc, diag::err_attribute_cleanup_func_must_take_one_arg)
 3072     S.Diag(Loc, diag::err_attribute_cleanup_func_arg_incompatible_type)
 3083     S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type)
 3092     S.Diag(AL.getLoc(), diag::warn_attribute_type_not_supported) << AL << II;
 3116     S.Diag(AL.getLoc(), diag::err_format_attribute_not)
 3126     S.Diag(AL.getLoc(), diag::err_format_attribute_result_not)
 3169     S.Diag(AL.getLoc(), diag::warn_attribute_ignored) << AL;
 3174     S.Diag(AL.getLoc(), diag::err_init_priority_object_attr);
 3182     S.Diag(AL.getLoc(), diag::err_init_priority_object_attr);
 3195     S.Diag(AL.getLoc(), diag::err_attribute_argument_out_of_range)
 3226     S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type)
 3251     S.Diag(AL.getLoc(), diag::warn_attribute_type_not_supported)
 3263     S.Diag(AL.getLoc(), diag::err_attribute_argument_out_of_bounds)
 3273       S.Diag(AL.getLoc(),
 3286       S.Diag(AL.getLoc(), diag::err_format_attribute_not)
 3295       S.Diag(AL.getLoc(), diag::err_format_attribute_not)
 3302     S.Diag(AL.getLoc(), diag::err_format_attribute_not)
 3319       S.Diag(D->getLocation(), diag::err_format_attribute_requires_variadic);
 3328       S.Diag(AL.getLoc(), diag::err_format_strftime_third_parameter)
 3334     S.Diag(AL.getLoc(), diag::err_attribute_argument_out_of_bounds)
 3348     S.Diag(AL.getLoc(), diag::err_callback_attribute_no_callee)
 3379         S.Diag(AL.getLoc(), diag::err_callback_attribute_argument_unknown)
 3392         S.Diag(AL.getLoc(), diag::err_attribute_argument_out_of_bounds)
 3399         S.Diag(AL.getLoc(), diag::err_attribute_argument_out_of_bounds)
 3410       S.Diag(AL.getLoc(), diag::err_callback_implicit_this_not_available)
 3428     S.Diag(AL.getLoc(), diag::err_callback_attribute_invalid_callee)
 3439     S.Diag(AL.getLoc(), diag::err_callback_callee_no_function_type)
 3451     S.Diag(AL.getLoc(), diag::err_callback_callee_no_function_type)
 3457     S.Diag(AL.getLoc(), diag::err_attribute_wrong_number_arguments)
 3463     S.Diag(AL.getLoc(), diag::err_attribute_wrong_number_arguments)
 3469     S.Diag(AL.getLoc(), diag::err_callback_callee_is_variadic) << AL.getRange();
 3475     S.Diag(AL.getLoc(), diag::err_callback_attribute_multiple) << AL.getRange();
 3493     S.Diag(AL.getLoc(), diag::warn_attribute_wrong_decl_type) << AL
 3500       S.Diag(AL.getLoc(),
 3508     S.Diag(AL.getLoc(), diag::warn_transparent_union_attribute_zero_fields);
 3515     S.Diag(FirstField->getLocation(),
 3540       S.Diag(Field->getLocation(),
 3544       S.Diag(FirstField->getLocation(),
 3588     Diag(AttrLoc, diag::warn_attribute_pointer_or_reference_only)
 3603       Diag(AttrLoc, diag::err_alignment_not_power_of_two)
 3619     S.Diag(AL.getLoc(), diag::err_attribute_wrong_number_arguments) << AL << 1;
 3630     S.Diag(AL.getEllipsisLoc(),
 3671       Diag(AttrLoc, diag::err_attribute_wrong_decl_type) << &TmpAttr
 3677       Diag(AttrLoc, diag::err_alignas_attribute_wrong_decl_type)
 3689         Diag(AttrLoc, diag::err_alignment_dependent_typedef_name)
 3720       Diag(AttrLoc, diag::err_alignment_not_power_of_two)
 3731     Diag(AttrLoc, diag::err_attribute_aligned_too_great) << MaxValidAlignment
 3743       Diag(VD->getLocation(), diag::err_tls_var_aligned_over_maximum)
 3795       Diag(AlignasAttr->getLocation(), diag::err_alignas_underaligned)
 3822   Diag(Range.getBegin(), diag::err_mismatched_ms_inheritance)
 3824   Diag(RD->getDefinition()->getLocation(), diag::note_defined_here)
 3895     S.Diag(AL.getLoc(), diag::err_attribute_argument_type)
 3929         Diag(AttrLoc, diag::warn_vector_mode_deprecated);
 3943     Diag(AttrLoc, diag::err_machine_mode) << 0 /*Unknown*/ << Name;
 3975     Diag(AttrLoc, diag::err_enum_mode_vector_type) << Name << CI.getRange();
 3983     Diag(AttrLoc, diag::err_mode_not_primitive);
 3986       Diag(AttrLoc, diag::err_mode_wrong_type);
 3989       Diag(AttrLoc, diag::err_mode_wrong_type);
 3992       Diag(AttrLoc, diag::err_mode_wrong_type);
 4004     Diag(AttrLoc, diag::err_machine_mode) << 1 /*Unsupported*/ << Name;
 4019       Diag(AttrLoc, diag::err_complex_mode_vector_type);
 4030     Diag(AttrLoc, diag::err_mode_wrong_type);
 4053     Diag(CI.getLoc(), diag::warn_attribute_ignored) << Ident;
 4054     Diag(Optnone->getLocation(), diag::note_conflicting_attribute);
 4084       Diag(AL.getLoc(), diag::warn_attribute_wrong_decl_type)
 4091       Diag(VD->getLocation(), diag::warn_internal_linkage_local_storage);
 4107       Diag(AL.getLocation(), diag::warn_attribute_wrong_decl_type)
 4114       Diag(VD->getLocation(), diag::warn_internal_linkage_local_storage);
 4127     Diag(CI.getLoc(), diag::warn_attribute_ignored) << "'minsize'";
 4128     Diag(Optnone->getLocation(), diag::note_conflicting_attribute);
 4149     Diag(Inline->getLocation(), diag::warn_attribute_ignored) << Inline;
 4150     Diag(CI.getLoc(), diag::note_conflicting_attribute);
 4154     Diag(MinSize->getLocation(), diag::warn_attribute_ignored) << MinSize;
 4155     Diag(CI.getLoc(), diag::note_conflicting_attribute);
 4197     S.Diag(AL.getLoc(), diag::err_cuda_nonglobal_constant);
 4211     S.Diag(AL.getLoc(), diag::err_cuda_extern_shared) << VD;
 4231     S.Diag(FD->getTypeSpecStartLoc(), diag::err_kern_type_not_void_return)
 4239       S.Diag(Method->getBeginLoc(), diag::err_kern_is_nonstatic_method)
 4243     S.Diag(Method->getBeginLoc(), diag::warn_kern_is_method) << Method;
 4247     S.Diag(FD->getBeginLoc(), diag::warn_kern_is_inline) << FD;
 4255     S.Diag(AL.getLoc(), diag::warn_gnu_inline_attribute_requires_inline);
 4260     S.Diag(AL.getLoc(), diag::warn_gnu_inline_cplusplus_without_extern);
 4275     S.Diag(AL.getLoc(), diag::warn_attribute_wrong_decl_type)
 4379       S.Diag(AL.getLoc(), diag::err_attribute_invalid_argument)
 4396         S.Diag(AL.getLoc(), diag::err_attributes_are_not_compatible)
 4398         S.Diag(OAttr->getLocation(), diag::note_conflicting_attribute);
 4413         S.Diag(AL.getLoc(), diag::err_attributes_are_not_compatible)
 4415         S.Diag(PAttr->getLocation(), diag::note_conflicting_attribute);
 4494     Diag(Attrs.getLoc(), diag::err_invalid_pcs);
 4557     Diag(Attrs.getLoc(), diag::error_cconv_unsupported)
 4562     Diag(Attrs.getLoc(), diag::warn_cconv_unsupported)
 4621       Diag(CI.getLoc(), diag::err_attributes_are_not_compatible)
 4623       Diag(existingAttr->getLocation(), diag::note_conflicting_attribute);
 4634       Diag(CI.getLoc(), diag::err_swift_abi_parameter_wrong_type)
 4642       Diag(CI.getLoc(), diag::err_swift_abi_parameter_wrong_type)
 4650       Diag(CI.getLoc(), diag::err_swift_abi_parameter_wrong_type)
 4678     Diag(AL.getLoc(), diag::err_attribute_regparm_wrong_platform)
 4686     Diag(AL.getLoc(), diag::err_attribute_regparm_invalid_number)
 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)
 4765     S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type)
 4786       S.Diag(AL.getLoc(), diag::err_attribute_pointers_only) << AL << 0;
 4797     S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type)
 4806     S.Diag(AL.getLoc(), diag::err_attribute_wrong_decl_type)
 4846     S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type)
 4856     S.Diag(AL.getLoc(), diag::err_attribute_arm_mve_alias);
 4949   Diag(Loc, diag::warn_ns_attribute_wrong_return_type)
 4986       S.Diag(D->getBeginLoc(), diag::warn_ns_attribute_wrong_parameter_type)
 5009     S.Diag(D->getBeginLoc(), diag::warn_attribute_wrong_decl_type)
 5049       S.Diag(D->getBeginLoc(), diag::warn_ns_attribute_wrong_parameter_type)
 5062       S.Diag(D->getBeginLoc(), diag::warn_ns_attribute_wrong_return_type)
 5109     S.Diag(D->getBeginLoc(), diag::warn_ns_attribute_wrong_return_type)
 5127     S.Diag(D->getBeginLoc(), diag::warn_objc_requires_super_protocol) << Attrs
 5129     S.Diag(PDecl->getLocation(), diag::note_protocol_decl);
 5133     S.Diag(D->getBeginLoc(), diag::warn_objc_requires_super_protocol) << Attrs
 5145     S.Diag(D->getBeginLoc(), diag::err_objc_attr_not_id) << AL << 0;
 5152       S.Diag(AL.getLoc(), diag::err_objc_attr_typedef_not_id) << AL;
 5159       S.Diag(AL.getLoc(), diag::err_objc_attr_typedef_not_void_pointer);
 5172     S.Diag(D->getBeginLoc(), diag::err_objc_attr_not_id) << AL << 0;
 5185     S.Diag(D->getBeginLoc(), diag::err_objc_attr_not_id) << AL << 0;
 5205     S.Diag(D->getLocation(), diag::err_designated_init_attr_non_init);
 5259   S.Diag(D->getBeginLoc(), diag::err_attribute_wrong_decl_type)
 5270     S.Diag(AL.getLoc(), diag::err_objc_precise_lifetime_bad_type)
 5294     S.Diag(AL.getLoc(), diag::warn_objc_precise_lifetime_meaningless)
 5311     Diag(UA->getLocation(), diag::err_mismatched_uuid);
 5312     Diag(CI.getLoc(), diag::note_previous_uuid);
 5321     S.Diag(AL.getLoc(), diag::err_attribute_not_supported_in_lang)
 5338     S.Diag(LiteralLoc, diag::err_attribute_uuid_malformed_guid);
 5345         S.Diag(LiteralLoc, diag::err_attribute_uuid_malformed_guid);
 5349       S.Diag(LiteralLoc, diag::err_attribute_uuid_malformed_guid);
 5361     S.Diag(AL.getLoc(), diag::warn_atl_uuid_deprecated);
 5370     S.Diag(AL.getLoc(), diag::err_attribute_not_supported_in_lang)
 5386     S.Diag(AL.getLoc(), diag::err_thread_unsupported);
 5390     S.Diag(AL.getLoc(), diag::err_declspec_thread_on_thread_variable);
 5394     S.Diag(AL.getLoc(), diag::err_thread_non_global) << "__declspec(thread)";
 5411       S.Diag(AL.getLoc(), diag::warn_attr_abi_tag_namespace) << 0;
 5415       S.Diag(AL.getLoc(), diag::warn_attr_abi_tag_namespace) << 1;
 5434     S.Diag(AL.getLoc(), diag::err_attribute_too_many_arguments) << AL << 1;
 5448     S.Diag(AL.getLoc(), diag::warn_attribute_type_not_supported) << AL << Str
 5460     S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
 5466     S.Diag(D->getLocation(), diag::warn_interrupt_attribute_invalid)
 5472     S.Diag(D->getLocation(), diag::warn_interrupt_attribute_invalid)
 5482     S.Diag(AL.getLoc(), diag::err_attribute_argument_type)
 5490     S.Diag(AL.getLoc(), diag::err_attribute_argument_type)
 5498     S.Diag(AL.getLoc(), diag::err_attribute_argument_out_of_bounds)
 5511     S.Diag(AL.getLoc(), diag::err_attribute_too_many_arguments) << AL << 1;
 5533     S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
 5539     S.Diag(D->getLocation(), diag::warn_interrupt_attribute_invalid)
 5545     S.Diag(D->getLocation(), diag::warn_interrupt_attribute_invalid)
 5555     S.Diag(AL.getLoc(), diag::warn_attribute_type_not_supported)
 5573     S.Diag(AL.getLoc(), diag::warn_attribute_wrong_decl_type)
 5579     S.Diag(getFunctionOrMethodResultSourceRange(D).getBegin(),
 5590     S.Diag(D->getBeginLoc(), diag::err_anyx86_interrupt_attribute)
 5599     S.Diag(getFunctionOrMethodParamRange(D, 0).getBegin(),
 5615     S.Diag(getFunctionOrMethodParamRange(D, 1).getBegin(),
 5629     S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
 5642     S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
 5655     S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
 5662     S.Diag(D->getLocation(), diag::err_alias_is_definition) << FD << 0;
 5677     S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
 5684     S.Diag(D->getLocation(), diag::err_alias_is_definition) << FD << 0;
 5700     S.Diag(AL.getRange().getBegin(),
 5702     S.Diag(A->getLocation(), diag::note_riscv_repeated_interrupt_attribute);
 5727     S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
 5733     S.Diag(D->getLocation(), diag::warn_interrupt_attribute_invalid)
 5739     S.Diag(D->getLocation(), diag::warn_interrupt_attribute_invalid)
 5746     S.Diag(AL.getLoc(), diag::warn_attribute_type_not_supported) << AL << Str
 5798     S.Diag(Attr.getLocation(), diag::err_attribute_argument_invalid)
 5803     S.Diag(Attr.getLocation(), diag::err_attribute_argument_invalid)
 5852     S.Diag(Attr.getLocation(), diag::err_attribute_argument_invalid)
 5857     S.Diag(Attr.getLocation(), diag::err_attribute_argument_invalid)
 5920     S.Diag(AL.getLoc(), diag::warn_attribute_wrong_decl_type)
 5936     S.Diag(AL.getLoc(), diag::err_attribute_argument_out_of_bounds)
 5952     Diag(CI.getLoc(), diag::warn_attribute_ignored) << "'dllimport'";
 5965     Diag(Import->getLocation(), diag::warn_attribute_ignored) << Import;
 5978     S.Diag(A.getRange().getBegin(), diag::warn_attribute_ignored) << A;
 5986       S.Diag(A.getRange().getBegin(), diag::warn_attribute_ignored_on_inline)
 5995       S.Diag(A.getRange().getBegin(), diag::err_attribute_dll_lambda) << A;
 6014     Diag(IA->getLocation(), diag::err_mismatched_ms_inheritance)
 6016     Diag(CI.getLoc(), diag::note_previous_ms_inheritance);
 6028       Diag(CI.getLoc(), diag::warn_ignored_ms_inheritance)
 6033       Diag(CI.getLoc(), diag::warn_ignored_ms_inheritance)
 6060     S.Diag(LiteralLoc, diag::warn_invalid_capability_name) << N;
 6124       S.Diag(AL.getLoc(), diag::warn_deprecated_anonymous_namespace);
 6146     S.Diag(AL.getLoc(), diag::ext_cxx14_attr) << AL;
 6172       S.Diag(LiteralLoc, diag::warn_unknown_sanitizer_ignored) << SanitizerName;
 6174       S.Diag(D->getLocation(), diag::err_attribute_wrong_decl_type)
 6193     S.Diag(D->getLocation(), diag::err_attribute_wrong_decl_type)
 6221     S.Diag(AL.getLoc(), diag::err_attribute_requires_opencl_version)
 6224     S.Diag(AL.getLoc(), diag::warn_opencl_attr_deprecated_ignored) << AL
 6279       S.Diag(AL.getLoc(), diag::warn_duplicate_declspec)
 6282       S.Diag(AL.getLoc(), diag::err_opencl_multiple_access_qualifiers)
 6300         S.Diag(AL.getLoc(), diag::err_opencl_invalid_read_write)
 6313     S.Diag(D->getLocation(), diag::err_destroy_attr_on_non_static_var)
 6335       S.Diag(VD->getBeginLoc(), diag::warn_ignored_objc_externally_retained)
 6353       S.Diag(VD->getBeginLoc(), diag::warn_ignored_objc_externally_retained)
 6372       S.Diag(D->getBeginLoc(), diag::warn_ignored_objc_externally_retained)
 6416       S.Diag(D->getBeginLoc(),
 6430       S.Diag(AL.getLoc(), diag::warn_declspec_allocator_nonpointer)
 6462     S.Diag(AL.getLoc(),
 6480     S.Diag(AL.getLoc(), diag::err_stmt_attribute_invalid_on_decl)
 7216     Diag(AttrList.begin()->getLoc(), diag::err_attribute_weakref_without_alias)
 7231       Diag(D->getLocation(), diag::err_opencl_kernel_attr) << A;
 7234       Diag(D->getLocation(), diag::err_opencl_kernel_attr) << A;
 7237       Diag(D->getLocation(), diag::err_opencl_kernel_attr) << A;
 7240       Diag(D->getLocation(), diag::err_opencl_kernel_attr) << A;
 7244         Diag(D->getLocation(), diag::err_attribute_wrong_decl_type)
 7248         Diag(D->getLocation(), diag::err_attribute_wrong_decl_type)
 7252         Diag(D->getLocation(), diag::err_attribute_wrong_decl_type)
 7256         Diag(D->getLocation(), diag::err_attribute_wrong_decl_type)
 7270     Diag(D->getLocation(), diag::err_designated_init_attr_non_init);
 7293       Diag(AL.getLoc(), diag::err_only_annotate_after_access_spec);
 7311       S.Diag(AL.getLoc(), diag::warn_unknown_attribute_ignored)
 7314       S.Diag(AL.getLoc(), diag::warn_attribute_not_on_decl) << AL
 7507   S.Diag(DD.Loc, DD.getForbiddenTypeDiagnostic())
 7861     S.Diag(Loc, Warning) << OffendingDecl << PlatformName
 7864     S.Diag(OffendingDecl->getLocation(),
 7872           S.Diag(TD->getLocation(),
 7878           S.Diag(Enclosing->getLocation(),
 8010     S.Diag(Loc, diag_message) << ReferringDecl << Message << FixIts;
 8012       S.Diag(ObjCProperty->getLocation(), diag::note_property_attribute)
 8015     S.Diag(Loc, diag) << ReferringDecl << FixIts;
 8017       S.Diag(ObjCProperty->getLocation(), diag::note_property_attribute)
 8020     S.Diag(Loc, diag_fwdclass_message) << ReferringDecl << FixIts;
 8021     S.Diag(UnknownObjCClass->getLocation(), diag::note_forward_class);
 8024   S.Diag(NoteLocation, diag_available_here)
 8277     SemaRef.Diag(E->getBeginLoc(), diag::warn_at_available_unchecked_use)
 8324     SemaRef.Diag(Range.getBegin(), DiagKind)
 8327     SemaRef.Diag(OffendingDecl->getLocation(),
 8335         SemaRef.Diag(Range.getBegin(), diag::note_unguarded_available_silence)
tools/clang/lib/Sema/SemaDeclCXX.cpp
   97       return S->Diag(DRE->getBeginLoc(),
  105         return S->Diag(DRE->getBeginLoc(),
  118     return S->Diag(ThisE->getBeginLoc(),
  147     return S->Diag(Lambda->getBeginLoc(), diag::err_lambda_capture_default_arg);
  309     Diag(EqualLoc, diag::err_param_default_argument)
  325     Diag(EqualLoc, diag::err_param_default_argument_on_parameter_pack)
  407           Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc)
  410           Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc)
  537       Diag(NewParam->getLocation(), DiagDefaultParamID)
  548       Diag(OldParam->getLocation(), diag::note_previous_definition)
  571         Diag(NewParam->getLocation(),
  574         Diag(PrevForDefaultArgs->getLocation(),
  589         Diag(NewParam->getLocation(), diag::err_template_spec_default_arg)
  614         Diag(NewParam->getLocation(),
  632       Diag(NewParam->getLocation(), diag::err_default_arg_makes_ctor_special)
  634       Diag(Old->getLocation(), diag::note_previous_declaration);
  643     Diag(New->getLocation(), diag::err_constexpr_redecl_mismatch)
  645     Diag(Old->getLocation(), diag::note_previous_declaration);
  657     Diag(New->getLocation(), diag::err_inline_decl_follows_def) << New;
  658     Diag(Def->getLocation(), diag::note_previous_definition);
  668     Diag(New->getLocation(), diag::err_deduction_guide_redeclared);
  669     Diag(Old->getLocation(), diag::note_previous_declaration);
  678     Diag(New->getLocation(), diag::err_friend_decl_with_def_arg_redeclared);
  679     Diag(Old->getLocation(), diag::note_previous_declaration);
  696     Diag(Decomp.getLSquareLoc(), diag::err_decomp_decl_context)
  704     Diag(TemplateParamLists.front()->getTemplateLoc(),
  709   Diag(Decomp.getLSquareLoc(),
  755       auto &&Err = Diag(BadSpecifierLocs.front(), diag::err_decomp_decl_spec);
  763       auto &&Warn = Diag(CPlusPlus20SpecifierLocs.front(),
  782     Diag(DS.getVolatileSpecLoc(),
  799     Diag(Decomp.getLSquareLoc(),
  840       Diag(B.NameLoc, diag::err_redefinition) << B.Name;
  841       Diag(Old->getLocation(), diag::note_previous_definition);
  878     S.Diag(Src->getLocation(), diag::err_decomp_decl_wrong_number_bindings)
  964       S.Diag(Loc, DiagID) << printTemplateArgs(S.Context.getPrintingPolicy(),
  990     S.Diag(Loc, diag::err_std_type_trait_not_class_template) << Trait;
  991     S.Diag(Found->getLocation(), diag::note_declared_at);
 1056       S.Diag(Loc, diag::err_decomp_decl_std_tuple_size_not_constant)
 1092     S.Diag(Loc, diag::err_decomp_decl_std_tuple_element_not_specialized)
 1095       S.Diag(R.getRepresentativeDecl()->getLocation(), diag::note_declared_at);
 1112       S.Diag(BD->getLocation(), diag::note_in_binding_decl_init) << BD;
 1122     S.Diag(Src->getLocation(), diag::err_decomp_decl_wrong_number_bindings)
 1287         S.Diag(Loc, diag::err_decomp_decl_multiple_bases_with_members)
 1299       S.Diag(Loc, diag::err_decomp_decl_ambiguous_base)
 1317     S.Diag(Loc, diag::err_decomp_decl_multiple_bases_with_members)
 1347     S.Diag(Src->getLocation(), diag::err_decomp_decl_wrong_number_bindings)
 1362       S.Diag(Src->getLocation(), diag::err_decomp_decl_anon_union_member)
 1364       S.Diag(FD->getLocation(), diag::note_declared_at);
 1471     Diag(DD->getLocation(), diag::err_decomp_decl_unbindable_type)
 1553         Diag(Param->getLocation(),
 1557         Diag(Param->getLocation(),
 1611       SemaRef.Diag(DD->getLocation(), diag::err_constexpr_dtor_subobject)
 1614       SemaRef.Diag(Loc, diag::note_constexpr_dtor_subobject)
 1692       Diag(NewFD->getLocation(), diag::err_constexpr_virtual_base)
 1696         Diag(I.getBeginLoc(), diag::note_constexpr_virtual_base_here)
 1711           Diag(Method->getLocation(), diag::warn_cxx17_compat_constexpr_virtual);
 1717         Diag(Method->getLocation(), diag::err_constexpr_virtual);
 1725           Diag(WrittenVirtual->getLocation(),
 1794           SemaRef.Diag(TL.getBeginLoc(), diag::err_constexpr_vla)
 1808           SemaRef.Diag(DS->getBeginLoc(),
 1836             SemaRef.Diag(VD->getLocation(),
 1850             SemaRef.Diag(
 1863         SemaRef.Diag(VD->getLocation(),
 1884         SemaRef.Diag(DS->getBeginLoc(), diag::err_constexpr_body_invalid_stmt)
 1936         SemaRef.Diag(Dcl->getLocation(),
 1942       SemaRef.Diag(Field->getLocation(),
 2097     SemaRef.Diag(S->getBeginLoc(), diag::err_constexpr_body_invalid_stmt)
 2133       SemaRef.Diag(Body->getBeginLoc(),
 2162     SemaRef.Diag(Cxx2aLoc,
 2168     SemaRef.Diag(Cxx1yLoc,
 2188           SemaRef.Diag(
 2247         SemaRef.Diag(Dcl->getLocation(),
 2266         SemaRef.Diag(
 2272           SemaRef.Diag(ReturnStmts[I],
 2300     SemaRef.Diag(Dcl->getLocation(),
 2417     Diag(Class->getLocation(), diag::err_base_clause_on_union)
 2424     Diag(EllipsisLoc, diag::err_pack_expansion_without_parameter_packs)
 2439         Diag(BaseLoc, diag::err_circular_inheritance)
 2443           Diag(BaseDecl->getLocation(), diag::note_previous_decl)
 2457     Diag(BaseLoc, diag::err_base_must_be_class) << SpecifierRange;
 2464     Diag(BaseLoc, diag::err_union_as_base_class) << SpecifierRange;
 2503     Diag(Class->getLocation(), diag::err_mismatched_code_seg_base);
 2504     Diag(CXXBaseDecl->getLocation(), diag::note_base_class_specified_here)
 2516     Diag(BaseLoc, diag::err_base_class_has_flexible_array_member)
 2525     Diag(BaseLoc, diag::err_class_marked_final_used_as_base)
 2528     Diag(CXXBaseDecl->getLocation(), diag::note_entity_declared_at)
 2569     Diag(AL.getLoc(), AL.getKind() == ParsedAttr::UnknownAttribute
 2648       Diag(Bases[idx]->getBeginLoc(), diag::err_duplicate_base_class)
 2672           Diag(KnownBase->getBeginLoc(), diag::err_invalid_base_in_interface)
 2708         Diag(Bases[idx]->getBeginLoc(), diag::warn_inaccessible_base_class)
 2850           Diag(Loc, diag::ext_ms_ambiguous_direct_base)
 2896     Diag(Loc, AmbigiousBaseConvID)
 2985         Diag(OA->getLocation(),
 2989         Diag(FA->getLocation(),
 3004       Diag(OA->getLocation(),
 3010       Diag(FA->getLocation(),
 3025     Diag(MD->getLocation(), diag::err_function_marked_override_not_overriding)
 3048     Diag(MD->getLocation(), DiagID) << MD->getDeclName();
 3050     Diag(OMD->getLocation(), diag::note_overridden_virtual_function);
 3063   Diag(New->getLocation(), diag::err_final_function_overridden)
 3066   Diag(Old->getLocation(), diag::note_overridden_virtual_function);
 3133       Diag(Loc, diag::warn_shadow_field)
 3135       Diag(BaseField->getLocation(), diag::note_shadow_field);
 3207         Diag(Loc, diag::err_invalid_member_in_interface)
 3210         Diag(Loc, diag::err_invalid_member_in_interface)
 3228       Diag(DS.getStorageClassSpecLoc(), diag::err_mutable_function);
 3236     Diag(DS.getStorageClassSpecLoc(),
 3248         Diag(DS.getConstexprSpecLoc(), diag::err_invalid_constexpr_member);
 3287       Diag(Loc, diag::err_bad_variable_name)
 3300         Diag(D.getIdentifierLoc(), diag::err_template_member)
 3306         Diag(TemplateParams->getTemplateLoc(),
 3327         Diag(D.getIdentifierLoc(), diag::err_member_qualification)
 3359         Diag(Loc, diag::err_static_not_bitfield)
 3363         Diag(Loc, diag::err_typedef_not_bitfield)
 3368         Diag(Loc, diag::err_not_integral_type_bitfield)
 3400         Diag(DG->getBeginLoc(), diag::err_deduction_guide_wrong_access);
 3401         Diag(TD->getBeginLoc(), diag::note_deduction_guide_template_access)
 3409         Diag(LastAccessSpec->getBeginLoc(), diag::note_deduction_guide_access)
 3568             S.Diag(FieldME->getExprLoc(), diag::warn_base_class_is_uninit)
 3593       S.Diag(FieldME->getExprLoc(), diag) << FoundVD;
 3595         S.Diag(Constructor->getLocation(),
 4092       Diag(EllipsisLoc, diag::err_pack_expansion_member_init)
 4109     Diag(DS.getTypeSpecTypeLoc(), diag::err_decltype_auto_invalid);
 4181             Diag(BaseSpec->getBeginLoc(), diag::note_base_class_specified_here)
 4190         Diag(IdLoc, diag::err_mem_init_not_member_or_class)
 4298     return Diag(NameLoc, diag::err_delegating_ctor)
 4300   Diag(NameLoc, diag::warn_cxx98_compat_delegating_ctor);
 4358     return Diag(BaseLoc, diag::err_base_init_does_not_name_class)
 4373       Diag(EllipsisLoc, diag::err_pack_expansion_without_parameter_packs)
 4411         return Diag(BaseLoc, diag::err_not_direct_base_or_virtual)
 4431     return Diag(BaseLoc, diag::err_base_init_direct_and_virtual)
 4711       SemaRef.Diag(Constructor->getLocation(),
 4716       SemaRef.Diag(Field->getLocation(), diag::note_declared_at);
 4721       SemaRef.Diag(Constructor->getLocation(),
 4726       SemaRef.Diag(Field->getLocation(), diag::note_declared_at);
 5015         Diag(Value->getSourceLocation(), diag::warn_abstract_vbase_init_ignored)
 5208         SemaRef.Diag(PrevInit->getSourceLocation(),
 5244     S.Diag(Init->getSourceLocation(),
 5251     S.Diag(Init->getSourceLocation(),
 5256   S.Diag(PrevInit->getSourceLocation(), diag::note_previous_initializer)
 5276         S.Diag(Init->getSourceLocation(),
 5280         S.Diag(En.second->getSourceLocation(), diag::note_previous_initializer)
 5314     Diag(ColonLoc, diag::err_only_constructors_take_base_inits);
 5346         Diag(Init->getSourceLocation(),
 5575       Diag(SO->second.front().Method->getLocation(),
 5685       Info.S.Diag(Ctx->getLocation(), diag::err_array_of_abstract_type)
 5688       Info.S.Diag(Ctx->getLocation(), diag::err_abstract_type_in_decl)
 5802           S.Diag(ClassAttr->getLocation(), diag::note_due_to_dllexported_class)
 5842       S.Diag(LastExportedDefaultCtor->getLocation(),
 5845       S.Diag(CD->getLocation(), diag::note_entity_declared_at)
 5883     Diag(Class->getLocation(), diag::err_attribute_dll_not_extern)
 5898       Diag(MemberAttr->getLocation(),
 5901       Diag(ClassAttr->getLocation(), diag::note_previous_attribute);
 6073   Diag(BaseLoc, diag::warn_attribute_dll_instantiated_base_class)
 6075   Diag(ClassAttr->getLocation(), diag::note_attribute);
 6077     Diag(BaseTemplateSpec->getLocation(),
 6081     Diag(BaseTemplateSpec->getPointOfInstantiation(),
 6315           Diag(Record->getLocation(), diag::warn_no_constructor_for_refconst)
 6320         Diag(F->getLocation(), diag::note_refconst_member_not_initialized)
 6343         Diag((*I)->getLocation(), diag::err_member_name_of_class)
 6355       Diag(dtor ? dtor->getLocation() : Record->getLocation(),
 6361       Diag(Record->getLocation(), diag::warn_abstract_final_class)
 6371         Diag(FA->getLocation(), diag::warn_final_dtor_non_final_class)
 6376         Diag(Record->getLocation(),
 6497     Diag(Record->getLocation(), diag::warn_cxx_ms_struct);
 6606           S.Diag(UseLoc, diag::err_ambiguous_inherited_constructor)
 6608           S.Diag(ConstructedBaseUsing->getLocation(),
 6613         S.Diag(D->getUsingDecl()->getLocation(),
 6884     Diag(MD->getLocation(), diag::err_defaulted_special_member_params)
 6891       Diag(MD->getLocation(), diag::err_defaulted_special_member_variadic)
 6915       Diag(MD->getLocation(), diag::err_defaulted_special_member_return_type)
 6925         Diag(MD->getLocation(), diag::err_defaulted_special_member_quals)
 6944         Diag(MD->getLocation(),
 6954         Diag(MD->getLocation(),
 6960         Diag(MD->getLocation(),
 6970     Diag(MD->getLocation(), diag::err_defaulted_copy_assign_not_ref);
 6990     Diag(MD->getBeginLoc(), MD->isConsteval()
 7024         Diag(MD->getLocation(), diag::warn_defaulted_method_deleted) << CSM;
 7026           Diag(MD->getLocation(), diag::note_deleted_type_mismatch) << CSM;
 7032         Diag(MD->getLocation(),
 7039       Diag(MD->getLocation(), diag::err_out_of_line_default_deletes) << CSM;
 7066       Diag(FD->getLocation(), diag::err_defaulted_comparison_param)
 7080       Diag(MD->getLocation(), diag::err_defaulted_comparison_non_const)
 7117     Diag(FD->getLocation(),
 7121     Diag(ReferenceMember->getLocation(), diag::note_reference_member)
 7126     Diag(FD->getLocation(),
 7139     Diag(FD->getLocation(), diag::err_defaulted_comparison_return_type_not_bool)
 7389       S.Diag(Field->getLocation(),
 7395       S.Diag(Base->getBeginLoc(),
 7466     S.Diag(FD->getLocation(),
 7492       S.Diag(Base->getBeginLoc(),
 7518         S.Diag(FD->getLocation(), diag::note_deleted_default_ctor_uninit_field)
 7530         S.Diag(FD->getLocation(), diag::note_deleted_default_ctor_uninit_field)
 7542         S.Diag(FD->getLocation(), diag::note_deleted_copy_ctor_rvalue_reference)
 7550         S.Diag(FD->getLocation(), diag::note_deleted_assign_field)
 7558         S.Diag(FD->getLocation(), diag::note_deleted_assign_field)
 7591           S.Diag(FieldRecord->getLocation(),
 7624       S.Diag(MD->getParent()->getLocation(),
 7653       Diag(RD->getLocation(), diag::note_lambda_decl);
 7706       Diag(UserDeclaredMove->getLocation(),
 7727         Diag(RD->getLocation(), diag::note_deleted_dtor_no_operator_delete);
 7951       S.Diag(SubobjLoc, diag::note_nontrivial_no_def_ctor)
 7954         S.Diag(CD->getLocation(), diag::note_user_declared_ctor);
 7956       S.Diag(SubobjLoc, diag::note_nontrivial_no_copy)
 7960         S.Diag(Selected->getLocation(), diag::note_nontrivial_user_provided)
 7963         S.Diag(SubobjLoc, diag::note_nontrivial_user_provided)
 7965         S.Diag(Selected->getLocation(), diag::note_declared_at);
 7969         S.Diag(SubobjLoc, diag::note_nontrivial_subobject)
 8008         S.Diag(FI->getLocation(), diag::note_nontrivial_in_class_init) << FI;
 8018         S.Diag(FI->getLocation(), diag::note_nontrivial_objc_ownership)
 8071         Diag(Param0->getLocation(), diag::note_nontrivial_param_type)
 8088         Diag(Param0->getLocation(), diag::note_nontrivial_param_type)
 8102       Diag(MD->getParamDecl(MD->getMinRequiredArguments())->getLocation(),
 8109       Diag(MD->getLocation(), diag::note_nontrivial_variadic);
 8147       Diag(MD->getLocation(), diag::note_nontrivial_virtual_dtor) << RD;
 8163       Diag(BS.getBeginLoc(), diag::note_nontrivial_has_virtual) << RD << 1;
 8171         Diag(MLoc, diag::note_nontrivial_has_virtual) << RD << 0;
 8314     Diag(MD->getLocation(), diag::warn_overloaded_virtual)
 8325       Diag(RD.getAttr<TrivialABIAttr>()->getLocation(),
 8377     Diag(AL.getLoc(), diag::warn_attribute_after_definition_ignored) << AL;
 8613           S.Diag(SL, DiagID) << QualName << SourceRange(SL);
 8638       Diag(D.getIdentifierLoc(), diag::err_constructor_cannot_be)
 8645       Diag(D.getIdentifierLoc(), diag::err_constructor_cannot_be)
 8667     Diag(FTI.getRefQualifierLoc(), diag::err_ref_qualifier_constructor)
 8714       Diag(ParamLoc, diag::err_constructor_byvalue_arg)
 8760             Diag(Loc, diag::note_implicit_delete_this_in_destructor_here);
 8791     Diag(D.getIdentifierLoc(), diag::err_destructor_typedef_name)
 8796       Diag(D.getIdentifierLoc(), diag::err_destructor_typedef_name)
 8809       Diag(D.getIdentifierLoc(), diag::err_destructor_cannot_be)
 8826       Diag(D.getIdentifierLoc(), diag::err_destructor_return_type)
 8846     Diag(FTI.getRefQualifierLoc(), diag::err_ref_qualifier_destructor)
 8854     Diag(D.getIdentifierLoc(), diag::err_destructor_with_params);
 8863     Diag(D.getIdentifierLoc(), diag::err_destructor_variadic);
 8912       Diag(D.getIdentifierLoc(), diag::err_conv_function_not_member)
 8933     Diag(D.getIdentifierLoc(), diag::err_conv_function_return_type)
 8943     Diag(D.getIdentifierLoc(), diag::err_conv_function_with_complex_decl)
 8952     Diag(D.getIdentifierLoc(), diag::err_conv_function_with_params);
 8958     Diag(D.getIdentifierLoc(), diag::err_conv_function_variadic);
 9006     auto &&DB = Diag(Loc, diag::err_conv_function_with_complex_decl);
 9042     Diag(D.getIdentifierLoc(), diag::err_conv_function_to_array);
 9046     Diag(D.getIdentifierLoc(), diag::err_conv_function_to_function);
 9059     Diag(DS.getExplicitSpecLoc(),
 9096       Diag(Conversion->getLocation(), diag::warn_conv_to_self_not_used)
 9099       Diag(Conversion->getLocation(), diag::warn_conv_to_base_not_used)
 9102     Diag(Conversion->getLocation(), diag::warn_conv_to_void_not_used)
 9118       : S(S), Diagnostic(S.Diag(Loc, DiagID)) {}
 9158     Diag(D.getIdentifierLoc(), diag::err_deduction_guide_wrong_scope)
 9160     Diag(GuidedTemplateDecl->getLocation(), diag::note_template_decl_here);
 9205       Diag(D.getDeclSpec().getBeginLoc(),
 9211       Diag(D.getName().getBeginLoc(),
 9243       Diag(TSI->getTypeLoc().getBeginLoc(),
 9256     Diag(D.getIdentifierLoc(), diag::err_deduction_guide_defines_function);
 9294     S.Diag(Loc, diag::warn_inline_namespace_reopened_noninline)
 9297     S.Diag(Loc, diag::err_inline_namespace_mismatch);
 9299   S.Diag(PrevNS->getLocation(), diag::note_previous_definition);
 9345       Diag(Loc, diag::err_redefinition_different_kind)
 9347       Diag(PrevDecl->getLocation(), diag::note_previous_definition);
 9515       auto D = S.Diag(Loc, diag::err_std_compare_type_not_supported)
 9523       S.Diag(VD->getLocation(), diag::note_var_declared_here)
 9546     Diag(Loc, diag::err_implied_comparison_category_type_not_found)
 9708     S.Diag(Loc, diag::err_implied_std_initializer_list_not_found);
 9715     S.Diag(Loc, diag::err_implied_std_initializer_list_not_found);
 9723     S.Diag(Found->getLocation(), diag::err_malformed_std_initializer_list);
 9732     S.Diag(Template->getLocation(), diag::err_malformed_std_initializer_list);
 9861       Diag(IdentLoc, diag::ext_using_undefined_std);
 9899       Diag(IdentLoc, diag::warn_using_directive_in_header);
 9904     Diag(IdentLoc, diag::err_expected_namespace_name) << SS.getRange();
 9935     Diag(Name.getBeginLoc(), diag::err_using_requires_qualname);
 9950     Diag(Name.getBeginLoc(),
 9961     Diag(Name.getBeginLoc(), diag::err_using_decl_destructor) << SS.getRange();
 9965     Diag(Name.getBeginLoc(), diag::err_using_decl_template_id)
 9980     Diag(Name.getBeginLoc(), getLangOpts().CPlusPlus11
 9993       Diag(EllipsisLoc, diag::err_pack_expansion_without_parameter_packs)
10061         Diag(Using->getLocation(),
10064         Diag(Orig->getLocation(), diag::note_using_decl_target);
10069       Diag(Using->getQualifierLoc().getBeginLoc(),
10074       Diag(Orig->getLocation(), diag::note_using_decl_target);
10140       Diag(Using->getLocation(), diag::err_using_decl_conflict);
10152       Diag(Using->getLocation(), diag::err_using_decl_conflict);
10156     Diag(Target->getLocation(), diag::note_using_decl_target);
10157     Diag(OldDecl->getLocation(), diag::note_using_decl_conflict);
10168     Diag(Using->getLocation(), diag::err_using_decl_conflict);
10169     Diag(Target->getLocation(), diag::note_using_decl_target);
10170     Diag(Tag->getLocation(), diag::note_using_decl_conflict);
10178   Diag(Using->getLocation(), diag::err_using_decl_conflict);
10179   Diag(Target->getLocation(), diag::note_using_decl_target);
10180   Diag(NonTag->getLocation(), diag::note_using_decl_conflict);
10582       Diag(IdentLoc, diag::err_no_member)
10594       Diag(IdentLoc, diag::err_using_typename_non_type);
10596         Diag((*I)->getUnderlyingDecl()->getLocation(),
10605       Diag(IdentLoc, diag::err_using_dependent_value_is_type);
10606       Diag(R.getFoundDecl()->getLocation(), diag::note_using_decl_target);
10614     Diag(IdentLoc, diag::err_using_decl_can_not_refer_to_namespace)
10623       Diag(IdentLoc, diag::err_using_decl_can_not_refer_to_scoped_enum)
10677     Diag(UD->getUsingLoc(),
10719           Diag(NameLoc,
10723           Diag(D->getLocation(), diag::note_previous_definition);
10760     Diag(NameLoc, diag::err_using_decl_redeclaration) << SS.getRange();
10761     Diag(D->getLocation(), diag::note_using_decl) << 1;
10795       Diag(NameLoc, diag::err_using_decl_can_not_refer_to_class_member)
10812           Diag(SS.getBeginLoc(), diag::note_using_decl_class_member_workaround)
10820           Diag(InsertLoc, diag::note_using_decl_class_member_workaround)
10836         Diag(UsingLoc, diag::note_using_decl_class_member_workaround)
10851         Diag(UsingLoc, diag::note_using_decl_class_member_workaround)
10878     Diag(SS.getRange().getBegin(),
10897         Diag(NameLoc,
10904         Diag(SS.getRange().getBegin(),
10951   Diag(SS.getRange().getBegin(),
11027       Diag(UsingLoc, diag::err_alias_template_extra_headers)
11045         Diag(UsingLoc, diag::err_redefinition_different_kind)
11050           Diag(OldD->getLocation(), diag::note_previous_definition);
11071           Diag(NewTD->getLocation(), diag::err_redefinition_different_typedef)
11074             Diag(OldTD->getLocation(), diag::note_previous_definition);
11131       Diag(IdentLoc, diag::err_expected_namespace_name) << SS.getRange();
11163         Diag(AliasLoc, diag::err_redefinition_different_namespace_alias)
11165         Diag(AD->getLocation(), diag::note_previous_namespace_alias)
11173       Diag(AliasLoc, DiagID) << Alias;
11174       Diag(PrevDecl->getLocation(), diag::note_previous_definition);
12436     S.Diag(UserDeclaredOperation->getLocation(),
12563       Diag(ClassDecl->getLocation(), diag::err_uninitialized_member_for_assign)
12565       Diag(Field->getLocation(), diag::note_declared_at);
12573       Diag(ClassDecl->getLocation(), diag::err_uninitialized_member_for_assign)
12575       Diag(Field->getLocation(), diag::note_declared_at);
12779           S.Diag(CurrentLocation, diag::warn_vbase_moved_multiple_times)
12781           S.Diag(Existing->getBeginLoc(), diag::note_vbase_moved_here)
12785           S.Diag(BI.getBeginLoc(), diag::note_vbase_moved_here)
12931       Diag(ClassDecl->getLocation(), diag::err_uninitialized_member_for_assign)
12933       Diag(Field->getLocation(), diag::note_declared_at);
12941       Diag(ClassDecl->getLocation(), diag::err_uninitialized_member_for_assign)
12943       Diag(Field->getLocation(), diag::note_declared_at);
13370     Diag(CurrentLocation, diag::note_lambda_to_block_conv);
13379     Diag(CurrentLocation, diag::note_lambda_to_block_conv);
13570   Diag(Loc, diag::err_in_class_initializer_not_yet_parsed)
13572   Diag(Field->getEndLoc(), diag::note_in_class_initializer_not_yet_parsed);
13611       Diag(VD->getLocation(),
13622   Diag(VD->getLocation(), diag::warn_exit_time_destructor);
13626     Diag(VD->getLocation(), diag::warn_global_destructor);
13681     return SemaRef.Diag(FnDecl->getLocation(),
13688     return SemaRef.Diag(FnDecl->getLocation(),
13714     return SemaRef.Diag(FnDecl->getLocation(),
13727     return SemaRef.Diag(FnDecl->getLocation(),
13733     return SemaRef.Diag(FnDecl->getLocation(),
13739     return SemaRef.Diag(FnDecl->getLocation(),
13746     return SemaRef.Diag(FnDecl->getLocation(), DependentParamTypeDiag)
13759     return SemaRef.Diag(FnDecl->getLocation(), InvalidParamTypeDiag)
13789     return SemaRef.Diag(FnDecl->getLocation(),
13830     SemaRef.Diag(MD->getLocation(),
13866       return Diag(FnDecl->getLocation(),
13880       return Diag(FnDecl->getLocation(),
13894         return Diag(Param->getLocation(),
13933     return Diag(FnDecl->getLocation(), diag::err_operator_overload_must_be)
13940     return Diag(FnDecl->getLocation(), diag::err_operator_overload_variadic)
13946     return Diag(FnDecl->getLocation(),
13967       return Diag(LastParam->getLocation(),
14005           SemaRef.Diag(TpDecl->getLocation(),
14012   SemaRef.Diag(TpDecl->getTemplateParameters()->getSourceRange().getBegin(),
14023     Diag(FnDecl->getLocation(), diag::err_literal_operator_outside_namespace)
14029     Diag(FnDecl->getLocation(), diag::err_literal_operator_extern_c);
14032       Diag(LSD->getExternLoc(), diag::note_extern_c_begins_here);
14048       Diag(FnDecl->getLocation(),
14077         Diag(Param->getSourceRange().getBegin(),
14084       Diag(Param->getSourceRange().getBegin(), diag::err_literal_operator_param)
14089       Diag(Param->getSourceRange().getBegin(), diag::err_literal_operator_param)
14094       Diag(Param->getSourceRange().getBegin(),
14112       Diag((*Param)->getSourceRange().getBegin(),
14121       Diag((*Param)->getSourceRange().getBegin(),
14136       Diag((*Param)->getSourceRange().getBegin(),
14148       Diag((*Param)->getSourceRange().getBegin(),
14155     Diag(FnDecl->getLocation(), diag::err_literal_operator_bad_param_count);
14165       Diag(Param->getDefaultArgRange().getBegin(),
14179     Diag(FnDecl->getLocation(), diag::warn_user_literal_reserved)
14197     Diag(LangStr->getExprLoc(), diag::err_language_linkage_spec_not_ascii)
14213     Diag(LangStr->getExprLoc(), diag::err_language_linkage_spec_unknown)
14277     Diag(Loc, diag::err_catch_rvalue_ref);
14282     Diag(Loc, diag::err_catch_variably_modified) << ExDeclType;
14317       Diag(Loc, diag::err_objc_object_catch);
14322         Diag(Loc, diag::warn_objc_pointer_cxx_catch_fragile);
14406       Diag(D.getIdentifierLoc(), diag::err_redefinition)
14408       Diag(PrevDecl->getLocation(), diag::note_previous_definition);
14416     Diag(D.getIdentifierLoc(), diag::err_qualified_catch_declarator)
14491         Diag(StaticAssertLoc, diag::err_static_assert_requirement_failed)
14495         Diag(StaticAssertLoc, diag::err_static_assert_failed)
14548         Diag(TypeRange.getBegin(),
14557         Diag(FriendLoc,
14565       Diag(FriendLoc,
14580       Diag(FriendLoc, diag::err_friend_not_first_in_declaration) << T;
14620       Diag(TemplateParams->getTemplateLoc(), diag::err_template_tag_noparams)
14692   Diag(NameLoc, diag::warn_template_qualified_friend_unsupported)
14746       Diag(DS.getConstSpecLoc(), diag::err_friend_decl_spec) << "const";
14748       Diag(DS.getVolatileSpecLoc(), diag::err_friend_decl_spec) << "volatile";
14750       Diag(DS.getRestrictSpecLoc(), diag::err_friend_decl_spec) << "restrict";
14752       Diag(DS.getAtomicSpecLoc(), diag::err_friend_decl_spec) << "_Atomic";
14754       Diag(DS.getUnalignedSpecLoc(), diag::err_friend_decl_spec) << "__unaligned";
14784     Diag(Loc, diag::err_tagless_friend_type_template)
14839     Diag(Loc, diag::err_unexpected_friend);
14920       Diag(NameInfo.getBeginLoc(), diag::err_friend_def_in_local_class);
14985       Diag(DS.getFriendSpecLoc(),
15000         = Diag(SS.getRange().getBegin(), diag::err_qualified_friend_def);
15019       Diag(SS.getRange().getBegin(), diag::err_qualified_friend_def)
15052       Diag(Loc, diag::err_introducing_special_friend) << DiagArg;
15116         Diag(FD->getLocation(), diag::err_friend_decl_with_def_arg_redeclared);
15117         Diag(Previous.getRepresentativeDecl()->getLocation(),
15120         Diag(FD->getLocation(), diag::err_friend_decl_with_def_arg_must_be_def);
15125       Diag(FD->getLocation(), diag::warn_template_qualified_friend_unsupported)
15140     Diag(DelLoc, diag::err_deleted_non_function);
15153       Diag(DelLoc, diag::err_deleted_decl_not_first);
15154       Diag(Prev->getLocation().isInvalid() ? DelLoc : Prev->getLocation(),
15165     Diag(Fn->getLocation(), diag::err_attribute_dll_deleted) << DLLAttr;
15179           Diag(DelLoc, diag::err_deleted_override) << MD->getDeclName();
15182         Diag(O->getLocation(), diag::note_overridden_virtual_function);
15195     Diag(DelLoc, diag::err_deleted_main);
15211         Diag(DefaultLoc, diag::err_defaulted_comparison_template);
15216     Diag(DefaultLoc, diag::err_default_special_members)
15230     Diag(DefaultLoc, diag::err_default_special_members)
15237     Diag(FD->getLocation(), diag::err_defaulted_comparison_out_of_class)
15246     Diag(DefaultLoc, getLangOpts().CPlusPlus2a
15293       Self.Diag(SubStmt->getBeginLoc(),
15318         Diag(New->getParamDecl(I)->getLocation(),
15320         Diag(Old->getParamDecl(I)->getLocation(),
15330     Diag(New->getLocation(), diag::err_mismatched_code_seg_override);
15331     Diag(Old->getLocation(), diag::note_previous_declaration);
15348   Diag(New->getLocation(),
15351   Diag(Old->getLocation(), diag::note_overridden_virtual_function);
15384     Diag(New->getLocation(),
15388     Diag(Old->getLocation(), diag::note_overridden_virtual_function)
15410       Diag(New->getLocation(), diag::err_covariant_return_not_derived)
15413       Diag(Old->getLocation(), diag::note_overridden_virtual_function)
15429       Diag(Old->getLocation(), diag::note_overridden_virtual_function)
15437     Diag(New->getLocation(),
15441     Diag(Old->getLocation(), diag::note_overridden_virtual_function)
15449     Diag(New->getLocation(),
15453     Diag(Old->getLocation(), diag::note_overridden_virtual_function)
15477     Diag(Method->getLocation(), diag::err_non_virtual_pure)
15484     Diag(D->getLocation(), diag::err_pure_friend);
15488     Diag(D->getLocation(), diag::err_illegal_initializer);
15556     Diag(Dcl->getLocation(), diag::err_invalid_use_of_function_type)
15731         Diag(Class->getLocation(),
15878       S.Diag((*Ctor->init_begin())->getSourceLocation(),
15884         S.Diag(Target->getLocation(), diag::note_it_delegates_to);
15894         S.Diag(C->getLocation(), diag::note_which_delegates_to);
15928       S.Diag(E->getLocation(), diag::err_this_static_member_func)
16152     Diag(DeclStart, diag::err_anonymous_property);
16173     Diag(D.getDeclSpec().getInlineSpecLoc(), diag::err_inline_non_function)
16176     Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(),
tools/clang/lib/Sema/SemaDeclObjC.cpp
  106   Diag(loc, diag::err_arc_init_method_unrelated_result_type);
  116     S.Diag(NewD->getLocation(), diag::warn_overriding_method_missing_noescape);
  117     S.Diag(OldD->getLocation(), diag::note_overridden_marked_noescape);
  130     S.Diag(CD->getLocation(), diag::note_cat_conform_to_noescape_prot)
  161       Diag(NewMethod->getLocation(),
  167       Diag(NewMethod->getLocation(),
  174       Diag(Overridden->getLocation(),
  179       Diag(Overridden->getLocation(),
  185     Diag(NewMethod->getLocation(),
  190     Diag(Overridden->getLocation(), diag::note_previous_decl) << "method";
  194     Diag(NewMethod->getLocation(),
  199     Diag(Overridden->getLocation(), diag::note_previous_decl)  << "method";
  211       Diag(newDecl->getLocation(),
  215       Diag(oldDecl->getLocation(), diag::note_previous_decl) << "parameter";
  242         Diag(method->getLocation(), diag::err_dealloc_bad_result_type)
  246         Diag(method->getLocation(), diag::err_dealloc_bad_result_type)
  300       S.Diag(ImplLoc, diag::warn_unavailable_def);
  301       S.Diag(ND->getLocation(), diag::note_method_declared_at)
  313   S.Diag(ImplLoc, diag::warn_deprecated_def)
  319     S.Diag(ND->getLocation(), diag::note_method_declared_at)
  322     S.Diag(ND->getLocation(), diag::note_previous_decl)
  401       Diag(Param->getLocation(), diag::warn_arc_strong_pointer_objc_pointer) <<
  415       Diag(MDecl->getLocation(), diag::err_arc_illegal_method_def)
  568     Diag(SuperLoc, diag::err_recursive_superclass)
  608         Diag(SuperLoc, diag::err_redefinition_different_kind) << SuperName;
  609         Diag(PrevDecl->getLocation(), diag::note_previous_definition);
  615         Diag(SuperLoc, diag::err_undef_superclass)
  685       Diag(typeBoundInfo->getTypeLoc().getBeginLoc(),
  705       Diag(typeBoundInfo->getTypeLoc().getBeginLoc(),
  725               Diag(attr.getBeginLoc(),
  735           Diag(qual ? qual.getBeginLoc()
  787       Diag(typeParam->getLocation(), diag::err_objc_type_param_redecl)
  840     S.Diag(diagLoc, diag::err_objc_type_param_arity_mismatch)
  876           auto diag = S.Diag(diagLoc,
  905         S.Diag(prevTypeParam->getLocation(), diag::note_objc_type_param_here)
  923       S.Diag(newBoundRange.getBegin(), diag::err_objc_type_param_bound_conflict)
  935       S.Diag(prevTypeParam->getLocation(), diag::note_objc_type_param_here)
  956       S.Diag(newTypeParam->getLocation(),
  963       S.Diag(prevTypeParam->getLocation(), diag::note_objc_type_param_here)
  991     Diag(ClassLoc, diag::err_redefinition_different_kind) << ClassName;
  992     Diag(PrevDecl->getLocation(), diag::note_previous_definition);
 1026         Diag(ClassLoc, diag::err_objc_parameterized_forward_class_first)
 1028         Diag(prevTypeParamList->getLAngleLoc(), diag::note_previous_decl)
 1061       Diag(AtInterfaceLoc, diag::err_duplicate_class_def)
 1063       Diag(Def->getLocation(), diag::note_previous_definition);
 1142     Diag(AliasLocation, diag::err_conflicting_aliasing_type) << AliasName;
 1143     Diag(ADecl->getLocation(), diag::note_previous_declaration);
 1164     Diag(ClassLocation, diag::warn_undef_interface) << ClassName;
 1166       Diag(CDeclU->getLocation(), diag::note_previous_declaration);
 1191         Diag(Ploc, diag::err_protocol_has_circular_dependency);
 1192         Diag(PrevLoc, diag::note_previous_definition);
 1220     Diag(ProtocolLoc, diag::warn_duplicate_protocol_def) << ProtocolName;
 1221     Diag(Def->getLocation(), diag::note_previous_definition);
 1309       Diag(Pair.second, diag::err_undeclared_protocol) << Pair.first;
 1329       Diag(Pair.second, diag::warn_undef_protocolref) << Pair.first;
 1330       Diag(UndefinedProtocol->getLocation(), diag::note_protocol_decl_undefined)
 1400   Diag(TypeArgLoc, diag::err_objc_type_args_and_protocols)
 1465         Diag(identifierLocs[i], diag::warn_undef_protocolref)
 1467         Diag(forwardDecl->getLocation(), diag::note_protocol_decl_undefined)
 1506         Diag(firstClassNameLoc, diag::warn_objc_redundant_qualified_class_type)
 1599       Diag(loc, diag::err_objc_type_arg_missing_star)
 1721     Diag(identifierLocs[i],
 1760       Diag(Method->getLocation(), diag::err_duplicate_method_decl)
 1762       Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
 1823       Diag(ClassLoc, diag::err_undef_interface) << ClassName;
 1828     Diag(ClassLoc, diag::err_class_extension_after_impl) << ClassName;
 1829     Diag(IDecl->getImplementation()->getLocation(),
 1838       Diag(CategoryLoc, diag::warn_dup_category_def)
 1840       Diag(Previous->getLocation(), diag::note_previous_definition);
 1853       Diag(typeParamList->getLAngleLoc(),
 1918     Diag(ClassLoc, diag::err_undef_interface) << ClassName;
 1934     Diag(ClassLoc, diag::err_objc_runtime_visible_category)
 1941       Diag(ClassLoc, diag::err_dup_implementation_category) << ClassName
 1943       Diag(CatIDecl->getImplementation()->getLocation(),
 1971     Diag(ClassLoc, diag::err_redefinition_different_kind) << ClassName;
 1972     Diag(PrevDecl->getLocation(), diag::note_previous_definition);
 1993       Diag(ClassLoc, diag::warn_undef_interface) << ClassName;
 2004       Diag(SuperClassLoc, diag::err_redefinition_different_kind)
 2006       Diag(PrevDecl->getLocation(), diag::note_previous_definition);
 2012         Diag(SuperClassLoc, diag::err_undef_superclass)
 2017         Diag(SuperClassLoc, diag::err_conflicting_super_class)
 2019         Diag(SDecl->getLocation(), diag::note_previous_definition);
 2067     Diag(ClassLoc, diag::err_dup_implementation_class) << ClassName;
 2068     Diag(IDecl->getImplementation()->getLocation(),
 2083     Diag(ClassLoc, diag::err_objc_runtime_visible_subclass)
 2138       Diag(ImpDecl->getLocation(), diag::warn_on_superclass_use);
 2143         Diag(ImplIvar->getLocation(), diag::err_duplicate_ivar_declaration);
 2144         Diag(ClsIvar->getLocation(), diag::note_previous_definition);
 2151           Diag(ImplIvar->getLocation(), diag::err_duplicate_ivar_declaration);
 2152           Diag(ClsExtIvar->getLocation(), diag::note_previous_definition);
 2177       Diag(ImplIvar->getLocation(), diag::err_conflicting_ivar_type)
 2180       Diag(ClsIvar->getLocation(), diag::note_previous_definition);
 2184       Diag(ImplIvar->getBitWidth()->getBeginLoc(),
 2187       Diag(ClsIvar->getBitWidth()->getBeginLoc(),
 2192       Diag(ImplIvar->getLocation(), diag::err_conflicting_ivar_name)
 2194       Diag(ClsIvar->getLocation(), diag::note_previous_definition);
 2200     Diag(ivars[j]->getLocation(), diag::err_inconsistent_ivar_count);
 2202     Diag(IVI->getLocation(), diag::err_inconsistent_ivar_count);
 2220     const Sema::SemaDiagnosticBuilder &B = S.Diag(ImpLoc, DiagID);
 2229     S.Diag(MethodLoc, diag::note_method_declared_at) << method;
 2318       S.Diag(MethodImpl->getLocation(),
 2324       S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration)
 2339       S.Diag(MethodImpl->getLocation(),
 2349       S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration);
 2381   S.Diag(MethodImpl->getLocation(), DiagID)
 2385   S.Diag(MethodDecl->getLocation(), IsOverridingMode
 2405         S.Diag(ImplVar->getLocation(),
 2409       else S.Diag(ImplVar->getLocation(),
 2413       S.Diag(IfaceVar->getLocation(), diag::note_previous_declaration)
 2425     S.Diag(ImplVar->getLocation(),
 2435     S.Diag(IfaceVar->getLocation(), diag::note_previous_declaration);
 2465   S.Diag(ImplVar->getLocation(), DiagID)
 2468   S.Diag(IfaceVar->getLocation(),
 2541   S.Diag(impl->getLocation(), errorID) << int(familySelector) << int(reasonSelector);
 2542   S.Diag(decl->getLocation(), noteID) << int(familySelector) << int(reasonSelector);
 2567     Diag(ImpMethodDecl->getLocation(),
 2569     Diag(MethodDecl->getLocation(), diag::note_previous_declaration);
 2590     Diag(Method->getLocation(),
 2592     Diag(Overridden->getLocation(), diag::note_previous_declaration);
 2632     Diag(ImpMethodDecl->getLocation(),
 2634     Diag(MethodDecl->getLocation(), diag::note_method_declared_at)
 3051         Diag(AtClassLoc, diag::err_redefinition_different_kind) << IdentList[i];
 3052         Diag(PrevDecl->getLocation(), diag::note_previous_definition);
 3059           Diag(AtClassLoc, diag::warn_forward_class_redefinition)
 3061           Diag(PrevDecl->getLocation(), diag::note_previous_definition);
 3101         Diag(IdentLocs[i], diag::err_objc_parameterized_forward_class)
 3104         Diag(Def->getLocation(), diag::note_defined_here)
 3593       Diag(R.getBegin(), diag::err_arc_multiple_method_decl) << Sel << R;
 3595       Diag(R.getBegin(), diag::warn_strict_multiple_method_decl) << Sel << R;
 3597       Diag(R.getBegin(), diag::warn_multiple_method_decl) << Sel << R;
 3599     Diag(Methods[0]->getBeginLoc(),
 3603       Diag(Methods[I]->getBeginLoc(), diag::note_also_found)
 3735         Diag(Ivar->getLocation(), diag::err_duplicate_member) << II;
 3736         Diag(prevIvar->getLocation(), diag::note_previous_declaration);
 3752         S.Diag(ivar->getLocation(), diag::err_arc_weak_disabled);
 3754         S.Diag(ivar->getLocation(), diag::err_arc_weak_no_runtime);
 3774       S.Diag(ivar->getLocation(), diag::err_flexible_array_arc_retainable);
 3827         S.Diag(ivar->getLocation(), diag::warn_variable_sized_ivar_visibility)
 3845       S.Diag(ivar->getLocation(), diag::err_flexible_array_not_at_end)
 3851         S.Diag(ivar->getLocation(),
 3858       S.Diag(ivar->getNextIvar()->getLocation(),
 3879         S.Diag(FirstIvar->getLocation(),
 3883         S.Diag(LastIvar->getLocation(), diag::note_entity_declared_at)
 3922           Diag(Method->getLocation(), diag::err_duplicate_method_decl)
 3924           Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
 3931             Diag(Method->getLocation(), diag::warn_duplicate_method_decl)
 3933           Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
 3946         Diag(Method->getLocation(), diag::err_duplicate_method_decl)
 3948         Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
 3955             Diag(Method->getLocation(), diag::warn_duplicate_method_decl)
 3957           Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
 4030           Diag(DeclLoc, diag::warn_objc_root_class_missing)
 4039             Diag(SuperClassLoc, diag::note_objc_needs_superclass)
 4042             Diag(SuperClassLoc, diag::note_objc_needs_superclass);
 4047         Diag(IDecl->getLocation(), diag::err_objc_root_class_subclass);
 4057           Diag(IC->getLocation(), diag::err_restricted_superclass_mismatch);
 4058           Diag(Super->getLocation(), diag::note_class_declared);
 4063         Diag(IC->getLocation(), diag::err_implementation_of_class_stub);
 4089         Diag(IntfDecl->getLocation(), diag::err_restricted_superclass_mismatch);
 4090         Diag(Super->getLocation(), diag::note_class_declared);
 4096       Diag(IntfDecl->getLocation(), diag::err_class_stub_subclassing_mismatch);
 4106             Diag(VDecl->getLocation(), diag::err_objc_var_decl_inclass);
 4401           Diag((*ParamI)->getLocation(), diag::ext_typecheck_base_super)
 4403           Diag(overridden->getLocation(), diag::note_previous_declaration);
 4436     S.Diag(loc, diag::err_nullability_conflicting)
 4533   SemaRef.Diag(Loc, diag::err_objc_method_unsupported_param_ret_type)
 4551     Diag(MethodLoc, diag::err_missing_method_context);
 4570     Diag(MethodLoc, diag::warn_missing_method_return_type)
 4602         Diag(ArgInfo[i].NameLoc,
 4606         Diag(PrevDecl->getLocation(),
 4629       Diag(Param->getLocation(), diag::err_block_on_nonlocal);
 4679           Diag(ObjCMethod->getLocation(), diag::warn_dealloc_in_category)
 4706     Diag(ObjCMethod->getLocation(), diag::err_duplicate_method_decl)
 4708     Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
 4780       Diag(attr->getLocation(), diag::warn_availability_on_static_initializer)
 4802   Diag(D->getLocation(), diag::err_objc_decls_may_only_appear_in_global_scope);
 4816     Diag(DeclStart, diag::err_undef_interface) << ClassName;
 4820     Diag(DeclStart, diag::err_atdef_nonfragile_interface);
 4861     Diag(IdLoc, diag::err_arg_with_address_space);
 4873     Diag(IdLoc, diag::err_illegal_qualifiers_on_catch_parm);
 4878     Diag(IdLoc, diag::err_catch_param_not_objc_type);
 4881     Diag(IdLoc, diag::err_catch_param_not_objc_type);
 4903     Diag(DS.getStorageClassSpecLoc(), diag::warn_register_objc_catch_parm)
 4906     Diag(DS.getStorageClassSpecLoc(), diag::err_storage_spec_on_catch_parm)
 4910     Diag(DS.getInlineSpecLoc(), diag::err_inline_non_function)
 4913     Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(),
 4936     Diag(D.getIdentifierLoc(), diag::err_qualified_objc_catch_parm)
 4949     Diag(New->getLocation(), diag::err_block_on_nonlocal);
 4984       Diag(Loc, diag::warn_unimplemented_selector) << Sel;
 5076       Diag(Loc, DIAG) << IV;
 5077       Diag(PDecl->getLocation(), diag::note_property_declare);
tools/clang/lib/Sema/SemaExceptionSpec.cpp
  137       Diag(Range.getBegin(), diag::err_rref_in_exception_spec)
  190     Diag(Loc, diag::err_exception_spec_not_parsed);
  214     Diag(Loc, diag::err_exception_spec_not_parsed);
  311       Diag(New->getLocation(), diag::ext_implicit_exception_spec_mismatch)
  314         Diag(Old->getLocation(), diag::note_previous_declaration);
  450     Diag(New->getLocation(), DiagID)
  453     Diag(New->getLocation(), DiagID)
  459     Diag(Old->getLocation(), diag::note_previous_declaration);
tools/clang/lib/Sema/SemaExpr.cpp
   93         S.Diag(Loc, diag::warn_used_but_marked_unused) << D->getDeclName();
  107       Diag(Decl->getLocation(), diag::note_implicitly_deleted);
  122   Diag(Decl->getLocation(), diag::note_availability_specified_here)
  178   S.Diag(Loc, DowngradeWarning ? diag::ext_internal_in_extern_inline_quiet
  184   S.Diag(D->getCanonicalDecl()->getLocation(), diag::note_entity_declared_at)
  194     Diag(DeclBegin, diag::note_convert_inline_to_static)
  235       Diag(Loc, diag::ext_main_used);
  243       Diag(Loc, diag::err_binding_cannot_appear_in_own_initializer)
  246       Diag(Loc, diag::err_auto_variable_cannot_appear_in_own_initializer)
  257         Diag(Loc, diag::err_deleted_inherited_ctor_use)
  261         Diag(Loc, diag::err_deleted_function_use);
  282       Diag(Loc, diag::warn_cxx17_compat_lambda_def_ctor_assign)
  307     Diag(Loc, diag::err_omp_wrong_var_in_declare_reduction)
  309     Diag(D->getLocation(), diag::note_entity_declared_at) << D;
  320     Diag(Loc, diag::err_omp_declare_mapper_wrong_var)
  322     Diag(D->getLocation(), diag::note_entity_declared_at) << D;
  396     Diag(Loc, diag::warn_not_enough_argument) << D->getDeclName();
  397     Diag(D->getLocation(), diag::note_sentinel_here) << int(calleeType);
  423     Diag(Loc, diag::warn_missing_sentinel) << int(calleeType);
  425     Diag(MissingNilLoc, diag::warn_missing_sentinel)
  428   Diag(D->getLocation(), diag::note_sentinel_here) << int(calleeType);
  526             S.Diag(OIRE->getExprLoc(), diag::warn_objc_isa_assign)
  534             S.Diag(OIRE->getLocation(), diag::warn_objc_isa_assign);
  541             S.Diag(OIRE->getExprLoc(), diag::warn_objc_isa_use)
  547             S.Diag(OIRE->getLocation(), diag::warn_objc_isa_use);
  549         S.Diag(IV->getLocation(), diag::note_ivar_decl);
  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);
  871       Diag(E->getBeginLoc(),
  879       Diag(E->getBeginLoc(), diag::err_cannot_pass_to_vararg)
 1470     Diag(ControllingExpr->getExprLoc(),
 1500           Diag(Types[i]->getTypeLoc().getBeginLoc(), D)
 1512             Diag(Types[j]->getTypeLoc().getBeginLoc(),
 1517             Diag(Types[i]->getTypeLoc().getBeginLoc(),
 1553     Diag(ControllingExpr->getBeginLoc(), diag::err_generic_sel_multi_match)
 1557       Diag(Types[I]->getTypeLoc().getBeginLoc(),
 1572     Diag(ControllingExpr->getBeginLoc(), diag::err_generic_sel_no_match)
 1670     Diag(StringTokLocs.front(), diag::warn_cxx2a_compat_utf8_string);
 1710     return ExprError(Diag(UDSuffixLoc, diag::err_invalid_string_udl));
 1894       SemaRef.Diag(TypoLoc, diag::err_no_member) << Typo << Ctx
 1897       SemaRef.Diag(TypoLoc, DiagnosticID) << Typo;
 1966           Diag(R.getNameLoc(), diagnostic) << Name
 1970           Diag(R.getNameLoc(), diagnostic) << Name;
 1975           Diag(D->getLocation(), diag::note_dependent_var_use);
 1982           Diag(R.getNameLoc(), diag::err_member_call_without_object);
 2101     Diag(R.getNameLoc(), diag::err_no_member)
 2108   Diag(R.getNameLoc(), diagnostic) << Name;
 2137   auto DB = S.Diag(Loc, diag::ext_undeclared_unqual_id_with_dependent_base);
 2433     Diag(NameInfo.getLoc(), diag::err_no_member)
 2446     auto D = Diag(Loc, DiagID);
 2527         Diag(Loc, diag::err_ivar_use_in_class_method) << IV->getDeclName();
 2535         Diag(Loc, diag::err_private_ivar_access) << IV->getDeclName();
 2547           Diag(Loc, diag::warn_ivar_use_hidden) << IV->getDeclName();
 2555       Diag(Loc, diag::err_ivar_use_in_class_method) << IV->getDeclName();
 2606     Diag(Loc, diag::warn_direct_ivar_access) << IV->getDeclName();
 2880     S.Diag(Loc, diag::err_unexpected_typedef) << D->getDeclName();
 2885     S.Diag(Loc, diag::err_unexpected_interface) << D->getDeclName();
 2890     S.Diag(Loc, diag::err_unexpected_namespace) << D->getDeclName();
 2967     Diag(Loc, diag::err_ref_non_value)
 2969     Diag(D->getLocation(), diag::note_declared_at);
 3212     Diag(Loc, diag::ext_predef_outside_function);
 3317     return ExprError(Diag(UDSuffixLoc, diag::err_invalid_character_udl));
 3354     S.Diag(Loc, diagnostic)
 3371     Diag(E->getExprLoc(), diag::err_pragma_loop_invalid_argument_type) << QT;
 3383     Diag(E->getExprLoc(), diag::err_pragma_loop_invalid_argument_value)
 3424       return ExprError(Diag(UDSuffixLoc, diag::err_invalid_numeric_udl));
 3466           Diag(Tok.getLocation(), diag::err_integer_literal_too_large)
 3552       Diag(Tok.getLocation(), diag::err_too_large_for_fixed_point);
 3562         Diag(Tok.getLocation(), diag::err_half_const_requires_fp16);
 3587         Diag(Tok.getLocation(), diag::warn_double_const_requires_fp64);
 3599         Diag(Tok.getLocation(),
 3603         Diag(Tok.getLocation(), diag::ext_c99_longlong);
 3612       Diag(Tok.getLocation(), diag::err_integer_literal_too_large)
 3671             Diag(Tok.getLocation(),
 3707         Diag(Tok.getLocation(), diag::ext_integer_literal_too_large_for_signed);
 3723     Diag(Tok.getLocation(), diag::ext_imaginary_constant);
 3741     S.Diag(Loc, diag::err_vecstep_non_scalar_vector_type)
 3764     S.Diag(Loc, diag::ext_sizeof_alignof_function_type)
 3774     S.Diag(Loc, DiagID) << TraitKind << ArgRange;
 3788     S.Diag(Loc, diag::err_sizeof_nonfragile_interface)
 3810   S.Diag(Loc, diag::warn_sizeof_array_decay) << ICE->getSourceRange()
 3867     Diag(E->getExprLoc(), diag::err_sizeof_alignof_function_type)
 3876     Diag(E->getExprLoc(), diag::warn_side_effects_unevaluated_context);
 3888           Diag(E->getExprLoc(), diag::warn_sizeof_array_param)
 3890           Diag(PVD->getLocation(), diag::note_declared_at);
 3961     Diag(OpLoc, diag::err_sizeof_alignof_function_type)
 3979     S.Diag(E->getExprLoc(), diag::err_sizeof_alignof_typeof_bitfield)
 4013       S.Diag(E->getExprLoc(), diag::err_alignof_member_of_incomplete_type)
 4207       Diag(E->getExprLoc(), diag::err_openmp_default_simd_align_expr);
 4210     Diag(E->getExprLoc(), diag::err_sizeof_alignof_typeof_bitfield) << 0;
 4280   S.Diag(Loc, diag::err_realimag_invalid_type) << V.get()->getType()
 4316   S.Diag(opLoc, diag::err_arithmetic_nonfragile_interface)
 4349     Diag(idx->getExprLoc(), diag::warn_deprecated_comma_subscript)
 4514         Diag(Base->getExprLoc(), diag::err_omp_typecheck_section_value)
 4522       return ExprError(Diag(LowerBound->getExprLoc(),
 4529       Diag(LowerBound->getExprLoc(), diag::warn_omp_section_is_char)
 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)
 4568         Diag(LowerBound->getExprLoc(), diag::err_omp_section_not_subset_of_array)
 4582         Diag(Length->getExprLoc(), diag::err_omp_section_length_negative)
 4594     Diag(ColonLoc, diag::err_omp_section_length_undefined)
 4682       Diag(LLoc, diag::err_subscript_nonfragile_interface)
 4713     Diag(LHSExp->getBeginLoc(), diag::ext_subscript_non_lvalue)
 4724     Diag(RHSExp->getBeginLoc(), diag::ext_subscript_non_lvalue)
 4734     return ExprError(Diag(LLoc, diag::err_typecheck_subscript_value)
 4739     return ExprError(Diag(LLoc, diag::err_typecheck_subscript_not_integer)
 4745     Diag(LLoc, diag::warn_subscript_is_char) << IndexExpr->getSourceRange();
 4752     Diag(BaseExpr->getBeginLoc(), diag::err_subscript_function_type)
 4759     Diag(LLoc, diag::ext_gnu_subscript_void_type)
 4807     Diag(CallLoc,
 4810     Diag(UnparsedDefaultArgLocs[Param],
 4846       Diag(Param->getBeginLoc(), diag::err_recursive_default_argument) << FD;
 4895     Diag(Param->getBeginLoc(), diag::err_recursive_default_argument) << FD;
 5062         Diag(RParenLoc,
 5068         Diag(RParenLoc, MinArgs == NumParams && !Proto->isVariadic()
 5076         Diag(FDecl->getBeginLoc(), diag::note_callee_decl) << FDecl;
 5101         Diag(Args[NumParams]->getBeginLoc(),
 5110         Diag(Args[NumParams]->getBeginLoc(),
 5121         Diag(FDecl->getBeginLoc(), diag::note_callee_decl) << FDecl;
 5250     S.Diag(PVD->getLocation(), diag::note_callee_static_array)
 5278     Diag(CallLoc, diag::warn_null_arg) << ArgExpr->getSourceRange();
 5295       Diag(CallLoc, diag::warn_static_array_too_small)
 5308     Diag(CallLoc, diag::warn_static_array_too_small)
 5490     S.Diag(Fn->getBeginLoc(),
 5495     S.Diag(Callee->getLocation(),
 5596       Diag(Fn->getExprLoc(), getLangOpts().CPlusPlus2a
 5625         Diag(Fn->getBeginLoc(), diag::err_pseudo_dtor_call_with_args)
 5759     return ExprError(Diag(BuiltinLoc,
 5796     Diag(Fn->getExprLoc(), diag::err_anyx86_interrupt_called);
 5808         Diag(Fn->getExprLoc(), diag::warn_arm_interrupt_calling_convention);
 5844         return ExprError(Diag(LParenLoc, diag::err_typecheck_call_not_function)
 5859       return ExprError(Diag(LParenLoc, diag::err_typecheck_call_not_function)
 5923         return ExprError(Diag(LParenLoc,diag::err_kern_call_not_global_function)
 5930         return ExprError(Diag(LParenLoc, diag::err_kern_type_not_void_return)
 5935         return ExprError(Diag(LParenLoc, diag::err_global_call_not_config)
 5963           Diag(RParenLoc, diag::warn_call_wrong_number_of_arguments)
 6006       return ExprError(Diag(LParenLoc, diag::err_member_call_without_object)
 6059       return ExprError(Diag(LParenLoc, diag::err_variable_object_no_init)
 6125     Diag(LParenLoc, diag::err_compound_literal_with_address_space)
 6167         Diag(DIE->getBeginLoc(), diag::ext_designated_init_nested)
 6174           Diag(Desig.getBeginLoc(), diag::ext_designated_init_array)
 6182         Diag(DIE->getBeginLoc(), diag::ext_designated_init_mixed)
 6184         Diag(InitArgList[0]->getBeginLoc(), diag::note_designated_init_mixed)
 6191       Diag(DIE->getBeginLoc(), diag::ext_designated_init_mixed)
 6193       Diag(InitArgList[I]->getBeginLoc(), diag::note_designated_init_mixed)
 6203       Diag(FirstDesignator, getLangOpts().CPlusPlus2a
 6207       Diag(FirstDesignator, diag::ext_designated_init);
 6331       Diag(Src.get()->getExprLoc(),
 6401       Diag(Src.get()->getExprLoc(),
 6435       Diag(Src.get()->getExprLoc(),
 6469       Diag(Src.get()->getExprLoc(),
 6567       return Diag(R.getBegin(),
 6573     return Diag(R.getBegin(),
 6628       Diag(R.getBegin(),diag::err_invalid_conversion_between_ext_vectors)
 6640     return Diag(R.getBegin(),
 6684       Diag(PLE->getExprLoc(), diag::err_altivec_empty_initializer);
 6712     Diag(LParenLoc, diag::warn_old_style_cast) << CastExpr->getSourceRange();
 6771       Diag(E->getExprLoc(),
 6863   Diag(QuestionLoc, diag::err_typecheck_cond_incompatible_operands_null)
 6875     S.Diag(QuestionLoc, diag::err_typecheck_cond_expect_nonfloat)
 6883   S.Diag(QuestionLoc, diag::err_typecheck_cond_expect_scalar)
 6895       S.Diag(RHSExpr->getBeginLoc(), diag::ext_typecheck_cond_one_void)
 6898       S.Diag(LHSExpr->getBeginLoc(), diag::ext_typecheck_cond_one_void)
 6967     S.Diag(Loc, diag::err_typecheck_op_on_nonoverlapping_address_space_pointers)
 7017     S.Diag(Loc, diag::ext_typecheck_cond_incompatible_pointers)
 7063     S.Diag(Loc, diag::err_typecheck_cond_incompatible_operands)
 7124   S.Diag(Loc, diag::ext_typecheck_cond_pointer_integer_mismatch)
 7162     S.Diag(QuestionLoc, diag::err_typecheck_cond_expect_int_float)
 7168     S.Diag(QuestionLoc, diag::err_typecheck_cond_expect_int_float)
 7220     S.Diag(QuestionLoc, diag::err_conditional_vector_element_size)
 7242   S.Diag(QuestionLoc, diag::err_typecheck_cond_expect_nonfloat)
 7260     S.Diag(QuestionLoc, diag::err_conditional_vector_size)
 7269     S.Diag(QuestionLoc, diag::err_conditional_vector_element_size)
 7317       S.Diag(E->getExprLoc(), diag::err_opencl_ternary_with_block);
 7376     Diag(QuestionLoc,
 7455   Diag(QuestionLoc, diag::err_typecheck_cond_incompatible_operands)
 7546       Diag(QuestionLoc, diag::ext_typecheck_cond_incompatible_operands)
 7564       Diag(QuestionLoc, diag::err_cond_voidptr_arc) << LHSTy << RHSTy
 7584       Diag(QuestionLoc, diag::err_cond_voidptr_arc) << LHSTy << RHSTy
 7722   Self.Diag(OpLoc, DiagID)
 8560         Diag(RHS.get()->getExprLoc(),
 8718   Diag(Loc, diag::err_typecheck_invalid_operands)
 8725     Diag(OrigLHS.Conversion->getLocation(),
 8730     Diag(OrigRHS.Conversion->getLocation(),
 8752     Diag(Loc, diag::err_typecheck_logical_vector_expr_gnu_cpp_restrict)
 8758   Diag(Loc, diag::err_typecheck_logical_vector_expr_gnu_cpp_restrict)
 9127     Diag(Loc, diag::err_typecheck_vector_not_convertable_non_scalar)
 9140     Diag(Loc, diag::err_opencl_implicit_vector_conversion) << LHSType
 9154     Diag(Loc,
 9162   Diag(Loc, DiagID)
 9190     S.Diag(Loc, diag::warn_null_in_arithmetic_operation)
 9202   S.Diag(Loc, diag::warn_null_in_comparison_operation)
 9230     S.Diag(Loc, diag::warn_division_sizeof_ptr) << LHS << LHS->getSourceRange();
 9233         S.Diag(LHSArgDecl->getLocation(), diag::note_pointer_declared_here)
 9243     S.Diag(Loc, diag::warn_division_sizeof_array)
 9247         S.Diag(LHSArgDecl->getLocation(), diag::note_array_declared_here)
 9251     S.Diag(Loc, diag::note_precedence_silence) << RHS;
 9320   S.Diag(Loc, S.getLangOpts().CPlusPlus
 9330   S.Diag(Loc, S.getLangOpts().CPlusPlus
 9344     S.Diag(Loc, diag::warn_gnu_null_ptr_arith)
 9347     S.Diag(Loc, diag::warn_pointer_arith_null_ptr)
 9356   S.Diag(Loc, S.getLangOpts().CPlusPlus
 9371   S.Diag(Loc, S.getLangOpts().CPlusPlus
 9450       S.Diag(Loc,
 9505   Self.Diag(OpLoc, diag::warn_string_plus_int)
 9511     Self.Diag(OpLoc, diag::note_string_plus_scalar_silence)
 9516     Self.Diag(OpLoc, diag::note_string_plus_scalar_silence);
 9551     Self.Diag(OpLoc, diag::warn_string_plus_char)
 9554     Self.Diag(OpLoc, diag::warn_string_plus_char)
 9561     Self.Diag(OpLoc, diag::note_string_plus_scalar_silence)
 9566     Self.Diag(OpLoc, diag::note_string_plus_scalar_silence);
 9575   S.Diag(Loc, diag::err_typecheck_sub_ptr_compatible)
 9771           Diag(Loc,diag::warn_sub_ptr_zero_size_types)
 9863     S.Diag(Loc, diag::warn_shift_result_sets_sign_bit)
 9869   S.Diag(Loc, diag::warn_shift_result_gt_typewidth)
 9882     S.Diag(Loc, diag::err_shift_rhs_only_vector)
 9909     S.Diag(Loc, diag::err_typecheck_expect_int)
 9915     S.Diag(Loc, diag::err_typecheck_expect_int)
 9937       S.Diag(Loc, diag::err_typecheck_vector_lengths_not_equal)
 9947         S.Diag(Loc, diag::warn_typecheck_vector_element_sizes_not_equal)
10045   S.Diag(Loc, diag::warn_comparison_of_mixed_enum_types)
10054   S.Diag(Loc, IsError ? diag::err_typecheck_comparison_of_distinct_pointers
10097   S.Diag(Loc, IsError ? diag::err_typecheck_comparison_of_fptr_to_void
10233     S.Diag(Loc, diag::warn_objc_string_literal_comparison)
10236     S.Diag(Loc, diag::warn_objc_literal_comparison)
10246     S.Diag(Loc, diag::note_objc_literal_comparison_isequal)
10270   S.Diag(UO->getOperatorLoc(), diag::warn_logical_not_on_lhs_of_check)
10279   S.Diag(UO->getOperatorLoc(), diag::note_logical_not_fix)
10290   S.Diag(UO->getOperatorLoc(), diag::note_logical_not_silence_with_parens)
10481     S.Diag(E->getBeginLoc(), diag::err_spaceship_argument_narrowing)
10490     S.Diag(E->getBeginLoc(), diag::err_spaceship_argument_narrowing)
10627         Diag(E.get()->getExprLoc(), diag::warn_pointer_compare)
10635           Diag(E.get()->getExprLoc(), diag::warn_pointer_compare)
10806         Diag(Loc, diag::ext_typecheck_ordered_comparison_of_function_pointers)
10826           Diag(Loc,
10917       Diag(Loc, diag::err_typecheck_comparison_of_distinct_blocks)
10934         Diag(Loc, diag::err_typecheck_comparison_of_distinct_blocks)
11033       Diag(Loc, DiagID)
11253         S.Diag(Loc, diag::warn_xor_used_as_pow_base)
11257         S.Diag(Loc, diag::warn_xor_used_as_pow) << ExprStr << XorValue.toString(10, true);
11261       S.Diag(Loc, diag::warn_xor_used_as_pow_base_extra)
11268     S.Diag(Loc, diag::note_xor_used_as_pow_silence) << ("0x2 ^ " + RHSStr) << SuggestXor;
11271     S.Diag(Loc, diag::warn_xor_used_as_pow_base)
11274     S.Diag(Loc, diag::note_xor_used_as_pow_silence) << ("0xA ^ " + RHSStr) << SuggestXor;
11355     Diag(Loc, diag::warn_enum_constant_in_bool_context);
11375         Diag(Loc, diag::warn_logical_instead_of_bitwise)
11379         Diag(Loc, diag::note_logical_instead_of_bitwise_change_operator)
11386           Diag(Loc, diag::note_logical_instead_of_bitwise_remove_constant)
11543             S.Diag(Loc, diag::err_typecheck_assign_const)
11548           S.Diag(VD->getLocation(), diag::note_typecheck_assign_const)
11557             S.Diag(Loc, diag::err_typecheck_assign_const)
11562           S.Diag(VD->getLocation(), diag::note_typecheck_assign_const)
11587         S.Diag(Loc, diag::err_typecheck_assign_const) << ExprRange
11591       S.Diag(FD->getReturnTypeSourceRange().getBegin(),
11601           S.Diag(Loc, diag::err_typecheck_assign_const)
11605         S.Diag(VD->getLocation(), diag::note_typecheck_assign_const)
11614             S.Diag(Loc, diag::err_typecheck_assign_const) << ExprRange
11618           S.Diag(MD->getLocation(), diag::note_typecheck_assign_const)
11629   S.Diag(Loc, diag::err_typecheck_assign_const) << ExprRange << ConstUnknown;
11656           S.Diag(Loc, diag::err_typecheck_assign_const)
11661         S.Diag(Field->getLocation(), diag::note_typecheck_assign_const)
11762           S.Diag(Loc, DiagID) << E->getSourceRange() << Assign;
11824     S.Diag(Loc, DiagID) << E->getType() << E->getSourceRange() << Assign;
11826     S.Diag(Loc, DiagID) << E->getSourceRange() << Assign;
11860     Sema.Diag(Loc, diag::warn_identity_field_assign) << 0;
11870       Sema.Diag(Loc, diag::warn_identity_field_assign) << 1;
11892     Diag(Loc, diag::err_opencl_half_load_store) << 1
11917         Diag(Loc, diag::err_objc_object_assignment)
11934         Diag(Loc, diag::warn_not_compound_assign)
11992       Diag(Loc, diag::warn_deprecated_compound_assign_volatile) << LHSType;
12067   Diag(Loc, diag::warn_comma_operator);
12068   Diag(LHS->getBeginLoc(), diag::note_cast_to_void)
12134       S.Diag(OpLoc, diag::err_decrement_bool) << Op->getSourceRange();
12138     S.Diag(OpLoc, S.getLangOpts().CPlusPlus17 ? diag::ext_increment_bool
12143     S.Diag(OpLoc, diag::err_increment_decrement_enum) << IsInc << ResType;
12159     S.Diag(OpLoc, diag::ext_integer_increment_complex)
12176     S.Diag(OpLoc, diag::err_typecheck_illegal_increment_decrement)
12187     S.Diag(OpLoc, diag::warn_deprecated_increment_decrement_volatile)
12275   S.Diag(Loc, diag::err_typecheck_address_of) << Type << E->getSourceRange();
12291         Diag(OpLoc, diag::err_typecheck_invalid_lvalue_addrof_addrof_function)
12299           Diag(OpLoc, diag::err_invalid_form_pointer_member_function)
12311       Diag(OpLoc, diag::err_invalid_form_pointer_member_function)
12336       Diag(op->getExprLoc(), diag::err_opencl_taking_address_capture);
12364     Diag(OpLoc, isSFINAEContext() ? diag::err_typecheck_addrof_temporary
12380       Diag(OpLoc, diag::err_invalid_form_pointer_member_function)
12389       Diag(OpLoc, diag::err_parens_pointer_member_function)
12395         Diag(OpLoc, diag::err_unqualified_pointer_member_function)
12400         Diag(OpLoc, diag::err_unqualified_pointer_member_function)
12408       Diag(OpLoc, diag::err_typecheck_addrof_dtor) << op->getSourceRange();
12424         Diag(OpLoc, diag::err_typecheck_invalid_lvalue_addrof)
12457             Diag(OpLoc,
12489     Diag(OpLoc, diag::ext_typecheck_addrof_void) << op->getSourceRange();
12553     S.Diag(OpLoc, diag::err_typecheck_indirection_requires_pointer)
12568     S.Diag(OpLoc, diag::ext_typecheck_indirection_through_void_pointer)
12672   S.Diag(OpLoc, IsBuiltin ? diag::warn_self_assignment_builtin
12716     S.Diag(OpLoc, Diag)
12842         Diag(OpLoc, diag::err_opencl_atomic_init) << 0 << SR;
13034       Diag(LHS.get()->getExprLoc(), diag::warn_objc_isa_assign)
13042       Diag(LHS.get()->getExprLoc(), diag::warn_objc_isa_assign);
13105   Self.Diag(OpLoc, diag::warn_precedence_bitwise_rel)
13123   Self.Diag(Bop->getOperatorLoc(), diag::warn_logical_and_in_logical_or)
13191       S.Diag(Bop->getOperatorLoc(), diag::warn_bitwise_op_in_bitwise_op)
13207       S.Diag(Bop->getOperatorLoc(), diag::warn_addition_in_bitshift)
13230   S.Diag(OpLoc, diag::warn_overloaded_shift_in_comparison)
13387         Diag(OE->getQualifier() ? OE->getQualifierLoc().getBeginLoc()
13468       return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
13536     return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
13549       Diag(OpLoc, diag::ext_integer_complement_complex)
13558         return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
13561       return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
13592           return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
13603           return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
13612       return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
13867     return ExprError(Diag(BuiltinLoc, diag::err_offsetof_record_type)
13887           return ExprError(Diag(OC.LocEnd, diag::err_offsetof_array_type)
13903             Diag(Idx->getBeginLoc(), diag::err_typecheck_subscript_not_integer)
13929       return ExprError(Diag(OC.LocEnd, diag::err_offsetof_record_type)
13965       return ExprError(Diag(BuiltinLoc, diag::err_no_member)
13974       Diag(OC.LocEnd, diag::err_offsetof_bitfield)
13977       Diag(MemberDecl->getLocation(), diag::note_bitfield_decl);
13991         Diag(OC.LocEnd, diag::err_offsetof_field_of_virtual_base)
14188         Diag(Param->getLocation(), diag::err_parameter_name_omitted);
14243     Diag(CaretLoc, diag::err_blocks_disable) << LangOpts.OpenCL;
14442         return ExprError(Diag(E->getBeginLoc(), diag::err_va_arg_in_device));
14498         Diag(E->getBeginLoc(),
14515       Diag(TInfo->getTypeLoc().getBeginLoc(),
14605     Diag(SL->getBeginLoc(), diag::err_missing_atsign_prefix)
14826       Diag(IFace->getLocation(), diag::note_incomplete_class_and_qualified_id)
14849       S.Diag(Loc, diag::err_expr_not_ice) << S.LangOpts.CPlusPlus << SR;
14868       S.Diag(Loc, DiagID) << SR;
14877   S.Diag(Loc, diag::ext_expr_not_ice) << SR << S.LangOpts.CPlusPlus;
14901         return S.Diag(Loc, diag::err_ice_not_integral) << T;
14906         return S.Diag(Loc, diag::err_ice_incomplete_type) << T;
14911         return S.Diag(Loc, diag::err_ice_explicit_conversion) << T << ConvTy;
14916         return S.Diag(Conv->getLocation(), diag::note_ice_conversion_here)
14922         return S.Diag(Loc, diag::err_ice_ambiguous_conversion) << T;
14927         return S.Diag(Conv->getLocation(), diag::note_ice_conversion_here)
15034         return SemaRef.Diag(E->getLocation(),
15122       Diag(E->getExprLoc(), diag::warn_dereference_of_noderef_type)
15124       Diag(Decl->getLocation(), diag::note_previous_decl) << Decl->getName();
15126       Diag(E->getExprLoc(), diag::warn_dereference_of_noderef_type_no_decl)
15181         Diag(L->getBeginLoc(), D);
15191     Diag(BO->getBeginLoc(), diag::warn_deprecated_simple_assign_volatile)
15329       S.Diag(Loc, diag::err_cconv_incomplete_param_type)
15688   S.Diag(loc, diag::err_reference_to_local_in_enclosing_context)
15690   S.Diag(var->getLocation(), diag::note_entity_declared_at)
15757       S.Diag(Loc, diag::err_lambda_capture_anonymous_var);
15758       S.Diag(Var->getLocation(), diag::note_declared_at);
15766       S.Diag(Loc, diag::err_ref_vm_type);
15767       S.Diag(Var->getLocation(), diag::note_previous_decl)
15778           S.Diag(Loc, diag::err_ref_flexarray_type);
15780           S.Diag(Loc, diag::err_lambda_capture_flexarray_type)
15782         S.Diag(Var->getLocation(), diag::note_previous_decl)
15793       S.Diag(Loc, diag::err_capture_block_variable)
15795       S.Diag(Var->getLocation(), diag::note_previous_decl)
15804       S.Diag(Loc, diag::err_opencl_block_ref_block);
15826       S.Diag(Loc, diag::err_ref_array_type);
15827       S.Diag(Var->getLocation(), diag::note_previous_decl)
15839       S.Diag(Loc, diag::err_arc_autoreleasing_capture)
15841       S.Diag(Var->getLocation(), diag::note_previous_decl)
15858         S.Diag(Loc, diag::warn_block_capture_autoreleasing);
15859         S.Diag(VarLoc, diag::note_declare_parameter_strong);
15977         S.Diag(Loc, diag::err_arc_autoreleasing_capture) << /*lambda*/ 1;
15978         S.Diag(Var->getLocation(), diag::note_previous_decl)
16107           Diag(ExprLoc, diag::err_lambda_impcap) << Var->getDeclName();
16108           Diag(Var->getLocation(), diag::note_previous_decl)
16110           Diag(LSI->Lambda->getBeginLoc(), diag::note_lambda_decl);
16173         Diag(ExprLoc, diag::err_lambda_impcap) << Var->getDeclName();
16174         Diag(Var->getLocation(), diag::note_previous_decl)
16177           Diag(cast<LambdaScopeInfo>(CSI)->Lambda->getBeginLoc(),
17163         S.Diag(Loc, diag::err_call_incomplete_return)
17168       S.Diag(Loc, diag::err_call_function_incomplete_return)
17170       S.Diag(FD->getLocation(), diag::note_entity_declared_at)
17223   Diag(Loc, diagnostic) << E->getSourceRange();
17227   Diag(Loc, diag::note_condition_assign_silence)
17232     Diag(Loc, diag::note_condition_or_assign_to_comparison)
17235     Diag(Loc, diag::note_condition_assign_to_comparison)
17258       Diag(Loc, diag::warn_equality_with_extra_parens) << E->getSourceRange();
17260       Diag(Loc, diag::note_equality_comparison_silence)
17263       Diag(Loc, diag::note_equality_comparison_to_assign)
17289       Diag(Loc, diag::err_typecheck_statement_requires_scalar)
17346       S.Diag(E->getExprLoc(), diag::err_unsupported_unknown_any_call)
17438       S.Diag(E->getExprLoc(), diag::err_unsupported_unknown_any_expr)
17470         S.Diag(E->getOperatorLoc(), diag::err_unknown_any_addrof)
17476         S.Diag(E->getOperatorLoc(), diag::err_unknown_any_addrof_call)
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)
17838       S.Diag(loc, diag::err_uncasted_send_to_unknown_any_method)
17844     S.Diag(E->getExprLoc(), diag::err_unsupported_unknown_any_expr)
17849   S.Diag(loc, diagID) << d << orig->getSourceRange();
17939     Diag(E->getBeginLoc(), diag::err_builtin_fn_use);
17945     Diag(E->getBeginLoc(), diag::err_omp_array_section_use);
tools/clang/lib/Sema/SemaExprCXX.cpp
  119       Diag(SS.getLastQualifierNameLoc(),
  358     Diag(NameLoc, diag::err_destructor_expr_type_mismatch)
  360     Diag(NonMatchingTypeDecl->getLocation(), diag::note_destructor_type_here)
  363     Diag(NameLoc, diag::err_ident_in_dtor_not_a_type)
  366     SemaDiagnosticBuilder DtorDiag = Diag(NameLoc,
  385     Diag(DS.getTypeSpecTypeLoc(), diag::err_decltype_auto_invalid);
  398     Diag(DS.getTypeSpecTypeLoc(), diag::err_destructor_expr_type_mismatch)
  421     Diag(Name.getBeginLoc(), diag::err_literal_operator_id_outside_namespace)
  454     return ExprError(Diag(TypeidLoc, diag::err_variably_modified_typeid) << T);
  521     return ExprError(Diag(TypeidLoc, diag::err_variably_modified_typeid)
  527     Diag(E->getExprLoc(), WasEvaluated
  542     return ExprError(Diag(OpLoc, diag::err_openclcxx_not_supported)
  548     return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid));
  562       return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid));
  566     return ExprError(Diag(OpLoc, diag::err_no_typeid_with_fno_rtti));
  636       return ExprError(Diag(TypeidLoc, diag::err_uuidof_without_guid));
  638       return ExprError(Diag(TypeidLoc, diag::err_uuidof_with_multiple_guids));
  659         return ExprError(Diag(TypeidLoc, diag::err_uuidof_without_guid));
  661         return ExprError(Diag(TypeidLoc, diag::err_uuidof_with_multiple_guids));
  681       return ExprError(Diag(OpLoc, diag::err_need_header_before_ms_uuidof));
  772     Diag(OpLoc, diag::err_omp_simd_region_cannot_use_stmt) << "throw";
  960       Diag(ThrowLoc, diag::warn_throw_underaligned_obj);
  961       Diag(ThrowLoc, diag::note_throw_underaligned_obj)
 1194           Diag(Loc, diag::err_this_capture)
 1213         Diag(Loc, diag::err_this_capture)
 1264     return Diag(Loc, diag::err_invalid_this_use);
 1382       return ExprError(Diag(TyBeginLoc, diag::err_value_init_for_array_type)
 1390     return ExprError(Diag(TyBeginLoc, diag::err_init_for_function_type)
 1659       return ExprError(Diag(Chunk.Loc, diag::err_new_array_of_auto)
 1662       return ExprError(Diag(Chunk.Loc, diag::err_static_illegal_in_new)
 1665       return ExprError(Diag(Chunk.Loc, diag::err_array_new_needs_size)
 1762     Diag(Loc, diag::err_aligned_allocation_unavailable)
 1765     Diag(Loc, diag::note_silence_aligned_allocation_unavailable);
 1829           Diag(ArraySize ? (*ArraySize)->getExprLoc() : TypeRange.getBegin(),
 1851       return ExprError(Diag(StartLoc, diag::err_auto_new_requires_ctor_arg)
 1855       return ExprError(Diag(FirstBad->getBeginLoc(),
 1860       Diag(Initializer->getBeginLoc(), diag::ext_auto_new_list_init)
 1865       return ExprError(Diag(StartLoc, diag::err_auto_new_deduction_failure)
 1923         Diag(StartLoc, diag::warn_cxx98_compat_array_size_conversion)
 1937           return S.Diag(Loc, diag::err_array_size_not_integral)
 1943           return S.Diag(Loc, diag::err_array_size_incomplete_type)
 1949           return S.Diag(Loc, diag::err_array_size_explicit_conversion) << T << ConvTy;
 1954           return S.Diag(Conv->getLocation(), diag::note_array_size_conversion)
 1960           return S.Diag(Loc, diag::err_array_size_ambiguous_conversion) << T;
 1965           return S.Diag(Conv->getLocation(), diag::note_array_size_conversion)
 1972           return S.Diag(Loc,
 2008           return ExprError(Diag((*ArraySize)->getBeginLoc(),
 2018                 Diag((*ArraySize)->getBeginLoc(), diag::err_array_too_large)
 2025         Diag((*ArraySize)->getBeginLoc(), diag::ext_new_paren_array_nonconst)
 2093         Diag(StartLoc, diag::warn_overaligned_type)
 2106     Diag(StartLoc, diag::err_new_array_init_args) << InitRange;
 2158         Diag(TypeRange.getEnd(), diag::err_new_array_size_unknown_from_init)
 2190     return Diag(Loc, diag::err_bad_new_type)
 2193     return Diag(Loc, diag::err_bad_new_type)
 2202     return Diag(Loc, diag::err_variably_modified_new_type)
 2206     return Diag(Loc, diag::err_address_space_qualified_new)
 2214         return Diag(Loc, diag::err_arc_new_array_without_ownership)
 2426         Diag(StartLoc, diag::err_openclcxx_not_supported) << "default new";
 2428         Diag(StartLoc, diag::err_openclcxx_placement_new);
 2617         Diag(StartLoc, diag::err_placement_new_non_placement_delete) << R;
 2619           Diag(OperatorDelete->getLocation(), diag::note_previous_decl)
 2630     Diag(StartLoc, diag::warn_ambiguous_suitable_delete_function_found)
 2634       Diag(Match.second->getLocation(),
 2916         Diag(StartLoc, diag::err_deleted_function_use);
 2934       Diag(StartLoc, diag::err_ambiguous_suitable_delete_member_function_found)
 2937         Diag(Match.FD->getLocation(), diag::note_member_declared_here) << Name;
 2946       Diag(StartLoc, diag::err_no_suitable_delete_member_function_found)
 2950         Diag(D->getUnderlyingDecl()->getLocation(),
 3171   SemaRef.Diag(DeleteLoc, diag::warn_mismatched_delete_new)
 3175     SemaRef.Diag(NE->getExprLoc(), diag::note_allocated_here)
 3258         return S.Diag(Loc, diag::err_delete_operand) << T;
 3263         return S.Diag(Loc, diag::err_delete_incomplete_class_type) << T;
 3269         return S.Diag(Loc, diag::err_delete_explicit_conversion) << T << ConvTy;
 3274         return S.Diag(Conv->getLocation(), diag::note_delete_conversion)
 3280         return S.Diag(Loc, diag::err_ambiguous_delete_operand) << T;
 3285         return S.Diag(Conv->getLocation(), diag::note_delete_conversion)
 3310       return Diag(Ex.get()->getBeginLoc(),
 3320       Diag(StartLoc, diag::ext_delete_void_ptr_operand)
 3323       return ExprError(Diag(StartLoc, diag::err_delete_operand)
 3336       Diag(StartLoc, diag::warn_delete_array_type)
 3385         Diag(StartLoc, diag::err_openclcxx_not_supported) << "default delete";
 3492       S.Diag(R.getNameLoc(), diag::err_builtin_operator_new_delete_not_usual)
 3494       S.Diag(FnDecl->getLocation(), diag::note_non_usual_function_declared_here)
 3535     Diag(TheCall->getExprLoc(), diag::err_builtin_requires_language)
 3601     Diag(Loc, diag::warn_delete_abstract_non_virtual_dtor) << (IsDelete ? 0 : 1)
 3606     Diag(Loc, diag::warn_delete_non_virtual_dtor) << (IsDelete ? 0 : 1)
 3612     Diag(DtorLoc, diag::note_delete_non_virtual)
 3641     return ExprError(Diag(ConditionVar->getLocation(),
 3645     return ExprError(Diag(ConditionVar->getLocation(),
 4074         Diag(From->getBeginLoc(),
 4079         Diag(From->getBeginLoc(),
 4091         Diag(From->getBeginLoc(), diag::err_arc_weak_unavailable_assign);
 4093         Diag(From->getBeginLoc(), diag::err_arc_convesion_of_weak_unavailable)
 4311       Diag(From->getBeginLoc(),
 5316       Self.Diag(KeyLoc, diag::err_dimension_expr_not_constant_integer)
 5435     Diag(Loc, diag::err_bad_memptr_rhs)
 5457       Diag(Loc, diag::err_bad_memptr_lhs)
 5472       Diag(Loc, diag::err_bad_memptr_lhs) << OpSpelling
 5496     Diag(Loc, diag::err_pointer_to_member_type) << isIndirect;
 5525           Diag(Loc, getLangOpts().CPlusPlus2a
 5529           Diag(Loc, diag::err_pointer_to_member_oper_value_classify)
 5536         Diag(Loc, diag::err_pointer_to_member_oper_value_classify)
 5698       Self.Diag(QuestionLoc, diag::err_typecheck_cond_incompatible_operands)
 5704       Self.Diag(QuestionLoc, diag::err_conditional_ambiguous_ovl)
 5798     Diag(QuestionLoc, diag::err_conditional_void_nonvoid)
 5822       Diag(QuestionLoc, diag::err_conditional_ambiguous)
 5983       Diag(QuestionLoc,
 6020   Diag(QuestionLoc, diag::err_typecheck_cond_incompatible_operands)
 6691       S.Diag(OperatorArrows[I]->getLocation(),
 6696       S.Diag(OperatorArrows[I]->getLocation(), diag::note_operator_arrow_here)
 6747         Diag(OpLoc, diag::err_operator_arrow_depth_exceeded)
 6750         Diag(OpLoc, diag::note_operator_arrow_depth)
 6767             Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
 6773           Diag(OpLoc, diag::err_typecheck_member_reference_arrow)
 6777             Diag(CD->getBeginLoc(),
 6789         Diag(OpLoc, diag::err_operator_arrow_circular) << StartingType;
 6865       S.Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
 6913       Diag(OpLoc, diag::ext_pseudo_dtor_on_void) << Base->getSourceRange();
 6915       Diag(OpLoc, diag::err_pseudo_dtor_base_not_scalar)
 6937               Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
 6950           Diag(DestructedTypeStart, diag::err_pseudo_dtor_type_mismatch)
 6967           Diag(DestructedTypeStart, diag::err_arc_pseudo_dtor_inconstant_quals)
 6993       Diag(ScopeTypeInfo->getTypeLoc().getLocalSourceRange().getBegin(),
 7064       Diag(SecondTypeName.StartLocation,
 7116         Diag(FirstTypeName.StartLocation,
 7218         Diag(Exp.get()->getExprLoc(), diag::note_lambda_to_block_conv);
 7262     Diag(Operand->getExprLoc(), diag::warn_side_effects_unevaluated_context);
tools/clang/lib/Sema/SemaExprMember.cpp
  217     SemaRef.Diag(Loc, diag::err_invalid_member_use_in_static_method)
  223     SemaRef.Diag(Loc, diag::err_nested_non_static_member_use)
  226     SemaRef.Diag(Loc, diag::err_invalid_non_static_member_use)
  229     SemaRef.Diag(Loc, diag::err_member_call_without_object)
  251     Diag(R.getNameLoc(), diag::warn_cxx98_compat_non_static_member_use)
  347         S.Diag(OpLoc, diag::ext_opencl_ext_vector_type_rgba_selector)
  364     S.Diag(OpLoc, diag::err_ext_vector_component_name_illegal)
  379         S.Diag(OpLoc, diag::err_ext_vector_component_exceeds_length)
  395       S.Diag(OpLoc, diag::err_opencl_ext_vector_component_invalid_length)
  501       Diag(OpLoc, diag::err_typecheck_member_reference_struct_union)
  533   SemaRef.Diag(nameInfo.getLoc(), diag::err_qualified_member_of_unrelated)
  672       SemaRef.Diag(SS.getRange().getEnd(), diag::err_typecheck_incomplete_tag)
  680       SemaRef.Diag(R.getNameLoc(), diag::err_qualified_member_nonclass)
  717           SemaRef.Diag(TypoLoc, diag::err_no_member) << Typo << DC << BaseRange;
 1002     Diag(MemberLoc, diag::warn_cdtor_function_try_handler_mem_expr)
 1030         Diag(OpLoc, diag::err_no_member_overloaded_arrow)
 1036     Diag(R.getNameLoc(), diag::err_no_member)
 1173     Diag(MemberLoc, diag::err_typecheck_member_reference_type)
 1176     Diag(MemberLoc, diag::err_typecheck_member_reference_unknown)
 1179   Diag(MemberDecl->getLocation(), diag::note_member_declared_here)
 1282         S.Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
 1290       S.Diag(MemberLoc, diag::err_typecheck_member_reference_arrow)
 1313       S.Diag(SS.getRange().getBegin(), diag::err_qualified_objc_access)
 1380           S.Diag(MemberLoc, diag::err_property_found_suggest)
 1386         S.Diag(MemberLoc, diag::err_typecheck_member_reference_ivar)
 1427             S.Diag(MemberLoc, diag::err_private_ivar_access)
 1431           S.Diag(MemberLoc, diag::err_protected_ivar_access)
 1444           S.Diag(DE->getLocation(), diag::err_arc_weak_ivar_access);
 1456         S.Diag(MemberLoc, diag::warn_direct_ivar_access) << IV->getDeclName();
 1476       S.Diag(SS.getRange().getBegin(), diag::err_qualified_objc_access)
 1531       return ExprError(S.Diag(MemberLoc, diag::err_property_not_found)
 1586       return ExprError(S.Diag(MemberLoc, diag::err_property_not_found)
 1645       S.Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
 1669   S.Diag(OpLoc, diag::err_typecheck_member_reference_struct_union)
 1698     Diag(Id.getSourceRange().getBegin(),
tools/clang/lib/Sema/SemaExprObjC.cpp
   53         Diag(S->getBeginLoc(), diag::err_cfstring_literal_not_string_constant)
  110       Diag(S->getBeginLoc(), diag::err_no_nsconstant_string_class)
  151     S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName();
  158     S.Diag(Loc, diag::err_objc_literal_method_sig)
  160     S.Diag(Method->getLocation(), diag::note_objc_literal_method_return)
  201     S.Diag(Loc, diag::err_undeclared_objc_literal_class)
  205     S.Diag(Loc, diag::err_undeclared_objc_literal_class)
  207     S.Diag(Decl->getLocation(), diag::note_forward_class);
  250       S.Diag(Loc, diag::err_invalid_nsnumber_type)
  434         S.Diag(OrigElement->getBeginLoc(), diag::err_box_literal_collection)
  450         S.Diag(OrigElement->getBeginLoc(), diag::err_box_literal_collection)
  464       S.Diag(Element->getBeginLoc(), diag::err_invalid_collection_element)
  483             S.Diag(Element->getBeginLoc(),
  548             Diag(SL->getBeginLoc(), diag::warn_objc_boxing_invalid_utf8_string)
  635       Diag(Loc, diag::err_objc_incomplete_boxed_expression_type)
  722       Diag(Loc, diag::err_objc_non_trivially_copyable_boxed_expression_type)
  732     Diag(Loc, diag::err_objc_illegal_boxed_expression_type)
  849       Diag(SR.getBegin(), diag::err_objc_literal_method_sig)
  851       Diag(Method->parameters()[0]->getLocation(),
  860       Diag(SR.getBegin(), diag::err_objc_literal_method_sig)
  862       Diag(Method->parameters()[1]->getLocation(),
  966       Diag(SR.getBegin(), diag::err_objc_literal_method_sig)
  968       Diag(Method->parameters()[0]->getLocation(),
 1003         Diag(SR.getBegin(), diag::err_objc_literal_method_sig)
 1005         Diag(Method->parameters()[1]->getLocation(),
 1016       Diag(SR.getBegin(), diag::err_objc_literal_method_sig)
 1018       Diag(Method->parameters()[2]->getLocation(),
 1058       Diag(Element.EllipsisLoc,
 1095       Diag(AtLoc, diag::warn_incomplete_encoded_type)
 1139         S.Diag(AtLoc, diag::warn_multiple_selectors)
 1142         S.Diag(Method->getLocation(), diag::note_method_declared_at)
 1145       S.Diag(MatchingMethodDecl->getLocation(), diag::note_method_declared_at)
 1193       Diag(SelLoc, diag::warn_undeclared_selector_with_typo)
 1198         Diag(SelLoc, diag::warn_undeclared_selector) << Sel;
 1217       Diag(AtLoc, diag::err_arc_illegal_selector) <<
 1246     Diag(ProtoLoc, diag::err_undeclared_protocol) << ProtocolId;
 1250     Diag(ProtoLoc, diag::err_atprotocol_protocol) << PDecl;
 1251     Diag(PDecl->getLocation(), diag::note_entity_declared_at) << PDecl;
 1514     Diag(loc, diag::note_related_result_type_explicit)
 1522     Diag(MD->getLocation(), diag::note_related_result_type_family)
 1548   Diag(Method->getLocation(), diag::note_related_result_type_inferred)
 1600           Diag(SelLoc, DiagID)
 1604           Diag(SelLoc, DiagID) << Sel<< isClassMessage << MatchedSel;
 1607         Diag(SelLoc, DiagID)
 1614           Diag(ThisClass->getLocation(), diag::note_receiver_class_declared);
 1617               Diag(RecRange.getBegin(),diag::note_receiver_expr_here)
 1646     Diag(SelLoc, diag::err_typecheck_call_too_few_args)
 1741       Diag(Args[NumNamedArgs]->getBeginLoc(),
 1827     Diag(MemberLoc, diag::err_invalid_property_name)
 1924           Diag(MemberLoc,
 1958           Diag(MemberLoc, diag::err_class_property_found) << MemberName
 1983     Diag(MemberLoc,
 1990   Diag(MemberLoc, diag::err_property_not_found)
 1993     Diag(Setter->getLocation(), diag::note_getter_unavailable)
 2019               Diag(receiverNameLoc, diag::err_root_class_cannot_use_super)
 2041       Diag(receiverNameLoc, diag::err_expected_either) << tok::identifier
 2098   return ExprError(Diag(propertyNameLoc, diag::err_property_not_found)
 2232     Diag(SuperLoc, diag::err_invalid_receiver_to_message_super);
 2238     Diag(SuperLoc, diag::err_no_super_class_message)
 2246     Diag(SuperLoc, diag::err_root_class_cannot_use_super)
 2300     DiagnosticBuilder Builder = S.Diag(MsgLoc, DiagID)
 2369     S.Diag(Loc, diag::warn_objc_unsafe_perform_selector)
 2374     S.Diag(ImpliedMethod->getBeginLoc(),
 2410       S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string)
 2413         S.Diag(Method->getLocation(), diag::note_method_declared_at)
 2460     Diag(Loc, diag::err_missing_open_square_message_send)
 2487     Diag(Loc, diag::err_invalid_receiver_class_message)
 2509         Diag(Method->getLocation(), diag::note_method_sent_forward_class)
 2547         Diag(Loc, diag::warn_direct_initialize_call);
 2548         Diag(Method->getLocation(), diag::note_method_declared_at)
 2555         Diag(Loc, diag::warn_direct_super_initialize_call);
 2556         Diag(Method->getLocation(), diag::note_method_declared_at)
 2558         Diag(CurMeth->getLocation(), diag::note_method_declared_at)
 2696     Diag(Loc, diag::err_missing_open_square_message_send)
 2745       Diag(Loc, diag::warn_bad_receiver_type)
 2775     Diag(Receiver->getExprLoc(), diag::warn_messaging_unqualified_id);
 2822             Diag(SelLoc, diag::warn_instance_method_on_class_found)
 2824             Diag(Method->getLocation(), diag::note_method_declared_at)
 2863                     Diag(SelLoc, diag::warn_root_inst_method_not_found)
 2910           Diag(Receiver ? Receiver->getBeginLoc() : SuperLoc,
 2926             Diag(SelLoc, diag::err_arc_may_not_respond)
 2957                 Diag(SelLoc, diag::warn_maynot_respond)
 2967         Diag(Loc, diag::err_bad_receiver_type)
 3002       Diag(SelLoc, SuperLoc.isValid() ?
 3005       Diag(InitMethod->getLocation(),
 3014       Diag(SelLoc, diag::warn_objc_secondary_init_super_init_call);
 3064       Diag(SelLoc, diag::err_arc_illegal_explicit_message)
 3091                   Diag(SelLoc,
 3093                   Diag(SelMethod->getLocation(), diag::note_method_declared_at)
 3101                   Diag(SelLoc,
 3103                   Diag(SelMethod->getLocation(), diag::note_method_declared_at)
 3111           Diag(SelLoc, diag::warn_arc_perform_selector_leaks);
 3112           Diag(Args[0]->getExprLoc(), diag::note_used_here);
 3716     S.Diag(loc, diag::err_arc_cast_requires_bridge)
 3731         (CCK != Sema::CCK_OtherCast) ? S.Diag(noteLoc, diag::note_arc_bridge)
 3732                               : S.Diag(noteLoc, diag::note_arc_cstyle_bridge);
 3742           S.Diag(noteLoc, diag::note_arc_cstyle_bridge_transfer) << castExprType :
 3743           S.Diag(br ? castExpr->getExprLoc() : noteLoc,
 3758     S.Diag(loc, diag::err_arc_cast_requires_bridge)
 3772       (CCK != Sema::CCK_OtherCast) ? S.Diag(noteLoc, diag::note_arc_bridge)
 3773                                : S.Diag(noteLoc, diag::note_arc_cstyle_bridge);
 3782           S.Diag(noteLoc, diag::note_arc_cstyle_bridge_retained) << castType :
 3783           S.Diag(br ? castExpr->getExprLoc() : noteLoc,
 3795   S.Diag(loc, diag::err_arc_mismatched_cast)
 3830                 S.Diag(castExpr->getBeginLoc(), diag::warn_objc_invalid_bridge)
 3842                 S.Diag(castExpr->getBeginLoc(), diag::warn_objc_invalid_bridge)
 3844                 S.Diag(TDNDecl->getBeginLoc(), diag::note_declared_at);
 3845                 S.Diag(Target->getBeginLoc(), diag::note_declared_at);
 3851           S.Diag(castExpr->getBeginLoc(),
 3854           S.Diag(TDNDecl->getBeginLoc(), diag::note_declared_at);
 3856             S.Diag(Target->getBeginLoc(), diag::note_declared_at);
 3896                 S.Diag(castExpr->getBeginLoc(),
 3899                 S.Diag(TDNDecl->getBeginLoc(), diag::note_declared_at);
 3911                 S.Diag(castExpr->getBeginLoc(),
 3914                 S.Diag(TDNDecl->getBeginLoc(), diag::note_declared_at);
 3915                 S.Diag(Target->getBeginLoc(), diag::note_declared_at);
 3921         S.Diag(castExpr->getBeginLoc(),
 3924         S.Diag(TDNDecl->getBeginLoc(), diag::note_declared_at);
 3926           S.Diag(Target->getBeginLoc(), diag::note_declared_at);
 4047       Diag(Loc, diag::err_objc_bridged_related_invalid_class) << RCId
 4049       Diag(TDNDecl->getBeginLoc(), diag::note_declared_at);
 4058       Diag(Loc, diag::err_objc_bridged_related_invalid_class_name) << RCId
 4060       Diag(TDNDecl->getBeginLoc(), diag::note_declared_at);
 4062         Diag(Target->getBeginLoc(), diag::note_declared_at);
 4073         Diag(Loc, diag::err_objc_bridged_related_known_method)
 4075         Diag(TDNDecl->getBeginLoc(), diag::note_declared_at);
 4087         Diag(Loc, diag::err_objc_bridged_related_known_method)
 4089         Diag(TDNDecl->getBeginLoc(), diag::note_declared_at);
 4128         Diag(Loc, diag::err_objc_bridged_related_known_method)
 4133         Diag(RelatedClass->getBeginLoc(), diag::note_declared_at);
 4134         Diag(TDNDecl->getBeginLoc(), diag::note_declared_at);
 4161             Diag(Loc, diag::err_objc_bridged_related_known_method)
 4171           Diag(Loc, diag::err_objc_bridged_related_known_method)
 4176         Diag(RelatedClass->getBeginLoc(), diag::note_declared_at);
 4177         Diag(TDNDecl->getBeginLoc(), diag::note_declared_at);
 4229           Diag(loc, diag::err_arc_nolifetime_behavior);
 4461       Diag(BridgeKeywordLoc, diag::err_arc_bridge_cast_wrong_kind)
 4468       Diag(BridgeKeywordLoc, diag::note_arc_bridge)
 4470       Diag(BridgeKeywordLoc, diag::note_arc_bridge_transfer)
 4504       Diag(BridgeKeywordLoc, diag::err_arc_bridge_cast_wrong_kind)
 4512       Diag(BridgeKeywordLoc, diag::note_arc_bridge)
 4514       Diag(BridgeKeywordLoc, diag::note_arc_bridge_retained)
 4524     Diag(LParenLoc, diag::err_arc_bridge_cast_incompatible)
tools/clang/lib/Sema/SemaInit.cpp
  224       S.Diag(Str->getBeginLoc(),
  230       S.Diag(Str->getBeginLoc(),
  425       SemaRef.Diag(NewInitRange.getBegin(), DiagID)
  427       SemaRef.Diag(OldInit->getBeginLoc(), diag::note_previous_initializer)
  559           SemaRef.Diag(CtorDecl->getLocation(),
  562             SemaRef.Diag(Entity.getDecl()->getLocation(),
  565             SemaRef.Diag(Loc, diag::note_used_in_initialization_here);
  574         SemaRef.Diag(Entity.getDecl()->getLocation(),
  581         SemaRef.Diag(Loc, diag::note_in_omitted_aggregate_initializer)
  690         SemaRef.Diag(Loc, diag::err_init_reference_member_uninitialized)
  693         SemaRef.Diag(Field->getLocation(),
 1042       SemaRef.Diag(ParentIList->getInit(Index)->getBeginLoc(),
 1080       SemaRef.Diag(StructuredSubobjectInitList->getBeginLoc(),
 1094       SemaRef.Diag(StructuredSubobjectInitList->getBeginLoc(),
 1158     S.Diag(Braces.getBegin(), DiagID)
 1203       SemaRef.Diag(IList->getInit(Index)->getBeginLoc(), DK)
 1214       SemaRef.Diag(IList->getInit(Index)->getBeginLoc(), DK)
 1237         SemaRef.Diag(IList->getBeginLoc(),
 1287       SemaRef.Diag(IList->getBeginLoc(), diag::err_illegal_initializer_type)
 1295       SemaRef.Diag(IList->getBeginLoc(), diag::err_init_objc_class) << DeclType;
 1303       SemaRef.Diag(IList->getBeginLoc(), diag::err_illegal_initializer_type)
 1489     SemaRef.Diag(IList->getBeginLoc(), diag::ext_complex_component_init)
 1511       SemaRef.Diag(IList->getBeginLoc(),
 1527       SemaRef.Diag(SubIList->getBeginLoc(),
 1536       SemaRef.Diag(expr->getBeginLoc(), diag::err_designator_for_scalar_init)
 1587       SemaRef.Diag(IList->getBeginLoc(),
 1599       SemaRef.Diag(IList->getBeginLoc(), diag::err_init_non_aggr_init_list)
 1722       SemaRef.Diag(IList->getBeginLoc(),
 1737       SemaRef.Diag(IList->getBeginLoc(),
 1782       SemaRef.Diag(IList->getBeginLoc(),
 1856       SemaRef.Diag(VAT->getSizeExpr()->getBeginLoc(),
 1935       SemaRef.Diag(IList->getBeginLoc(), diag::ext_typecheck_zero_array_size);
 1983     SemaRef.Diag(InitExpr->getBeginLoc(), FlexArrayDiag)
 1985     SemaRef.Diag(Field->getLocation(), diag::note_flexible_array_member)
 2195         SemaRef.Diag(IList->getSourceRange().getEnd(),
 2488         SemaRef.Diag(Loc, diag::err_field_designator_non_aggr)
 2521           SemaRef.Diag(D->getFieldLoc(), diag::err_field_designator_nonfield)
 2523           SemaRef.Diag(Lookup.front()->getLocation(),
 2544           SemaRef.Diag(D->getFieldLoc(), diag::err_field_designator_unknown)
 2641         SemaRef.Diag(DIE->getBeginLoc(), diag::ext_designated_init_reordered)
 2647             SemaRef.Diag(PrevInit->getBeginLoc(),
 2674           SemaRef.Diag(NextD->getBeginLoc(),
 2677           SemaRef.Diag(Field->getLocation(), diag::note_flexible_array_member)
 2687           SemaRef.Diag(DIE->getInit()->getBeginLoc(),
 2690           SemaRef.Diag(Field->getLocation(), diag::note_flexible_array_member)
 2790       SemaRef.Diag(D->getLBracketLoc(), diag::err_array_designator_non_array)
 2831         SemaRef.Diag(IndexExpr->getBeginLoc(),
 3119     return S.Diag(Loc, diag::err_array_designator_negative)
 3188           Diag(D.getEllipsisLoc(), diag::err_array_designator_empty_range)
 5399   S.Diag(src->getExprLoc(), diag::err_arc_nonlocal_writeback)
 6161     S.Diag(Loc, diag::err_temp_copy_deleted)
 6315       S.Diag(Entity.getDecl()->getLocation(), diag::note_parameter_named_here)
 6318       S.Diag(Entity.getDecl()->getLocation(), diag::note_parameter_here);
 6322     S.Diag(Entity.getMethodDecl()->getLocation(),
 7374         Diag(DiagLoc, diag::warn_dangling_lifetime_pointer) << DiagRange;
 7395         Diag(DiagLoc, diag::warn_unsupported_lifetime_extension)
 7404         Diag(DiagLoc, diag::warn_dangling_variable)
 7420             Diag(DiagLoc, diag::warn_dangling_lifetime_pointer_member)
 7422             Diag(ExtendingDecl->getLocation(),
 7428           Diag(DiagLoc, shouldLifetimeExtendThroughPath(Path)
 7437             Diag(ExtendingDecl->getLocation(),
 7473           Diag(DiagLoc, IsPointer ? diag::warn_init_ptr_member_to_parameter_addr
 7476           Diag(Member->getLocation(),
 7487           Diag(DiagLoc, diag::warn_dangling_lifetime_pointer) << DiagRange;
 7489           Diag(DiagLoc, RK == RK_ReferenceBinding
 7506         Diag(DiagLoc, diag::warn_ret_stack_addr_ref)
 7510         Diag(DiagLoc, diag::err_ret_local_block) << DiagRange;
 7516         Diag(DiagLoc, diag::warn_ret_addr_label) << DiagRange;
 7518         Diag(DiagLoc, diag::warn_ret_local_temp_addr_ref)
 7541         Diag(FD->getLocation(), diag::note_init_with_default_member_initalizer)
 7548         Diag(VD->getLocation(), diag::note_local_var_initializer)
 7646   S.Diag(CE->getBeginLoc(), DiagID);
 7672   S.Diag(CE->getBeginLoc(), diag::note_remove_move)
 7763     S.Diag(Kind.getLocation(), DiagID)
 7832     S.Diag(Init->getBeginLoc(), diag::warn_cxx98_compat_reference_list_init)
 7845     S.Diag(Args[0]->getBeginLoc(), diag::err_opencl_atomic_init)
 8157             S.Diag(CurInit.get()->getExprLoc(),
 8241       S.Diag(InitList->getExprLoc(), diag::warn_cxx98_compat_ctor_list_init)
 8403       S.Diag(Kind.getLocation(), diag::ext_array_init_copy)
 8429       S.Diag(Kind.getLocation(), diag::ext_array_init_parens)
 8448       S.Diag(CurInit.get()->getExprLoc(),
 8490           S.Diag(Kind.getLocation(), diag::err_sampler_argument_required)
 8525           S.Diag(Kind.getLocation(), diag::err_sampler_initializer_not_integer)
 8545           S.Diag(Kind.getLocation(),
 8549           S.Diag(Kind.getLocation(),
 8599     S.Diag(Loc, diag::err_reference_without_init)
 8613       S.Diag(Loc, diag::note_value_initialization_here) << RD;
 8620       S.Diag(Loc, diag::note_value_initialization_here) << RD;
 8677     S.Diag(Loc, diag::note_in_reference_temporary_list_initializer) << T;
 8723       S.Diag(Kind.getLocation(), diag::err_reference_has_multiple_inits)
 8727     S.Diag(Kind.getLocation(), diag::err_list_init_in_parens)
 8732     S.Diag(Kind.getLocation(), diag::err_array_init_not_init_list) << 0;
 8735     S.Diag(Kind.getLocation(), diag::err_array_init_not_init_list) << 1;
 8738     S.Diag(Kind.getLocation(), diag::err_array_init_not_init_list) << 2;
 8741     S.Diag(Kind.getLocation(), diag::err_array_init_narrow_string_into_wchar);
 8744     S.Diag(Kind.getLocation(), diag::err_array_init_wide_string_into_char);
 8747     S.Diag(Kind.getLocation(),
 8751     S.Diag(Kind.getLocation(),
 8753     S.Diag(Args.front()->getBeginLoc(),
 8758     S.Diag(Kind.getLocation(),
 8764     S.Diag(Kind.getLocation(),
 8774     S.Diag(Kind.getLocation(), diag::err_variable_object_no_init)
 8818         S.Diag(Kind.getLocation(), diag::err_typecheck_nonviable_condition)
 8827       S.Diag(Kind.getLocation(), diag::err_typecheck_deleted_function)
 8848       S.Diag(Kind.getLocation(),
 8858     S.Diag(Kind.getLocation(),
 8871     S.Diag(Kind.getLocation(), diag::err_reference_bind_to_bitfield)
 8877       S.Diag(BitField->getLocation(), diag::note_bitfield_decl);
 8882     S.Diag(Kind.getLocation(), diag::err_reference_bind_to_vector_element)
 8888     S.Diag(Kind.getLocation(), diag::err_lvalue_to_rvalue_ref)
 8894     S.Diag(Kind.getLocation(), diag::err_reference_bind_temporary_addrspace)
 8906       S.Diag(Kind.getLocation(), diag::err_reference_bind_drops_quals)
 8910       S.Diag(Kind.getLocation(), diag::err_reference_bind_drops_quals)
 8918     S.Diag(Kind.getLocation(), diag::err_reference_bind_failed)
 8958       S.Diag(Kind.getLocation(), diag::err_builtin_func_cast_more_than_one_arg)
 8961       S.Diag(Kind.getLocation(), diag::err_excess_initializers)
 8967     S.Diag(Kind.getLocation(), diag::err_list_init_in_parens)
 8972     S.Diag(Kind.getLocation(), diag::err_reference_bind_init_list)
 8977     S.Diag(Kind.getLocation(), diag::err_init_list_bad_dest_type)
 9021             S.Diag(Kind.getLocation(), diag::err_missing_default_ctor)
 9031             S.Diag(BaseDecl->getLocation(), diag::note_previous_decl)
 9034             S.Diag(Kind.getLocation(), diag::err_missing_default_ctor)
 9040             S.Diag(Entity.getDecl()->getLocation(),
 9045               S.Diag(Record->getDecl()->getLocation(),
 9065           S.Diag(Kind.getLocation(), diag::err_ovl_deleted_init)
 9075           S.Diag(Kind.getLocation(), diag::err_ovl_deleted_special_init)
 9079           S.Diag(Kind.getLocation(), diag::err_ovl_deleted_init)
 9099       S.Diag(Kind.getLocation(), diag::err_uninitialized_member_in_ctor)
 9105       S.Diag(Entity.getDecl()->getLocation(), diag::note_previous_decl)
 9108       S.Diag(Kind.getLocation(), diag::err_default_init_const)
 9131     S.Diag(Kind.getLocation(), diag::err_selected_explicit_constructor)
 9139     S.Diag(CtorDecl->getLocation(),
 9522     S.Diag(PostInit->getBeginLoc(), NarrowingErrs(S.getLangOpts())
 9532     S.Diag(PostInit->getBeginLoc(),
 9543     S.Diag(PostInit->getBeginLoc(),
 9571   S.Diag(PostInit->getBeginLoc(), diag::note_init_list_narrowing_silence)
 9683     Diag(Kind.getLocation(),
 9687       Diag(TD->getLocation(), diag::note_template_decl_here);
 9693     Diag(TSInfo->getTypeLoc().getBeginLoc(),
 9885     Diag(Kind.getLocation(), diag::err_deduced_class_template_deleted)
 9898       Diag(Kind.getLocation(), diag::err_deduced_class_template_explicit)
 9900       Diag(Best->Function->getLocation(),
 9918   Diag(TSInfo->getTypeLoc().getBeginLoc(),
 9925     Diag(TSInfo->getTypeLoc().getBeginLoc(),
 9928     Diag(Template->getLocation(), diag::note_suppress_ctad_maybe_unsupported);
tools/clang/lib/Sema/SemaLambda.cpp
  553           Diag(Param->getLocation(), diag::err_parameter_shadow_capture);
  554           Diag(Capture.Loc, diag::note_var_explicitly_captured_here)
  778     Diag(RS->getBeginLoc(),
  801       Diag(EllipsisLoc, getLangOpts().CPlusPlus2a
 1016     Diag(Intro.DefaultLoc, diag::err_capture_default_non_local);
 1028         Diag(C->Loc, !getLangOpts().CPlusPlus17
 1036         Diag(C->Loc, diag::err_capture_more_than_once)
 1049         Diag(C->Loc, !getLangOpts().CPlusPlus2a
 1058         Diag(C->Loc, diag::err_this_capture) << true;
 1077       Diag(C->Loc, getLangOpts().CPlusPlus14
 1126         Diag(C->Loc, diag::err_reference_capture_with_reference_default)
 1131         Diag(C->Loc, diag::err_copy_capture_with_copy_default)
 1163         Diag(C->Loc, diag::err_capture_more_than_once)
 1170         Diag(C->Loc, diag::err_capture_more_than_once) << C->Id;
 1179       Diag(C->Loc, diag::err_capture_does_not_name_variable) << C->Id;
 1188       Diag(C->Loc, diag::err_capture_non_automatic_variable) << C->Id;
 1189       Diag(Var->getLocation(), diag::note_previous_decl) << C->Id;
 1200         Diag(C->EllipsisLoc, diag::err_pack_expansion_without_parameter_packs)
 1587   auto diag = Diag(From.getLocation(), diag::warn_unused_lambda_capture);
 1743             Diag(From.getLocation(), diag::warn_deprecated_this_capture);
 1744             Diag(CaptureDefaultLoc, diag::note_deprecated_this_capture)
tools/clang/lib/Sema/SemaLookup.cpp
 2547     Diag(NameLoc, diag::err_ambiguous_member_multiple_subobjects)
 2556     Diag((*Found)->getLocation(), diag::note_ambiguous_member_found);
 2561     Diag(NameLoc, diag::err_ambiguous_member_multiple_subobject_types)
 2571         Diag(D->getLocation(), diag::note_ambiguous_member_found);
 2577     Diag(NameLoc, diag::err_ambiguous_tag_hiding) << Name << LookupRange;
 2584         Diag(TD->getLocation(), diag::note_hidden_tag);
 2589         Diag(D->getLocation(), diag::note_hiding_object);
 2602     Diag(NameLoc, diag::err_ambiguous_reference) << Name << LookupRange;
 2605       Diag(D->getLocation(), diag::note_ambiguous_candidate) << D;
 3466     Diag(R.getNameLoc(), diag::err_ovl_ambiguous_call) << R.getLookupName();
 3483     Diag(R.getNameLoc(), diag::err_ovl_no_viable_literal_operator)
 5354     Diag(DeclLoc, DiagID);
 5378     Diag(UseLoc, diag::err_module_unimported_use_global_module_fragment)
 5406     Diag(UseLoc, diag::err_module_unimported_use_multiple)
 5415     Diag(UseLoc, diag::err_module_unimported_use_header)
 5420     Diag(UseLoc, diag::err_module_unimported_use)
tools/clang/lib/Sema/SemaModule.cpp
   45     S.Diag(ImportLoc, (FromInclude && S.isModuleVisible(M))
   49     S.Diag(cast<Decl>(DC)->getBeginLoc(),
   53     S.Diag(ImportLoc, diag::ext_module_import_in_extern_c)
   55     S.Diag(ExternCLoc, diag::note_extern_c_begins_here);
  112     Diag(ModuleLoc, diag::err_module_interface_implementation_mismatch)
  118     Diag(ModuleLoc, diag::err_module_decl_in_module_map_module);
  122     Diag(ModuleLoc, diag::err_module_decl_in_header_module);
  134     Diag(ModuleLoc, diag::err_module_redeclaration);
  135     Diag(VisibleModules.getImportLoc(ModuleScopes.back().Module),
  149     Diag(ModuleLoc, diag::err_module_decl_not_at_start);
  155       Diag(BeginLoc, diag::note_global_module_introducer_missing)
  174     Diag(Path.front().second, diag::err_current_module_name_mismatch)
  189       Diag(Path[0].second, diag::err_module_redefinition) << ModuleName;
  191         Diag(M->DefinitionLoc, diag::note_prev_module_definition);
  193         Diag(M->DefinitionLoc, diag::note_prev_module_definition_from_ast_file)
  213       Diag(ModuleLoc, diag::err_module_not_defined) << ModuleName;
  257     Diag(PrivateLoc, diag::err_private_module_fragment_not_module);
  261     Diag(PrivateLoc, diag::err_private_module_fragment_redefined);
  262     Diag(ModuleScopes.back().BeginLoc, diag::note_previous_definition);
  270     Diag(PrivateLoc, diag::err_private_module_fragment_not_module_interface);
  271     Diag(ModuleScopes.back().BeginLoc,
  360     Diag(ImportLoc, getLangOpts().isCompilingModule()
  400     Diag(ExportLoc, diag::err_export_not_in_module_interface);
  537     Diag(ExportLoc, diag::err_export_not_in_module_interface) << 0;
  539     Diag(ExportLoc, diag::err_export_not_in_module_interface) << 1;
  540     Diag(ModuleScopes.back().BeginLoc,
  545     Diag(ExportLoc, diag::err_export_in_private_module_fragment);
  546     Diag(ModuleScopes.back().BeginLoc, diag::note_private_module_fragment);
  554         Diag(ExportLoc, diag::err_export_within_anonymous_namespace);
  555         Diag(ND->getLocation(), diag::note_anonymous_namespace);
  574     Diag(ExportLoc, diag::err_export_within_export);
  576       Diag(ED->getLocation(), diag::note_export);
  636   S.Diag(D->getLocation(), getUnnamedDeclDiag(UDK, BlockStart.isValid()))
  639     S.Diag(BlockStart, diag::note_export);
  654       S.Diag(ND->getLocation(), diag::err_export_internal) << ND;
  656         S.Diag(BlockStart, diag::note_export);
  666       S.Diag(USD->getLocation(), diag::err_export_using_internal) << Target;
  667       S.Diag(Target->getLocation(), diag::note_using_decl_target);
  669         S.Diag(BlockStart, diag::note_export);
tools/clang/lib/Sema/SemaObjCProperty.cpp
   99   S.Diag(property->getLocation(),
  405   S.Diag(NewProperty->getLocation(), diag::warn_property_attribute)
  408   S.Diag(OldProperty->getLocation(), diag::note_property_declare);
  435     Diag(CDecl->getLocation(), diag::err_continuation_class);
  449     Diag(AtLoc, diag::err_duplicate_property);
  450     Diag(PIDecl->getLocation(), diag::note_property_declare);
  470       Diag(AtLoc, diag)
  472       Diag(PIDecl->getLocation(), diag::note_property_declare);
  480         Diag(AtLoc, diag::warn_property_redecl_getter_mismatch)
  482         Diag(PIDecl->getLocation(), diag::note_property_declare);
  497         Diag(AtLoc, diag::warn_property_attr_mismatch);
  498         Diag(PIDecl->getLocation(), diag::note_property_declare);
  511       Diag(AtLoc, diag::warn_property_implicitly_mismatched);
  512       Diag(PIDecl->getLocation(), diag::note_property_declare);
  548       Diag(AtLoc,
  550       Diag(PIDecl->getLocation(), diag::note_property_declare);
  606             Diag(AtLoc, diag::warn_implements_nscopying) << PropertyId;
  613     Diag(FD.D.getIdentifierLoc(), diag::err_statically_allocated_object)
  631     Diag(PDecl->getLocation(), diag::err_duplicate_property);
  632     Diag(prevDecl->getLocation(), diag::note_property_declare);
  642     Diag(AtLoc, diag::err_property_type) << T;
  756     S.Diag(ivar->getLocation(), diag::err_arc_strong_property_ownership)
  763     S.Diag(ivar->getLocation(), diag::err_weak_property)
  769     S.Diag(ivar->getLocation(), diag::err_arc_assign_property_ownership)
  784   S.Diag(property->getLocation(), diag::note_property_declare);
  786     S.Diag(propertyImplLoc, diag::note_property_synthesize);
  960     auto Diag = S.Diag(Property->getLocation(),
  983         S.Diag(Note.Prop->getLocation(), diag::note_protocol_property_declare)
 1002     S.Diag(AtLoc, diag::note_property_synthesize);
 1056     Diag(AtLoc, diag::err_missing_property_context);
 1080       Diag(PropertyLoc, diag::err_bad_property_decl) << IDecl->getDeclName();
 1084       Diag(PropertyLoc, diag::err_synthesize_on_class_property) << PropertyId;
 1091         Diag(AtLoc, diag::warn_implicit_atomic_property);
 1093         Diag(IC->getLocation(), diag::warn_auto_implicit_atomic_property);
 1094       Diag(property->getLocation(), diag::note_property_declare);
 1100         Diag(PropertyLoc, diag::err_category_property) << CD->getDeclName();
 1101         Diag(property->getLocation(), diag::note_property_declare);
 1125         Diag(property->getLocation(), diag::warn_auto_readonly_iboutlet_property)
 1133           Diag(property->getLocation(),
 1145       Diag(AtLoc, diag::err_synthesize_category_decl);
 1150       Diag(AtLoc, diag::err_missing_property_interface);
 1163       Diag(PropertyLoc, diag::err_bad_category_property_decl)
 1168     Diag(AtLoc, diag::err_bad_property_context);
 1188       Diag(property->getLocation(), diag::note_property_declare);
 1208           Diag(PropertyDiagLoc, diag::err_gc_weak_property_strong_type);
 1209           Diag(property->getLocation(), diag::note_property_declare);
 1221             Diag(PropertyDiagLoc,
 1225             Diag(property->getLocation(), diag::note_property_declare);
 1234               Diag(property->getLocation(),
 1237               Diag(ClassImpDecl->getLocation(), diag::note_implemented_by_class)
 1255         Diag(PropertyDiagLoc,
 1259         Diag(property->getLocation(), diag::note_property_declare);
 1260         Diag(originalIvar->getLocation(), diag::note_ivar_decl);
 1275           Diag(PropertyDiagLoc,
 1277           Diag(property->getLocation(), diag::note_property_declare);
 1298         Diag(property->getLocation(), diag::note_property_declare);
 1305           Diag(PropertyIvarLoc, diag::err_synthesize_variable_sized_ivar)
 1316         Diag(PropertyDiagLoc, diag::err_missing_property_ivar_decl)
 1322       Diag(PropertyDiagLoc, diag::err_ivar_in_superclass_use)
 1325       Diag(Ivar->getLocation(), diag::note_previous_access_declaration)
 1347         Diag(PropertyDiagLoc, diag::err_property_ivar_type)
 1350         Diag(Ivar->getLocation(), diag::note_ivar_decl);
 1362           Diag(PropertyDiagLoc, diag::err_property_ivar_type)
 1365           Diag(Ivar->getLocation(), diag::note_ivar_decl);
 1372         Diag(PropertyDiagLoc, diag::err_weak_property)
 1374         Diag(Ivar->getLocation(), diag::note_ivar_decl);
 1381         Diag(PropertyDiagLoc, diag::err_strong_property)
 1391     Diag(PropertyDiagLoc, diag::err_dynamic_property_ivar_decl);
 1442       Diag(getterMethod->getLocation(),
 1444       Diag(property->getLocation(), diag::note_property_declare);
 1452           Diag(getterMethod->getLocation(), diag::err_arc_illegal_method_def)
 1496                 Diag(PropertyDiagLoc,
 1499                 Diag(FuncDecl->getBeginLoc(), diag::note_callee_decl)
 1511         Diag(PropertyLoc, diag::err_duplicate_ivar_use)
 1514         Diag(PPIDecl->getLocation(), diag::note_previous_use);
 1519       Diag(PropertyLoc, diag::err_property_implemented) << PropertyId;
 1520       Diag(PPIDecl->getLocation(), diag::note_previous_declaration);
 1541         Diag(Ivar->getLocation(), diag::err_undeclared_var_use)
 1550         Diag(PropertyDiagLoc, diag::err_duplicate_ivar_use)
 1553         Diag(PPIDecl->getLocation(), diag::note_previous_use);
 1558       Diag(PropertyDiagLoc, diag::err_property_implemented) << PropertyId;
 1559       Diag(PPIDecl->getLocation(), diag::note_previous_declaration);
 1594       Diag(Property->getLocation(), diag::warn_readonly_property)
 1598       Diag(Property->getLocation(), diag::warn_property_attribute)
 1610         Diag(Property->getLocation(), diag::warn_property_attribute)
 1624     Diag(Property->getLocation(), diag::warn_property_attribute)
 1626     Diag(SuperProperty->getLocation(), diag::note_property_declare);
 1629     Diag(Property->getLocation(), diag::warn_property_attribute)
 1631     Diag(SuperProperty->getLocation(), diag::note_property_declare);
 1647         Diag(Property->getLocation(), diag::warn_property_types_are_incompatible)
 1649       Diag(SuperProperty->getLocation(), diag::note_property_declare);
 1672           Diag(Loc, diag::err_property_accessor_type)
 1675           Diag(GetterMethod->getLocation(), diag::note_declared_at);
 1687     Diag(Loc, diag::warn_accessor_property_type_mismatch)
 1690     Diag(GetterMethod->getLocation(), diag::note_declared_at);
 1863       Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property)
 1866         Diag(PID->getLocation(), diag::note_property_synthesize);
 1879         Diag(IMPDecl->getLocation(),
 1882         Diag(Prop->getLocation(), diag::note_property_declare);
 1885         Diag(AtEnd, diag::note_add_synthesize_directive)
 1897         Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property)
 1899         Diag(PropInSuperClass->getLocation(), diag::note_property_declare);
 1902         Diag(Prop->getLocation(), diag::warn_autosynthesis_property_in_superclass)
 1904         Diag(PropInSuperClass->getLocation(), diag::note_property_declare);
 1905         Diag(IMPDecl->getLocation(), diag::note_while_in_implementation);
 1920       Diag(Prop->getLocation(), diag::warn_missing_explicit_synthesis);
 1921       Diag(IMPDecl->getLocation(), diag::note_while_in_implementation);
 1965     S.Diag(IMPDecl->getLocation(), diag) << Prop->getDeclName() << Method;
 1966     S.Diag(Prop->getLocation(), diag::note_property_declare);
 1971           S.Diag(RID->getLocation(), diag::note_suppressed_class_declare);
 2103         Diag(loc, diag::warn_null_resettable_setter)
 2143         Diag(GetterMethod->getLocation(),
 2146         Diag(Property->getLocation(), diag::note_property_declare);
 2149         Diag(SetterMethod->getLocation(),
 2152         Diag(Property->getLocation(), diag::note_property_declare);
 2176         Diag(MethodLoc, diag::warn_atomic_property_rule)
 2187           Diag(Property->getLocation(),
 2194           Diag(Property->getLocation(),
 2199           Diag(MethodLoc, diag::note_atomic_property_fixup_suggest);
 2200         Diag(Property->getLocation(), diag::note_property_declare);
 2222           Diag(PD->getLocation(), diag::err_cocoa_naming_owned_rule);
 2224           Diag(PD->getLocation(), diag::warn_cocoa_naming_owned_rule);
 2251         auto noteDiag = Diag(noteLoc, diag::note_cocoa_naming_declare_family)
 2296         Diag(ImplD->getLocation(),
 2299         Diag(MD->getLocation(), diag::note_objc_designated_init_marked_here);
 2359       Diag(SetterMethod->getLocation(), diag::err_setter_type_void);
 2364       Diag(property->getLocation(),
 2368       Diag(SetterMethod->getLocation(), diag::note_declared_at);
 2548     Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2559     Diag(Loc, diag::err_objc_property_requires_object)
 2572     Diag(Loc, diag::warn_objc_property_assign_on_object);
 2578       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2583       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2588       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2594       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2599       Diag(Loc, diag::warn_iboutletcollection_property_assign);
 2602       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2607       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2612       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2618       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2624       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2629       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2634       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2641       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2647       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2656         Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2663       Diag(Loc, diag::err_objc_property_attr_mutually_exclusive)
 2690             Diag(Loc, diag::warn_objc_property_no_assignment_attribute);
 2694             Diag(Loc, diag::warn_objc_property_default_assign_on_object);
 2708     Diag(Loc, diag::warn_objc_property_copy_missing_on_block);
 2713       Diag(Loc, diag::warn_objc_property_retain_of_block);
 2717     Diag(Loc, diag::warn_objc_readonly_property_has_setter);
tools/clang/lib/Sema/SemaOpenMP.cpp
  561             SemaRef.Diag(CNew->getBeginLoc(),
  564             SemaRef.Diag(CPrev->getBeginLoc(),
 1273     SemaRef.Diag(ELoc, Diag) << getOpenMPClauseName(CKind);
 1278       SemaRef.Diag(D->getLocation(),
 1639       Diag(Loc, diag::err_omp_wrong_device_function_call) << HostDevTy << 0;
 1640       Diag(Callee->getAttr<OMPDeclareTargetDeclAttr>()->getLocation(),
 1681       Diag(Loc, diag::err_omp_wrong_device_function_call) << NoHostDevTy << 1;
 1682       Diag(Callee->getAttr<OMPDeclareTargetDeclAttr>()->getLocation(),
 2107         Diag(Callee.second, diag::err_omp_wrong_device_function_call)
 2109         Diag(FD->getAttr<OMPDeclareTargetDeclAttr>()->getLocation(),
 2119         Diag(Callee.second, diag::err_omp_wrong_device_function_call)
 2121         Diag(FD->getAttr<OMPDeclareTargetDeclAttr>()->getLocation(),
 2278       Diag(Id.getLoc(), Lookup.empty() ? diag::err_undeclared_var_use
 2284     Diag(Id.getLoc(), diag::err_omp_expected_var_arg) << Id.getName();
 2285     Diag(Lookup.getFoundDecl()->getLocation(), diag::note_declared_at);
 2293     Diag(Id.getLoc(), diag::err_omp_global_var_arg)
 2297     Diag(VD->getLocation(),
 2310     Diag(Id.getLoc(), diag::err_omp_var_scope)
 2314     Diag(VD->getLocation(),
 2325     Diag(Id.getLoc(), diag::err_omp_var_scope)
 2329     Diag(VD->getLocation(),
 2341     Diag(Id.getLoc(), diag::err_omp_var_scope)
 2345     Diag(VD->getLocation(),
 2355     Diag(Id.getLoc(), diag::err_omp_var_scope)
 2359     Diag(VD->getLocation(),
 2370     Diag(Id.getLoc(), diag::err_omp_var_used)
 2401         SemaRef.Diag(E->getBeginLoc(),
 2404         SemaRef.Diag(VD->getLocation(), diag::note_defined_here)
 2451       Diag(ILoc, diag::err_omp_ref_type_arg)
 2455       Diag(VD->getLocation(),
 2469       Diag(ILoc, diag::err_omp_var_thread_local)
 2473       Diag(VD->getLocation(),
 2567     S.Diag(AllocatorLoc, diag::warn_omp_used_different_allocator)
 2571     S.Diag(PrevAllocatorLoc, diag::note_omp_previous_allocator)
 2638         Diag(Allocator->getExprLoc(),
 2643         Diag(VD->getLocation(),
 2669     Diag(Loc, diag::err_omp_invalid_scope) << "requires";
 2694         Diag(Loc, diag::err_omp_target_before_requires)
 2697           Diag(TargetLoc, diag::note_omp_requires_encountered_target);
 2714     SemaRef.Diag(DVar.RefExpr->getExprLoc(), diag::note_omp_explicit_dsa)
 2757     SemaRef.Diag(ReportLoc, diag::note_omp_predetermined_dsa)
 2761     SemaRef.Diag(DVar.ImplicitDSALoc, diag::note_omp_implicit_dsa)
 2885         SemaRef.Diag(ELoc, diag::err_omp_reduction_in_task);
 2964         SemaRef.Diag(ELoc, diag::err_omp_reduction_in_task);
 3698     Diag(SC->getFirstScheduleModifier() == OMPC_SCHEDULE_MODIFIER_nonmonotonic
 3707       Diag(C->getBeginLoc(), diag::err_omp_linear_ordered)
 3715     Diag(OC->getBeginLoc(), diag::err_omp_ordered_simd)
 3763   SemaRef.Diag(StartLoc, diag::err_omp_wrong_cancel_region)
 3795       SemaRef.Diag(StartLoc, (CurrentRegion != OMPD_simd)
 3803       SemaRef.Diag(StartLoc, diag::err_omp_prohibited_region_atomic);
 3813         SemaRef.Diag(StartLoc, diag::err_omp_orphaned_section_directive)
 3880         SemaRef.Diag(StartLoc,
 3884           SemaRef.Diag(PreviousCriticalLoc,
 3976         SemaRef.Diag(StartLoc, diag::err_omp_orphaned_device_directive)
 3979         SemaRef.Diag(StartLoc, diag::err_omp_prohibited_region)
 4003         S.Diag(C->getBeginLoc(), diag::err_omp_more_one_clause)
 4026         S.Diag(IC->getNameModifierLoc(),
 4037       S.Diag(FoundNameModifiers[OMPD_unknown]->getBeginLoc(),
 4059       S.Diag(FoundNameModifiers[OMPD_unknown]->getCondition()->getBeginLoc(),
 4064       S.Diag(Loc, diag::note_omp_previous_named_if_clause);
 4116       S.Diag(ELoc, diag::err_omp_expected_base_var_name) << IsArrayExpr
 4119       S.Diag(ELoc,
 4208       S.Diag(AC->getAllocator()->getExprLoc(),
 4220         S.Diag(E->getExprLoc(),
 4678     Diag(P.second->getExprLoc(), diag::err_omp_no_dsa_for_variable)
 4680     Diag(DSAStack->getDefaultDSALocation(), diag::note_omp_default_dsa_none);
 4722     Diag(SR.getBegin(), diag::err_omp_single_decl_in_declare_simd_variant)
 4732     Diag(ADecl->getLocation(), diag::err_omp_function_expected) << SimdId;
 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)
 4804             Diag(PVD->getLocation(), diag::note_previous_decl) << PVD;
 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(),
 4888         Diag(E->getExprLoc(), diag::err_omp_wrong_dsa)
 4892         Diag(UniformedLinearThis->getExprLoc(), diag::note_omp_explicit_dsa)
 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)
 4966     Diag(SR.getBegin(), diag::err_omp_single_decl_in_declare_simd_variant)
 4977     Diag(ADecl->getLocation(), diag::err_omp_function_expected)
 4989     Diag(FD->getLocation(), diag::err_omp_declare_variant_incompat_attributes)
 4996     Diag(SR.getBegin(), diag::warn_omp_declare_variant_after_used)
 5003     Diag(SR.getBegin(), diag::warn_omp_declare_variant_after_emitted)
 5008     Diag(SR.getBegin(), diag::err_omp_function_expected) << VariantId;
 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(),
 5102     Diag(SR.getBegin(), diag::note_omp_marked_declare_variant_here) << SR;
 5117       Diag(FD->getLocation(), diag::err_omp_declare_variant_doesnt_support)
 5123       Diag(FD->getLocation(), diag::err_omp_declare_variant_doesnt_support)
 5129       Diag(FD->getLocation(), diag::err_omp_declare_variant_doesnt_support)
 5136     Diag(FD->getLocation(), diag::err_omp_declare_variant_doesnt_support)
 5142     Diag(FD->getLocation(), diag::err_omp_declare_variant_doesnt_support)
 5148     Diag(FD->getLocation(), diag::err_omp_declare_variant_doesnt_support)
 5515       SemaRef.Diag(NewStep->getExprLoc(),
 5518       SemaRef.Diag(ConditionLoc,
 5550       SemaRef.Diag(E->getExprLoc(), diag::err_omp_stmt_depends_on_loop_counter)
 5563       SemaRef.Diag(E->getExprLoc(),
 5566       SemaRef.Diag(VD->getLocation(), diag::note_previous_decl) << VD;
 5578       SemaRef.Diag(E->getExprLoc(),
 5651       SemaRef.Diag(DefaultLoc, diag::err_omp_loop_not_canonical_init);
 5685             SemaRef.Diag(S->getBeginLoc(),
 5719     SemaRef.Diag(S->getBeginLoc(), diag::err_omp_loop_not_canonical_init)
 5756     SemaRef.Diag(DefaultLoc, diag::err_omp_loop_not_canonical_cond)
 5812   SemaRef.Diag(CondLoc, diag::err_omp_loop_not_canonical_cond)
 5843   SemaRef.Diag(RHS->getBeginLoc(), diag::err_omp_loop_not_canonical_incr)
 5863     SemaRef.Diag(DefaultLoc, diag::err_omp_loop_not_canonical_incr) << LCDecl;
 5921   SemaRef.Diag(S->getBeginLoc(), diag::err_omp_loop_not_canonical_incr)
 6127       SemaRef.Diag(Upper->getBeginLoc(), diag::err_omp_loop_diff_cxx)
 6185         SemaRef.Diag(DefaultLoc, diag::warn_omp_loop_64_bit_var)
 6439       SemaRef.Diag(Upper->getBeginLoc(), diag::err_omp_loop_diff_cxx)
 6524           Diag(Init->getBeginLoc(), diag::err_omp_loop_var_dsa)
 6564     SemaRef.Diag(S->getBeginLoc(), diag::err_omp_not_for)
 6570         SemaRef.Diag(DSA.getConstructLoc(),
 6575         SemaRef.Diag(CollapseLoopCountExpr->getExprLoc(),
 6579         SemaRef.Diag(OrderedLoopCountExpr->getExprLoc(),
 6609       SemaRef.Diag(Init->getBeginLoc(), diag::err_omp_loop_variable_type)
 6923         SemaRef.Diag(OrderedLoopCountExpr->getExprLoc(),
 6926         SemaRef.Diag(CollapseLoopCountExpr->getExprLoc(),
 7635       S.Diag(SimdlenLength->getExprLoc(),
 7778           Diag(SectionStmt->getBeginLoc(),
 7786     Diag(AStmt->getBeginLoc(), diag::err_omp_sections_not_compound_stmt);
 7832       Diag(Copyprivate->getBeginLoc(),
 7834       Diag(Nowait->getBeginLoc(), diag::note_omp_nowait_clause_here);
 7870         Diag(C->getBeginLoc(), diag::err_omp_hint_clause_no_name);
 7888       Diag(StartLoc, diag::err_omp_critical_with_hint);
 7890         Diag(HintLoc, diag::note_omp_critical_hint_here)
 7893         Diag(StartLoc, diag::note_omp_critical_no_hint) << 0;
 7895         Diag(C->getBeginLoc(), diag::note_omp_critical_hint_here)
 7900         Diag(Pair.first->getBeginLoc(), diag::note_omp_critical_no_hint) << 1;
 8021           Diag(SectionStmt->getBeginLoc(),
 8029     Diag(AStmt->getBeginLoc(),
 8113           Diag(C->getBeginLoc(), diag::err_omp_more_one_clause)
 8121           Diag(C->getBeginLoc(), diag::err_omp_depend_sink_source_not_allowed)
 8127           Diag(C->getBeginLoc(), diag::err_omp_depend_sink_source_not_allowed)
 8144     Diag(StartLoc, diag::err_omp_prohibited_region_simd);
 8147     Diag(DependFound->getBeginLoc(), diag::err_omp_depend_clause_thread_simd)
 8151     Diag(DependFound->getBeginLoc(),
 8157       Diag(ErrLoc, diag::err_omp_ordered_directive_with_param)
 8159       Diag(Param->getBeginLoc(), diag::note_omp_ordered_param);
 8316     SemaRef.Diag(ErrorLoc, DiagId) << ErrorRange;
 8317     SemaRef.Diag(NoteLoc, NoteId) << ErrorFound << NoteRange;
 8389     SemaRef.Diag(ErrorLoc, DiagId) << ErrorRange;
 8390     SemaRef.Diag(NoteLoc, NoteId) << ErrorFound << NoteRange;
 8437         Diag(C->getBeginLoc(), diag::err_omp_atomic_several_clauses)
 8439         Diag(AtomicKindLoc, diag::note_omp_atomic_previous_clause)
 8535       Diag(ErrorLoc, diag::err_omp_atomic_read_not_expression_statement)
 8537       Diag(NoteLoc, diag::note_omp_atomic_read_write) << ErrorFound
 8597       Diag(ErrorLoc, diag::err_omp_atomic_write_not_expression_statement)
 8599       Diag(NoteLoc, diag::note_omp_atomic_read_write) << ErrorFound
 8671         Diag(ErrorLoc, diag::err_omp_atomic_capture_not_expression_statement)
 8673         Diag(NoteLoc, diag::note_omp_atomic_capture) << ErrorFound << NoteRange;
 8833         Diag(ErrorLoc, diag::err_omp_atomic_capture_not_compound_statement)
 8835         Diag(NoteLoc, diag::note_omp_atomic_capture) << ErrorFound << NoteRange;
 8901       Diag(StartLoc, diag::err_omp_target_contains_not_only_teams);
 8902       Diag(DSAStack->getInnerTeamsRegionLoc(),
 8904       Diag(S->getBeginLoc(), diag::note_omp_nested_statement_here)
 9025     Diag(StartLoc, diag::err_omp_no_clause_for_directive)
 9065     Diag(StartLoc, diag::err_omp_no_clause_for_directive)
 9102     Diag(StartLoc, diag::err_omp_no_clause_for_directive)
 9137     Diag(StartLoc, diag::err_omp_at_least_one_motion_clause_required);
 9170     Diag(StartLoc, diag::err_omp_parent_cancel_region_nowait) << 0;
 9174     Diag(StartLoc, diag::err_omp_parent_cancel_region_ordered) << 0;
 9186     Diag(StartLoc, diag::err_omp_parent_cancel_region_nowait) << 1;
 9190     Diag(StartLoc, diag::err_omp_parent_cancel_region_ordered) << 1;
 9208         S.Diag(C->getBeginLoc(),
 9212         S.Diag(PrevClause->getBeginLoc(),
 9241     S.Diag(ReductionClause->getBeginLoc(), diag::err_omp_reduction_with_nogroup)
11047       return S.Diag(Loc, diag::err_omp_not_integral) << T;
11051       return S.Diag(Loc, diag::err_omp_incomplete_type) << T;
11056       return S.Diag(Loc, diag::err_omp_explicit_conversion) << T << ConvTy;
11060       return S.Diag(Conv->getLocation(), diag::note_omp_conversion_here)
11065       return S.Diag(Loc, diag::err_omp_ambiguous_conversion) << T;
11069       return S.Diag(Conv->getLocation(), diag::note_omp_conversion_here)
11101       SemaRef.Diag(Loc, diag::err_omp_negative_expression_in_clause)
11161     Diag(E->getExprLoc(), diag::err_omp_negative_expression_in_clause)
11167     Diag(E->getExprLoc(), diag::warn_omp_alignment_not_power_of_two)
11240     S.Diag(Loc, diag::err_implied_omp_allocator_handle_t_not_found);
11423     Diag(KindKwLoc, diag::err_omp_unexpected_clause_value)
11450     Diag(KindKwLoc, diag::err_omp_unexpected_clause_value)
11464     Diag(KindKwLoc, diag::err_omp_unexpected_clause_value)
11584     S.Diag(M1Loc, diag::err_omp_unexpected_clause_value)
11611     Diag(M2Loc, diag::err_omp_unexpected_schedule_modifier)
11627     Diag(KindLoc, diag::err_omp_unexpected_clause_value)
11637     Diag(M1 == OMPC_SCHEDULE_MODIFIER_nonmonotonic ? M1Loc : M2Loc,
11661           Diag(ChunkSizeLoc, diag::err_omp_negative_expression_in_clause)
12062       Diag(ELoc, diag::err_omp_wrong_dsa) << getOpenMPClauseName(DVar.CKind)
12072       Diag(ELoc, diag::err_omp_variably_modified_type_not_supported)
12078       Diag(D->getLocation(),
12102         Diag(ELoc, diag::err_omp_variable_in_given_clause_and_dsa)
12236         Diag(ELoc, diag::err_omp_wrong_dsa)
12256         Diag(ELoc, diag::err_omp_wrong_dsa)
12287           Diag(ELoc, diag::err_omp_required_access)
12318           Diag(ELoc, diag::err_omp_parallel_reduction_in_task_firstprivate)
12345           Diag(ELoc, diag::err_omp_variable_in_given_clause_and_dsa)
12358       Diag(ELoc, diag::err_omp_variably_modified_type_not_supported)
12364       Diag(D->getLocation(),
12414         Diag(RefExpr->getExprLoc(),
12512       Diag(ELoc, diag::err_omp_wrong_dsa)
12531         Diag(ELoc, diag::err_omp_required_access)
12640       Diag(ELoc, diag::err_omp_wrong_dsa) << getOpenMPClauseName(DVar.CKind)
12923     SemaRef.Diag(Loc, diag::err_omp_not_resolved_reduction_identifier) << Range;
13227             S.Diag(ELoc, diag::err_omp_reduction_ref_type_arg)
13229             S.Diag(VDDef->getLocation(), diag::note_defined_here) << VDDef;
13248         S.Diag(ELoc, diag::err_omp_once_referenced)
13251           S.Diag(DVar.RefExpr->getExprLoc(), diag::note_omp_referenced);
13255         S.Diag(ELoc, diag::err_omp_wrong_dsa)
13271           S.Diag(ELoc, diag::err_omp_required_access)
13296       S.Diag(ReductionId.getBeginLoc(),
13314         S.Diag(ELoc, diag::err_omp_clause_not_arithmetic_type_arg)
13319           S.Diag(D->getLocation(),
13327         S.Diag(ELoc, diag::err_omp_clause_floating_type_arg)
13332           S.Diag(D->getLocation(),
13370           S.Diag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE;
13371           S.Diag(ELoc, diag::note_vla_unsupported);
13518       S.Diag(ELoc, diag::err_omp_reduction_id_not_compatible)
13522       S.Diag(D->getLocation(),
13602         S.Diag(ELoc, diag::err_omp_in_reduction_not_task_reduction);
13617           S.Diag(ReductionId.getBeginLoc(),
13620           S.Diag(ParentSR.getBegin(),
13657             S.Diag(RefExpr->getExprLoc(),
13747     Diag(LinLoc, diag::err_omp_wrong_linear_modifier) << LangOpts.CPlusPlus;
13762     Diag(ELoc, diag::err_omp_wrong_linear_modifier_non_reference)
13780     Diag(ELoc, diag::err_omp_linear_expected_int_or_ptr) << Type;
13785       Diag(D->getLocation(),
13830       Diag(ELoc, diag::err_omp_wrong_dsa) << getOpenMPClauseName(DVar.CKind)
13912       Diag(StepLoc, diag::warn_omp_linear_step_zero) << Vars[0]
13965       SemaRef.Diag(ELoc,
14059       Diag(ELoc, diag::err_omp_aligned_expected_array_or_ptr)
14064       Diag(D->getLocation(),
14073       Diag(ELoc, diag::err_omp_aligned_twice) << 0 << ERange;
14074       Diag(PrevRef->getExprLoc(), diag::note_omp_explicit_dsa)
14132       Diag(ELoc, diag::err_omp_expected_var_name_member_expr)
14153       Diag(ELoc, diag::err_omp_required_access)
14236         Diag(ELoc, diag::err_omp_wrong_dsa)
14249           Diag(ELoc, diag::err_omp_required_access)
14260       Diag(ELoc, diag::err_omp_variably_modified_type_not_supported)
14266       Diag(D->getLocation(),
14330     Diag(DepLoc, diag::err_omp_unexpected_clause_value)
14338     Diag(DepLoc, diag::err_omp_unexpected_clause_value)
14368         Diag(ELoc, diag::err_omp_depend_sink_unexpected_expr);
14421         Diag(OOLoc, diag::err_omp_depend_sink_expected_plus_minus);
14436           Diag(ELoc, diag::err_omp_depend_sink_expected_loop_iteration)
14439           Diag(ELoc, diag::err_omp_depend_sink_expected_loop_iteration) << 0;
14449         Diag(ELoc, diag::err_omp_expected_addressable_lvalue_or_array_item)
14461         Diag(ELoc, diag::err_omp_expected_addressable_lvalue_or_array_item)
14473     Diag(EndLoc, diag::err_omp_depend_sink_expected_loop_iteration)
14520     SemaRef.Diag(SL, diag::err_incomplete_type) << QTy << SR;
14525     SemaRef.Diag(SL, diag::warn_omp_non_trivial_type_mapped) << QTy << SR;
14700           SemaRef.Diag(ELoc, diag::err_omp_expected_access_to_data_field)
14716           SemaRef.Diag(ELoc, diag::err_omp_bit_fields_forbidden_in_clause)
14736           SemaRef.Diag(ELoc, diag::err_omp_union_type_not_allowed)
14760           SemaRef.Diag(ELoc, diag::err_omp_expected_base_var_name)
14778             SemaRef.Diag(CurE->getIdx()->getExprLoc(),
14780             SemaRef.Diag(CurE->getIdx()->getExprLoc(),
14805         SemaRef.Diag(ELoc, diag::err_omp_expected_base_var_name)
14827         SemaRef.Diag(
14839             SemaRef.Diag(CurE->getLength()->getExprLoc(),
14841             SemaRef.Diag(CurE->getLength()->getExprLoc(),
14848             SemaRef.Diag(CurE->getLowerBound()->getExprLoc(),
14850             SemaRef.Diag(CurE->getLowerBound()->getExprLoc(),
14862         SemaRef.Diag(
14930             SemaRef.Diag(CI->getAssociatedExpression()->getExprLoc(),
14933             SemaRef.Diag(SI->getAssociatedExpression()->getExprLoc(),
14977               SemaRef.Diag(ELoc, diag::err_omp_map_shared_storage) << ERange;
14980               SemaRef.Diag(ELoc, diag::err_omp_once_referenced_in_target_update)
14983             SemaRef.Diag(RE->getExprLoc(), diag::note_used_here)
15016             SemaRef.Diag(
15020             SemaRef.Diag(RE->getExprLoc(), diag::note_used_here)
15029             SemaRef.Diag(DerivedLoc, diag::err_omp_same_pointer_dereferenced)
15031             SemaRef.Diag(RE->getExprLoc(), diag::note_used_here)
15064             SemaRef.Diag(ELoc, diag::err_omp_map_shared_storage) << ERange;
15067             SemaRef.Diag(ELoc, diag::err_omp_once_referenced_in_target_update)
15070           SemaRef.Diag(RE->getExprLoc(), diag::note_used_here)
15103     SemaRef.Diag(ELoc,
15106     SemaRef.Diag(EnclosingExpr->getExprLoc(), diag::note_used_here)
15179     SemaRef.Diag(Loc, diag::err_omp_mapper_wrong_type);
15219     SemaRef.Diag(Loc, diag::err_omp_invalid_mapper)
15324       SemaRef.Diag(ELoc,
15383       SemaRef.Diag(ELoc, diag::err_omp_threadprivate_in_clause)
15434         SemaRef.Diag(StartLoc, diag::err_omp_invalid_map_type_for_directive)
15448         SemaRef.Diag(StartLoc, diag::err_omp_invalid_map_type_for_directive)
15468           SemaRef.Diag(ELoc, diag::err_omp_variable_in_given_clause_and_dsa)
15522       Diag(MapTypeModifiersLoc[I], diag::err_omp_duplicate_map_type_modifier);
15559     Diag(TyLoc, diag::err_omp_reduction_wrong_type) << 0;
15564     Diag(TyLoc, diag::err_omp_reduction_wrong_type) << 1;
15568     Diag(TyLoc, diag::err_omp_reduction_wrong_type) << 2;
15572     Diag(TyLoc, diag::err_omp_reduction_wrong_type) << 3;
15639       Diag(TyData.second, diag::err_omp_declare_reduction_redefinition)
15641       Diag(I->second, diag::note_previous_definition);
15827     Diag(TyLoc, diag::err_omp_mapper_wrong_type);
15890     Diag(StartLoc, diag::err_omp_declare_mapper_redefinition)
15892     Diag(I->second, diag::note_previous_definition);
16078     Diag(KindLoc, diag::err_omp_unexpected_clause_value)
16102           Diag(ChunkSizeLoc, diag::err_omp_negative_expression_in_clause)
16142     Diag(Loc, diag::err_omp_unexpected_clause_value)
16161     Diag(Loc, diag::err_omp_region_not_file_context);
16196     Diag(Id.getLoc(), diag::err_undeclared_var_use) << Id.getName();
16203     Diag(Id.getLoc(), diag::err_omp_invalid_target_decl) << Id.getName();
16207     Diag(Id.getLoc(), diag::err_omp_declare_target_multiple) << Id.getName();
16222     Diag(Loc, diag::warn_omp_declare_target_after_first_use);
16227     Diag(Loc, diag::err_omp_device_type_mismatch)
16242     Diag(Loc, diag::err_omp_declare_target_to_and_link) << ND;
16265       SemaRef.Diag(VD->getLocation(),
16267       SemaRef.Diag(SL, diag::note_var_explicitly_captured_here)
16274   SemaRef.Diag(VD->getLocation(), diag::warn_omp_not_in_target_context);
16275   SemaRef.Diag(SL, diag::note_used_here) << SR;
16300       Diag(SL, diag::err_omp_threadprivate_in_target);
16311       Diag(IdLoc, diag::err_omp_function_in_link_clause);
16312       Diag(FD->getLocation(), diag::note_defined_here) << FD;
16413       Diag(ELoc, diag::err_omp_usedeviceptr_not_a_pointer)
16490       Diag(ELoc, diag::err_omp_argument_type_isdeviceptr)
16499       Diag(ELoc, diag::err_omp_variable_in_given_clause_and_dsa)
16516       Diag(ELoc, diag::err_omp_map_shared_storage) << RefExpr->getSourceRange();
16517       Diag(ConflictExpr->getExprLoc(), diag::note_used_here)
tools/clang/lib/Sema/SemaOverload.cpp
 1193         Diag(NewMethod->getLocation(), diag::err_ref_qualifier_overload)
 1195         Diag(OldMethod->getLocation(), diag::note_previous_declaration);
 2935       Diag(From->getExprLoc(), diag::warn_non_literal_null_pointer)
 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)
 3555     Diag(From->getBeginLoc(), diag::err_typecheck_ambiguous_condition)
 3561       Diag(From->getBeginLoc(), diag::err_typecheck_nonviable_condition)
 5331         Diag(From->getBeginLoc(), diag::err_member_function_call_bad_cvr)
 5334         Diag(Method->getLocation(), diag::note_previous_decl)
 5345       Diag(From->getBeginLoc(), diag::err_member_function_call_bad_ref)
 5348       Diag(Method->getLocation(), diag::note_previous_decl)
 5358     return Diag(From->getBeginLoc(), diag::err_member_function_call_bad_type)
 5406     return Diag(From->getBeginLoc(), diag::err_typecheck_bool_condition)
 5520       return S.Diag(From->getBeginLoc(),
 5531     return S.Diag(From->getBeginLoc(),
 5537     return S.Diag(From->getBeginLoc(),
 5570     S.Diag(From->getBeginLoc(), diag::ext_cce_narrowing)
 5576     S.Diag(From->getBeginLoc(), diag::ext_cce_narrowing)
 5611     S.Diag(Notes[0].first, diag::err_expr_not_cce) << CCE;
 5613     S.Diag(From->getBeginLoc(), diag::err_expr_not_cce)
 6515     S.Diag(Loc, diag::err_diagnose_if_succeeded) << DIA->getMessage();
 6516     S.Diag(DIA->getLocation(), diag::note_from_diagnose_if)
 6523       S.Diag(Loc, diag::warn_diagnose_if_succeeded) << DIA->getMessage();
 6524       S.Diag(DIA->getLocation(), diag::note_from_diagnose_if)
 9569   Diag(Loc, diag::ext_equivalent_internal_linkage_decl_in_modules) << D;
 9572   Diag(D->getLocation(), diag::note_equivalent_internal_linkage_decl)
 9577     Diag(E->getLocation(), diag::note_equivalent_internal_linkage_decl)
 9768     S.Diag(FoundDecl->getLocation(),
 9802         S.Diag(FD->getBeginLoc(),
 9805         S.Diag(Loc, diag::err_addrof_function_disabled_by_enable_if_attr) << FD;
 9820       S.Diag(FD->getLocation(),
 9824       S.Diag(Loc, diag::err_address_of_function_with_pass_object_size_params)
 9912     S.Diag(SourceLocation(), diag::note_ovl_too_many_candidates) << int(E - I);
 9949     S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_overload)
 9978       S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_addrspace)
 9987       S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_ownership)
 9997       S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_gc)
10007       S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_unaligned)
10019       S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_cvr_this)
10024       S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_cvr)
10036     S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_list_argument)
10052     S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_conv_incomplete)
10093       S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_lvalue)
10103     S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_base_to_derived_conv)
10116         S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_arc_conv)
10211     S.Diag(Fn->getLocation(), diag::note_ovl_candidate_arity_one)
10215     S.Diag(Fn->getLocation(), diag::note_ovl_candidate_arity)
10252     S.Diag(Templated->getLocation(),
10261     S.Diag(Templated->getLocation(),
10289     S.Diag(Templated->getLocation(), diag::note_ovl_candidate_underqualified)
10309         S.Diag(Templated->getLocation(),
10322     S.Diag(Templated->getLocation(),
10333       S.Diag(Templated->getLocation(),
10345       S.Diag(Templated->getLocation(),
10358     S.Diag(Templated->getLocation(),
10379       S.Diag(PDiag->first, diag::note_ovl_candidate_disabled_by_enable_if)
10387       S.Diag(Templated->getLocation(),
10404     S.Diag(Templated->getLocation(),
10422     S.Diag(Templated->getLocation(), diag::note_ovl_candidate_deduced_mismatch)
10448           S.Diag(Templated->getLocation(),
10464     S.Diag(Templated->getLocation(),
10472     S.Diag(Templated->getLocation(), diag::note_ovl_candidate_bad_deduction);
10476     S.Diag(Templated->getLocation(),
10508   S.Diag(Callee->getLocation(), diag::note_ovl_candidate_bad_target)
10558   S.Diag(Callee->getLocation(),
10583   S.Diag(Cand->Function->getLocation(),
10586   S.Diag(ES.getExpr()->getBeginLoc(),
10593   S.Diag(Callee->getLocation(),
10627       S.Diag(Fn->getLocation(), diag::note_ovl_candidate_deleted)
10649     S.Diag(Fn->getLocation(), diag::note_ovl_candidate_illegal_constructor)
10658     S.Diag(Fn->getLocation(),
10698     S.Diag(Fn->getLocation(),
10745   S.Diag(Cand->Surrogate->getLocation(), diag::note_ovl_surrogate_cand)
10759     S.Diag(OpLoc, diag::note_ovl_builtin_candidate) << TypeStr;
10764     S.Diag(OpLoc, diag::note_ovl_builtin_candidate) << TypeStr;
11142     S.Diag(OpLoc, diag::note_ovl_too_many_candidates) << int(E - I);
11246     S.Diag(Loc, diag::note_ovl_too_many_candidates) << int(E - I);
11611     S.Diag(OvlExpr->getBeginLoc(), diag::err_addr_ovl_no_viable)
11642       S.Diag(OvlExpr->getNameLoc(), diag::err_addr_ovl_no_qualifier)
11651     S.Diag(OvlExpr->getBeginLoc(),
11657     S.Diag(OvlExpr->getBeginLoc(), diag::err_addr_ovl_not_func_ptrref)
11663     S.Diag(OvlExpr->getBeginLoc(), diag::err_addr_ovl_ambiguous)
11875         Diag(ovl->getExprLoc(), diag::err_addr_ovl_ambiguous)
11928       Diag(ovl.Expression->getExprLoc(),
11958       Diag(OpRangeForComplaining.getBegin(), DiagIDForComplaining)
12160       SemaRef.Diag(R.getNameLoc(), diag::err_not_found_by_two_phase_lookup)
12163         SemaRef.Diag(Best->Function->getLocation(),
12167         SemaRef.Diag(Best->Function->getLocation(),
12174         SemaRef.Diag(Best->Function->getLocation(),
12873           Diag(OpLoc, diag::err_ovl_rewrite_equalequal_not_bool)
12876           Diag(FnDecl->getLocation(), diag::note_declared_at);
12894                   Diag(OpLoc, diag::ext_ovl_ambiguous_oper_binary_reversed)
12898                   Diag(FnDecl->getLocation(),
13061         Diag(OpLoc,  diag::err_ovl_no_viable_oper)
13065           Diag(OpLoc, diag::note_assign_lhs_incomplete)
13102         Diag(OpLoc, diag::err_ovl_deleted_special_oper)
13341       Diag(LParenLoc, diag::err_pointer_to_member_call_drops_quals)
13540       Diag(MemE->getMemberLoc(),
13543       Diag(Method->getLocation(),
13557       Diag(MemExpr->getBeginLoc(),
13562       Diag(MD->getBeginLoc(), diag::note_previous_decl) << MD->getDeclName();
13564         Diag(MemExpr->getBeginLoc(), diag::note_pure_qualified_call_kext)
13922       Diag(OpLoc, diag::err_typecheck_member_reference_arrow)
13925         Diag(OpLoc, diag::note_typecheck_member_reference_suggestion)
13929       Diag(OpLoc, diag::err_ovl_no_viable_oper)
tools/clang/lib/Sema/SemaPseudoObject.cpp
  677             S.Diag(RefExpr->getExprLoc(), diag::err_property_setter_ambiguous_use)
  679             S.Diag(prop->getLocation(), diag::note_property_declare);
  680             S.Diag(prop1->getLocation(), diag::note_property_declare);
  700         S.Diag(RefExpr->getLocation(),
  702         S.Diag(prop->getLocation(), diag::note_property_declare);
  832     S.Diag(RefExpr->getLocation(), diag::err_getter_not_found)
  908     S.Diag(opcLoc, diag::err_nosetter_property_assignment)
  919     S.Diag(opcLoc, diag::err_nogetter_property_compound_assignment)
  952     S.Diag(opcLoc, diag::err_nosetter_property_incdec)
  965     S.Diag(opcLoc, diag::err_nogetter_property_incdec)
 1072       Diag(FromE->getExprLoc(), diag::err_objc_subscript_pointer)
 1075       Diag(FromE->getExprLoc(), diag::err_objc_subscript_type_conversion)
 1111     Diag(FromE->getExprLoc(), diag::err_objc_subscript_type_conversion)
 1115   Diag(FromE->getExprLoc(), diag::err_objc_multiple_subscript_type_conversion)
 1118     Diag(ConversionDecls[i]->getLocation(),
 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(),
 1234       S.Diag(AtIndexGetter->parameters()[0]->getLocation(),
 1240       S.Diag(RefExpr->getKeyExpr()->getExprLoc(),
 1242       S.Diag(AtIndexGetter->getLocation(), diag::note_method_declared_at) <<
 1273     S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type)
 1332       S.Diag(BaseExpr->getExprLoc(),
 1347       S.Diag(RefExpr->getKeyExpr()->getExprLoc(),
 1349       S.Diag(AtIndexSetter->parameters()[1]->getLocation(),
 1355       S.Diag(RefExpr->getBaseExpr()->getExprLoc(),
 1357       S.Diag(AtIndexSetter->parameters()[0]->getLocation(),
 1367           S.Diag(RefExpr->getKeyExpr()->getExprLoc(),
 1370           S.Diag(RefExpr->getBaseExpr()->getExprLoc(),
 1372         S.Diag(AtIndexSetter->parameters()[i]->getLocation(),
 1473     S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property)
 1488     S.Diag(RefExpr->getMemberLoc(),
 1502     S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property)
 1517     S.Diag(RefExpr->getMemberLoc(),
 1574     Diag(opcLoc, diag::err_illegal_container_subscripting_op);
tools/clang/lib/Sema/SemaStmt.cpp
   97     Diag(decl->getLocation(), diag::err_non_variable_decl_in_for);
  182   S.Diag(Loc, diag::warn_unused_comparison)
  189       S.Diag(Loc, diag::note_inequality_comparison_to_or_assign)
  192       S.Diag(Loc, diag::note_equality_comparison_to_assign)
  208       return S.Diag(Loc, diag::warn_unused_constructor) << A << R1 << R2;
  209     return S.Diag(Loc, diag::warn_unused_result) << A << R1 << R2;
  213     return S.Diag(Loc, diag::warn_unused_constructor_msg) << A << Msg << R1
  215   return S.Diag(Loc, diag::warn_unused_result_msg) << A << Msg << R1 << R2;
  298         Diag(Loc, diag::warn_unused_call) << R1 << R2 << "pure";
  302         Diag(Loc, diag::warn_unused_call) << R1 << R2 << "const";
  326       Diag(Loc, diag::err_arc_unused_init_message) << R1;
  362       Diag(Loc, diag::warn_unused_voidptr)
  369     Diag(Loc, diag::warn_unused_volatile) << R1 << R2;
  407       Diag(D->getLocation(), diag::ext_mixed_decls_code);
  483     Diag(CaseLoc, diag::err_case_not_in_switch);
  507     Diag(DefaultLoc, diag::err_default_not_in_switch);
  521     Diag(IdentLoc, diag::err_redefinition_of_label) << TheDecl->getDeclName();
  522     Diag(TheDecl->getLocation(), diag::note_previous_definition);
  673       return S.Diag(Loc, diag::err_typecheck_statement_requires_integer) << T;
  678       return S.Diag(Loc, diag::err_switch_incomplete_class_type)
  684       return S.Diag(Loc, diag::err_switch_explicit_conversion) << T << ConvTy;
  689       return S.Diag(Conv->getLocation(), diag::note_switch_conversion)
  695       return S.Diag(Loc, diag::err_switch_multiple_conversions) << T;
  700       return S.Diag(Conv->getLocation(), diag::note_switch_conversion)
  742       Diag(SwitchLoc, diag::warn_bool_switch_condition)
  779       S.Diag(Loc, diag::warn_case_value_overflow) << Val.toString(10)
  841   S.Diag(Case->getExprLoc(), diag::warn_comparison_of_mixed_enum_types_switch)
  910         Diag(DS->getDefaultLoc(), diag::err_multiple_default_labels_defined);
  911         Diag(TheDefaultStmt->getDefaultLoc(), diag::note_duplicate_case_prev);
 1003             Diag(CaseVals[i].second->getLHS()->getBeginLoc(),
 1007             Diag(CaseVals[i].second->getLHS()->getBeginLoc(),
 1013           Diag(CaseVals[i - 1].second->getLHS()->getBeginLoc(),
 1050           Diag(CR->getLHS()->getBeginLoc(), diag::warn_case_empty_range)
 1104           Diag(CR->getLHS()->getBeginLoc(), diag::err_duplicate_case)
 1106           Diag(OverlapStmt->getLHS()->getBeginLoc(),
 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)
 1228         Diag(TheDefaultStmt->getDefaultLoc(), diag::warn_unreachable_default);
 1232         DiagnosticBuilder DB = Diag(CondExpr->getExprLoc(),
 1283             Diag(SrcExpr->getExprLoc(), diag::warn_not_in_enum_assignment)
 1308             Diag(SrcExpr->getExprLoc(), diag::warn_not_in_enum_assignment)
 1736     S.Diag(LastDRE->getLocation(), diag::warn_redundant_loop_iteration)
 1738     S.Diag(LoopDRE->getLocation(), diag::note_loop_iteration_here)
 1752       Diag(BCFinder.GetBreakLoc(), diag::warn_break_binds_to_switch);
 1754       Diag(BCFinder.GetBreakLoc(), diag::warn_loop_ctrl_binds_to_inner)
 1758     Diag(BCFinder.GetContinueLoc(), diag::warn_loop_ctrl_binds_to_inner)
 1780           Diag(DI->getLocation(), diag::err_non_local_variable_decl_in_for);
 1850     return Diag(forLoc, diag::err_collection_expr_type)
 1890       Diag(forLoc, diag::warn_collection_expr_type)
 1914         return StmtError(Diag((*DS->decl_begin())->getLocation(),
 1926         return StmtError(Diag(D->getLocation(),
 1947           Diag(Loc, diag::warn_auto_var_is_id)
 1956             Diag(First->getBeginLoc(), diag::err_selector_element_not_lvalue)
 1961         Diag(ForLoc, diag::err_selector_element_const_type)
 1967         return StmtError(Diag(ForLoc, diag::err_selector_element_type)
 2002     SemaRef.Diag(Loc, DiagID) << Init->getType();
 2052   SemaRef.Diag(Loc, diag::note_for_range_begin_end)
 2104       return Diag(InitStmt->getBeginLoc(), diag::err_objc_for_range_init_stmt)
 2113     Diag(DS->getBeginLoc(), diag::err_type_defined_in_for_range);
 2192         SemaRef.Diag(BeginRange->getBeginLoc(), diag::note_in_for_range)
 2221         SemaRef.Diag(EndRange->getBeginLoc(), diag::note_in_for_range)
 2276             SemaRef.Diag(D->getLocation(),
 2332   SemaRef.Diag(RangeLoc, diag::err_for_range_dereference)
 2546               Diag(Range->getBeginLoc(), diag::err_range_on_array_parameter)
 2548               Diag(PVD->getLocation(), diag::note_declared_at);
 2587       Diag(RangeLoc, getLangOpts().CPlusPlus17
 2620       Diag(RangeLoc, diag::note_for_range_invalid_iterator)
 2643       Diag(RangeLoc, diag::note_for_range_invalid_iterator)
 2657       Diag(RangeLoc, diag::note_for_range_invalid_iterator)
 2758     SemaRef.Diag(VD->getLocation(), diag::warn_for_range_const_reference_copy)
 2764     SemaRef.Diag(VD->getBeginLoc(), diag::note_use_type_or_non_reference)
 2769     SemaRef.Diag(VD->getLocation(), diag::warn_for_range_variable_always_copy)
 2773     SemaRef.Diag(VD->getBeginLoc(), diag::note_use_non_reference_type)
 2807   SemaRef.Diag(VD->getLocation(), diag::warn_for_range_copy)
 2809   SemaRef.Diag(VD->getBeginLoc(), diag::note_use_reference_type)
 2915     S.Diag(Loc, diag::warn_jump_out_of_seh_finally);
 2924     return StmtError(Diag(ContinueLoc, diag::err_continue_not_in_loop));
 2936     return StmtError(Diag(BreakLoc, diag::err_break_not_in_loop_or_switch));
 2939     return StmtError(Diag(BreakLoc, diag::err_omp_loop_cannot_use_stmt)
 3173         Diag(Value->getExprLoc(), diag::warn_return_std_move_in_cxx11)
 3176         Diag(Value->getExprLoc(), diag::note_add_std_move_in_cxx11)
 3206             Diag(Value->getExprLoc(), diag::warn_return_std_move)
 3209             Diag(Value->getExprLoc(), diag::note_add_std_move)
 3299         Diag(ReturnLoc, diag::err_lambda_return_init_list)
 3315       Diag(ReturnLoc, diag::err_noreturn_block_has_return_expr);
 3319     Diag(ReturnLoc, diag::err_return_in_captured_stmt) << CurRegion->getRegionName();
 3326       Diag(ReturnLoc, diag::err_noreturn_lambda_has_return_expr);
 3345         Diag(ReturnLoc, diag::ext_return_has_void_expr) << "literal" << 2;
 3347         Diag(ReturnLoc, diag::err_return_block_has_expr);
 3352     return StmtError(Diag(ReturnLoc, diag::err_block_return_missing_expr));
 3459     Diag(RetExpr->getExprLoc(),
 3481       Diag(RetExpr->getExprLoc(), diag::err_auto_fn_deduction_failure)
 3498       Diag(ReturnLoc, diag::err_auto_fn_return_void_but_not_auto)
 3511       Diag(FD->getLocation(), diag::err_kern_type_not_void_return)
 3535         Diag(ReturnLoc, diag::err_typecheck_missing_return_type_incompatible)
 3539         Diag(ReturnLoc, diag::err_auto_fn_different_deductions)
 3596       Diag(ReturnLoc, diag::warn_noreturn_function_has_return_expr)
 3600         Diag(ReturnLoc, diag::warn_main_returns_bool_literal)
 3665         Diag(ReturnLoc, diag::err_return_init_list)
 3694           Diag(ReturnLoc, D)
 3711           Diag(ReturnLoc, D)
 3745       Diag(ReturnLoc, DiagID)
 3748       Diag(ReturnLoc, DiagID) << getCurMethodDecl()->getDeclName() << 1/*meth*/;
 3839     Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try";
 3864         return StmtError(Diag(AtLoc, diag::err_objc_throw_expects_object)
 3876     Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@throw";
 3885       return StmtError(Diag(AtLoc, diag::err_rethrow_used_outside_catch));
 3906           return Diag(atLoc, diag::err_objc_synchronized_expects_object)
 3913           return Diag(atLoc, diag::err_objc_synchronized_expects_object)
 3918           return Diag(atLoc, diag::err_objc_synchronized_expects_object)
 4071     Diag(TryLoc, diag::err_omp_simd_region_cannot_use_stmt) << "try";
 4077     Diag(TryLoc, diag::err_mixing_cxx_try_seh_try);
 4078     Diag(FSI->FirstSEHTryLoc, diag::note_conflicting_try_here) << "'__try'";
 4094         return StmtError(Diag(H->getBeginLoc(), diag::err_early_catch_all));
 4123           Diag(H->getExceptionDecl()->getTypeSpecStartLoc(),
 4126           Diag(Problem->getExceptionDecl()->getTypeSpecStartLoc(),
 4138       Diag(H->getExceptionDecl()->getTypeSpecStartLoc(),
 4141       Diag(Problem->getExceptionDecl()->getTypeSpecStartLoc(),
 4162       Diag(TryLoc, diag::err_mixing_cxx_try_seh_try);
 4163       Diag(FSI->FirstCXXTryLoc, diag::note_conflicting_try_here) << "'try'";
 4178     Diag(TryLoc, diag::err_seh_try_outside_functions);
 4182     Diag(TryLoc, diag::err_seh_try_unsupported);
 4194     return StmtError(Diag(FilterExpr->getExprLoc(),
 4222     return StmtError(Diag(Loc, diag::err_ms___leave_not_in___try));
tools/clang/lib/Sema/SemaStmtAsm.cpp
   72     S.Diag(LVal->getBeginLoc(), diag::err_invalid_asm_cast_lvalue)
   75     S.Diag(LVal->getBeginLoc(), diag::warn_invalid_asm_cast_lvalue)
  139       S.Diag(E->getBeginLoc(), diag::err_asm_naked_this_ref);
  140       S.Diag(Func->getAttr<NakedAttr>()->getLocation(), diag::note_attribute);
  145         S.Diag(DRE->getBeginLoc(), diag::err_asm_naked_parm_ref);
  146         S.Diag(Func->getAttr<NakedAttr>()->getLocation(), diag::note_attribute);
  180     S.Diag(E->getBeginLoc(), diag::err_asm_non_addr_value_in_memory_constraint)
  322       return StmtError(Diag(OutputExpr->getBeginLoc(),
  379         return StmtError(Diag(InputExpr->getBeginLoc(),
  393               return StmtError(Diag(InputExpr->getBeginLoc(),
  412             Diag(InputExpr->getBeginLoc(), diag::err_asm_invalid_type_in_input)
  686     Diag((Found + 1)->second->getBeginLoc(),
  689     Diag(Found->second->getBeginLoc(), diag::note_duplicate_asm_operand_name)
tools/clang/lib/Sema/SemaStmtAttr.cpp
   28     S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_wrong_target)
   32       S.Diag(L, diag::note_fallthrough_insert_semi_fixit)
   39     S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_outside_switch);
   47     S.Diag(A.getLoc(), diag::ext_cxx17_attr) << A;
   56     S.Diag(A.getLoc(), diag::err_attribute_too_few_arguments) << A << 1;
   94     S.Diag(St->getBeginLoc(), diag::err_pragma_loop_precedes_nonloop) << Pragma;
  261       S.Diag(OptionLoc, diag::err_pragma_loop_compatibility)
  272       S.Diag(OptionLoc, diag::err_pragma_loop_compatibility)
  291     S.Diag(A.getLoc(), diag::err_attribute_too_many_arguments) << A << 1;
  302       S.Diag(A.getLoc(), diag::err_attribute_argument_type)
  310       S.Diag(A.getRange().getBegin(),
  325     S.Diag(A.getLoc(), A.isDeclspecAttribute()
  341     S.Diag(A.getRange().getBegin(), diag::err_decl_attribute_invalid_on_stmt)
tools/clang/lib/Sema/SemaTemplate.cpp
  317   Diag(IILoc, diag::err_template_kw_missing)
  501       Diag(Found.getNameLoc(), diag::err_template_kw_refers_to_non_template)
  503       Diag(ExampleLookupResult->getUnderlyingDecl()->getLocation(),
  546         Diag(Found.getNameLoc(),
  550         Diag(Found.getRepresentativeDecl()->getLocation(),
  553         Diag(FoundOuter.getFoundDecl()->getLocation(),
  608     Diag(NameInfo.getBeginLoc(), diag::err_template_kw_missing)
  655         Diag(Found->getLocation(),
  661   Diag(NameInfo.getLoc(), diag::err_non_template_in_template_id)
  664     Diag(Found->getLocation(), diag::note_non_template_in_template_id_found);
  767     Diag(PointOfInstantiation,
  776       Diag(PointOfInstantiation,
  783       Diag(PointOfInstantiation,
  790       Diag(PointOfInstantiation,
  795       Diag(PointOfInstantiation, diag::err_template_instantiate_undefined)
  802         Diag(PointOfInstantiation,
  807         Diag(PointOfInstantiation,
  815     Diag(Pattern->getLocation(), Note.getValue());
  840   Diag(Loc, DiagId) << cast<NamedDecl>(PrevDecl)->getDeclName();
  841   Diag(PrevDecl->getLocation(), diag::note_template_param_here);
 1011     Diag(EqualLoc, diag::err_template_param_pack_default_arg);
 1063     Diag(Loc, diag::err_variably_modified_nontype_template_param)
 1107   Diag(Loc, diag::err_template_nontype_parm_bad_type)
 1135       Diag(Loc, diag::err_invalid_decl_specifier_in_nontype_parm)
 1175     Diag(D.getIdentifierLoc(),
 1220     Diag(EqualLoc, diag::err_template_param_pack_default_arg);
 1284     Diag(Param->getLocation(), diag::err_template_template_parm_no_parms)
 1293     Diag(EqualLoc, diag::err_template_param_pack_default_arg);
 1308       Diag(DefaultArg.getLocation(), diag::err_template_arg_not_valid_template)
 1337     Diag(ExportLoc, diag::warn_template_export_unsupported);
 1372     Diag(KWLoc, diag::err_template_unnamed_class);
 1390       Diag(NameLoc, TUK == TUK_Friend
 1508       Diag(KWLoc, diag::err_using_decl_conflict_reverse);
 1509       Diag(Shadow->getTargetDecl()->getLocation(),
 1511       Diag(Shadow->getUsingDecl()->getLocation(), diag::note_using_decl) << 0;
 1536       Diag(KWLoc, diag::err_use_with_wrong_tag)
 1539       Diag(PrevRecordDecl->getLocation(), diag::note_previous_use);
 1558           Diag(NameLoc, diag::err_redefinition) << Name;
 1559           Diag(Def->getLocation(), diag::note_previous_definition);
 1572     Diag(NameLoc, diag::err_redefinition_different_kind) << Name;
 1573     Diag(PrevDecl->getLocation(), diag::note_previous_definition);
 1598       Diag(NameLoc, TUK == TUK_Friend ? diag::err_friend_decl_does_not_match
 2136     S.Diag(ParamLoc, S.getLangOpts().CPlusPlus11 ?
 2147     S.Diag(ParamLoc, diag::err_template_parameter_default_template_member)
 2156     S.Diag(ParamLoc, diag::err_template_parameter_default_friend_template)
 2396       Diag((*NewParam)->getLocation(),
 2405       Diag(NewDefaultLoc, diag::err_template_param_default_arg_redefinition);
 2406       Diag(OldDefaultLoc, diag::note_template_param_prev_default_arg);
 2414       Diag((*NewParam)->getLocation(),
 2416       Diag(PreviousDefaultArgLoc, diag::note_template_param_prev_default_arg);
 2721       Diag(DeclLoc, diag::err_specialize_member_of_template)
 2743     Diag(DeclLoc, diag::err_template_spec_needs_header)
 2835           Diag(ParamLists[ParamIdx]->getTemplateLoc(),
 2888       Diag(DeclLoc, diag::err_template_spec_needs_template_parameters)
 2926     Diag(ParamLists[ParamIdx]->getTemplateLoc(),
 2936       Diag(ExplicitSpecLoc,
 2966     Diag(Template->getLocation(), diag::note_template_declared_here)
 2982       Diag((*I)->getLocation(), diag::note_template_declared_here)
 3003       SemaRef.Diag(TemplateArgs[1].getLocation(),
 3013       SemaRef.Diag(TemplateArgs[2].getLocation(),
 3049       SemaRef.Diag(TemplateArgs[0].getLocation(),
 3220     Diag(TemplateLoc, diag::err_template_id_not_a_type)
 3439     Diag(R.getNameLoc(), diag::err_no_template) << R.getLookupName();
 3462       Diag(SS.getBeginLoc(), diag::err_typename_missing_template)
 3479       Diag(TemplateIILoc,
 3595     Diag(TemplateLoc, diag::err_tag_reference_non_tag)
 3597     Diag(TAT->getLocation(), diag::note_declared_at);
 3613       Diag(TagLoc, diag::err_use_with_wrong_tag)
 3616       Diag(D->getLocation(), diag::note_previous_use);
 3733   S.Diag(Partial->getLocation(),
 3743     S.Diag(Diag.first,
 3748   S.Diag(Template->getLocation(), diag::note_template_decl_here);
 3758         S.Diag(Param->getLocation(), diag::note_non_deducible_parameter)
 3761         S.Diag(Param->getLocation(), diag::note_non_deducible_parameter)
 3790     S.Diag(Partial->getLocation(), diag::ext_partial_specs_not_deducible)
 3826     Diag(TD->getLocation(), diag::err_deduction_guide_template_not_deducible)
 3859       return Diag(D.getIdentifierLoc(), diag::err_var_spec_no_template_but_method)
 3861     return Diag(D.getIdentifierLoc(), diag::err_var_spec_no_template)
 3892       Diag(TemplateNameLoc, diag::err_partial_spec_fully_specialized)
 3903       Diag(TemplateNameLoc, diag::err_partial_spec_args_match_primary_template)
 3989       Diag(TemplateNameLoc, diag::err_specialization_after_instantiation)
 3992       Diag(PrevDecl->getPointOfInstantiation(),
 4169     Diag(PointOfInstantiation, diag::err_partial_spec_ordering_ambiguous)
 4174       Diag(P.Partial->getLocation(), diag::note_partial_spec_match)
 4213   Diag(Loc, diag::err_template_missing_args)
 4216     Diag(TD->getLocation(), diag::note_template_decl_here)
 4352     Diag(NameInfo.getLoc(), diag::err_no_member)
 4358     Diag(NameInfo.getLoc(), diag::err_template_kw_refers_to_class_template)
 4361     Diag(Temp->getLocation(), diag::note_referenced_class_template);
 4384     Diag(TemplateKWLoc,
 4428         Diag(Name.getBeginLoc(), diag::err_no_member)
 4446         Diag(Name.getBeginLoc(),
 4476   Diag(Name.getBeginLoc(), diag::err_template_kw_refers_to_non_template)
 4537         Diag(Loc, getLangOpts().MSVCCompat
 4541         Diag(Param->getLocation(), diag::note_template_param_here);
 4569     Diag(SR.getBegin(), diag::err_template_arg_must_be_type) << SR;
 4570     Diag(Param->getLocation(), diag::note_template_param_here);
 5031       Diag(Arg.getLocation(), diag::err_template_arg_must_be_expr)
 5034       Diag(Param->getLocation(), diag::note_template_param_here);
 5051         Diag(SR.getBegin(), diag::err_template_arg_nontype_ambig) << SR << T;
 5053         Diag(SR.getBegin(), diag::err_template_arg_must_be_expr) << SR;
 5054       Diag(Param->getLocation(), diag::note_template_param_here);
 5121     Diag(Arg.getLocation(), diag::err_template_arg_must_be_template)
 5194   S.Diag(Loc, diag::err_template_arg_list_different_arity)
 5198   S.Diag(TD->getLocation(), diag::note_template_decl_here)
 5251         Diag(TemplateLoc, diag::err_template_arg_list_different_arity)
 5255         Diag(Template->getLocation(), diag::note_template_decl_here)
 5275         Diag(NewArgs[ArgIdx].getLocation(),
 5278         Diag((*Param)->getLocation(), diag::note_template_param_here);
 5448     Diag(TemplateLoc, diag::err_template_arg_list_different_arity)
 5453     Diag(Template->getLocation(), diag::note_template_decl_here)
 5683     S.Diag(SR.getBegin(),
 5692     S.Diag(SR.getBegin(),
 5696     S.Diag(Tag->getLocation(), diag::note_template_unnamed_type_here);
 5735     return Diag(SR.getBegin(), diag::err_variably_modified_template_arg) << Arg;
 5737     return Diag(SR.getBegin(), diag::err_template_arg_overload_type) << SR;
 5804     S.Diag(DiagLoc, diag::err_template_arg_not_address_constant)
 5809     S.Diag(Param->getLocation(), diag::note_template_param_here);
 5833     S.Diag(Arg->getExprLoc(), diag::err_template_arg_wrongtype_null_constant)
 5835     S.Diag(Param->getLocation(), diag::note_template_param_here);
 5843     S.Diag(Arg->getExprLoc(), diag::err_template_arg_untyped_null_constant)
 5847     S.Diag(Param->getLocation(), diag::note_template_param_here);
 5885           S.Diag(Arg->getBeginLoc(),
 5888           S.Diag(Param->getLocation(), diag::note_template_param_here);
 5901         S.Diag(Arg->getBeginLoc(), diag::err_template_arg_no_ref_bind)
 5904         S.Diag(Arg->getBeginLoc(), diag::err_template_arg_not_convertible)
 5906       S.Diag(Param->getLocation(), diag::note_template_param_here);
 5951         S.Diag(ArgIn->getBeginLoc(), diag::ext_ms_deref_template_argument)
 5960         S.Diag(Arg->getBeginLoc(), diag::err_template_arg_not_decl_ref)
 5985         S.Diag(Arg->getBeginLoc(),
 6021       S.Diag(Arg->getExprLoc(), diag::warn_cxx98_compat_template_arg_null);
 6051     S.Diag(Arg->getBeginLoc(), diag::err_template_arg_not_decl_ref)
 6053     S.Diag(Param->getLocation(), diag::note_template_param_here);
 6059     S.Diag(Arg->getBeginLoc(), diag::err_template_arg_field)
 6061     S.Diag(Param->getLocation(), diag::note_template_param_here);
 6068       S.Diag(Arg->getBeginLoc(), diag::err_template_arg_method)
 6070       S.Diag(Param->getLocation(), diag::note_template_param_here);
 6081     S.Diag(Arg->getBeginLoc(), diag::err_template_arg_not_object_or_func)
 6083     S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
 6089     S.Diag(Arg->getBeginLoc(),
 6094     S.Diag(Entity->getLocation(), diag::note_template_arg_internal_object)
 6097     S.Diag(Arg->getBeginLoc(), diag::err_template_arg_object_no_linkage)
 6099     S.Diag(Entity->getLocation(), diag::note_template_arg_internal_object)
 6114         S.Diag(AddrOpLoc, diag::err_template_arg_address_of_non_pointer)
 6116         S.Diag(Param->getLocation(), diag::note_template_param_here);
 6120       S.Diag(AddrOpLoc, diag::err_template_arg_address_of_non_pointer)
 6123       S.Diag(Param->getLocation(), diag::note_template_param_here);
 6130       S.Diag(Arg->getBeginLoc(), diag::err_template_arg_reference_var)
 6132       S.Diag(Param->getLocation(), diag::note_template_param_here);
 6138       S.Diag(Arg->getBeginLoc(), diag::err_template_arg_thread_local)
 6140       S.Diag(Var->getLocation(), diag::note_template_arg_refers_here);
 6153           S.Diag(AddrOpLoc, diag::err_template_arg_address_of_non_pointer)
 6155           S.Diag(Param->getLocation(), diag::note_template_param_here);
 6159         S.Diag(AddrOpLoc, diag::err_template_arg_address_of_non_pointer)
 6162         S.Diag(Param->getLocation(), diag::note_template_param_here);
 6176           S.Diag(Arg->getBeginLoc(), diag::err_template_arg_not_address_of)
 6178           S.Diag(Param->getLocation(), diag::note_template_param_here);
 6182         S.Diag(Arg->getBeginLoc(), diag::err_template_arg_not_address_of)
 6185         S.Diag(Param->getLocation(), diag::note_template_param_here);
 6226       S.Diag(Arg->getBeginLoc(),
 6275     S.Diag(ResultArg->getExprLoc(), diag::warn_cxx98_compat_template_arg_null);
 6292     S.Diag(ResultArg->getBeginLoc(), diag::err_template_arg_not_convertible)
 6294     S.Diag(Param->getLocation(), diag::note_template_param_here);
 6299     return S.Diag(Arg->getBeginLoc(),
 6323   S.Diag(Arg->getBeginLoc(), diag::err_template_arg_not_pointer_to_member_form)
 6325   S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
 6367       Diag(Arg->getExprLoc(),
 6371       Diag(Param->getLocation(), diag::note_template_param_here);
 6380       Diag(Param->getLocation(), diag::note_template_param_here);
 6408     Diag(StartLoc, diag::err_deduced_non_type_template_arg_type_mismatch)
 6411     Diag(Param->getLocation(), diag::note_template_param_here);
 6483         Diag(Arg->getBeginLoc(),
 6512         Diag(Arg->getBeginLoc(), diag::err_template_arg_not_decl_ref)
 6526         Diag(StartLoc, diag::err_non_type_template_arg_subobject)
 6539       return Diag(StartLoc, diag::err_non_type_template_arg_addr_label_diff);
 6621       Diag(Arg->getBeginLoc(), diag::err_template_arg_not_integral_or_enumeral)
 6623       Diag(Param->getLocation(), diag::note_template_param_here);
 6634           S.Diag(Loc, diag::err_template_arg_not_ice) << T << SR;
 6660       Diag(Arg->getBeginLoc(), diag::err_template_arg_not_convertible)
 6662       Diag(Param->getLocation(), diag::note_template_param_here);
 6700         Diag(Arg->getBeginLoc(), diag::warn_template_arg_negative)
 6703         Diag(Param->getLocation(), diag::note_template_param_here);
 6715         Diag(Arg->getBeginLoc(), diag::warn_template_arg_too_large)
 6718         Diag(Param->getLocation(), diag::note_template_param_here);
 6838       Diag(Arg->getExprLoc(), diag::err_template_arg_not_convertible)
 6840       Diag(Param->getLocation(), diag::note_template_param_here);
 6847       Diag(Arg->getExprLoc(), diag::warn_cxx98_compat_template_arg_null);
 6904     Diag(Arg.getLocation(), diag::err_template_arg_not_valid_template);
 6905     Diag(Template->getLocation(), diag::note_template_arg_refers_here_func)
 7128         S.Diag(TemplateArgLoc, diag::err_template_arg_template_params_mismatch);
 7131       S.Diag(New->getLocation(), NextDiag)
 7133       S.Diag(Old->getLocation(), diag::note_template_prev_declaration)
 7150         S.Diag(TemplateArgLoc,
 7158       S.Diag(New->getLocation(), NextDiag)
 7160       S.Diag(Old->getLocation(), diag::note_template_parameter_pack_here)
 7185           S.Diag(TemplateArgLoc,
 7189         S.Diag(NewNTTP->getLocation(), NextDiag)
 7192         S.Diag(OldNTTP->getLocation(),
 7234     S.Diag(TemplateArgLoc, diag::err_template_arg_template_params_mismatch);
 7237   S.Diag(New->getTemplateLoc(), NextDiag)
 7241   S.Diag(Old->getTemplateLoc(), diag::note_template_prev_declaration)
 7250   S.Diag(New->getTemplateLoc(), diag::err_template_different_requires_clause);
 7251   S.Diag(Old->getTemplateLoc(),  diag::note_template_prev_declaration)
 7386     Diag(TemplateParams->getTemplateLoc(), diag::err_template_linkage)
 7389       Diag(LSD->getExternLoc(), diag::note_extern_c_begins_here);
 7404         return Diag(TemplateParams->getTemplateLoc(),
 7412   return Diag(TemplateParams->getTemplateLoc(),
 7480     S.Diag(Loc, diag::err_template_spec_unknown_kind)
 7482     S.Diag(Specialized->getLocation(), diag::note_specialized_entity);
 7490     S.Diag(Loc, diag::err_template_spec_decl_function_scope)
 7507       S.Diag(Loc, diag::err_template_spec_redecl_global_scope)
 7514       S.Diag(Loc, Diag) << EntityKind << Specialized
 7518     S.Diag(Specialized->getLocation(), diag::note_specialized_entity);
 7608         S.Diag(TemplateNameLoc,
 7610         S.Diag(ParamUseRange.getBegin(),
 7614         S.Diag(ParamUseRange.getBegin(),
 7624       S.Diag(IsDefaultArgument ? TemplateNameLoc : ArgExpr->getBeginLoc(),
 7627       S.Diag(Param->getLocation(), diag::note_template_param_here)
 7696     Diag(TemplateNameLoc, diag::err_not_class_template_specialization)
 7722       Diag(KWLoc, diag::err_partial_specialization_friend)
 7734           Diag(TTP->getDefaultArgumentLoc(),
 7741           Diag(NTTP->getDefaultArgumentLoc(),
 7749           Diag(TTP->getDefaultArgument().getLocation(),
 7758       Diag(KWLoc, diag::err_template_spec_friend)
 7774     Diag(KWLoc, diag::err_use_with_wrong_tag)
 7778     Diag(ClassTemplate->getTemplatedDecl()->getLocation(),
 7813       Diag(TemplateNameLoc, diag::err_partial_spec_fully_specialized)
 7856       Diag(TemplateNameLoc, diag::err_partial_spec_args_match_primary_template)
 7945       Diag(TemplateNameLoc, diag::err_specialization_after_instantiation)
 7948       Diag(PrevDecl->getPointOfInstantiation(),
 7970       Diag(TemplateNameLoc, diag::err_redefinition) << Specialization << Range;
 7971       Diag(Def->getLocation(), diag::note_previous_definition);
 7987     Diag(Specialization->getLocation(), diag::err_module_private_specialization)
 8055     Diag(NameLoc,
 8061     Diag(NameLoc, diag::err_concept_extra_headers);
 8066     Diag(NameLoc, diag::err_concept_no_parameters);
 8077     Diag(NameLoc, diag::err_concept_no_associated_constraints);
 8091     Diag(NameLoc, isa<ConceptDecl>(Old) ? diag::err_redefinition :
 8093     Diag(Old->getLocation(), diag::note_previous_definition);
 8204       Diag(NewLoc, diag::err_specialization_after_instantiation)
 8206       Diag(PrevPointOfInstantiation, diag::note_instantiation_required_here)
 8240       Diag(NewLoc,
 8246       Diag(DiagLocForExplicitInstantiation(PrevDecl, PrevPointOfInstantiation),
 8267       Diag(NewLoc, diag::warn_explicit_instantiation_after_specialization)
 8269       Diag(PrevDecl->getLocation(),
 8300       Diag(NewLoc, (getLangOpts().MSVCCompat)
 8304       Diag(DiagLocForExplicitInstantiation(PrevDecl, PrevPointOfInstantiation),
 8357     Diag(FD->getLocation(),
 8360       Diag(P.second->getLocation(),
 8486     Diag(FD->getLocation(), diag::err_qualified_friend_no_match)
 8719     Diag(Member->getLocation(), diag::err_spec_member_not_instantiated)
 8721     Diag(Instantiation->getLocation(), diag::note_specialized_decl);
 8835     S.Diag(InstLoc, diag::err_explicit_instantiation_in_class)
 8858       S.Diag(InstLoc,
 8864       S.Diag(InstLoc,
 8870     S.Diag(InstLoc,
 8875   S.Diag(D->getLocation(), diag::note_explicit_instantiation_here);
 8889     S.Diag(InstLoc, diag::err_explicit_instantiation_internal_linkage) << D;
 8967     Diag(TemplateNameLoc, diag::err_tag_reference_non_tag) << TD << NTK << Kind;
 8968     Diag(TD->getLocation(), diag::note_previous_use);
 8975     Diag(KWLoc, diag::err_use_with_wrong_tag)
 8979     Diag(ClassTemplate->getTemplatedDecl()->getLocation(),
 8998         Diag(ExternLoc,
 9000         Diag(AL.getLoc(), diag::note_attribute);
 9006       Diag(ExternLoc,
 9008       Diag(A->getLocation(), diag::note_attribute);
 9061         Diag(AL.getLoc(),
 9276     Diag(TemplateLoc, diag::err_explicit_instantiation_nontemplate_type)
 9278     Diag(Record->getLocation(), diag::note_nontemplate_decl_here);
 9289     Diag(TemplateLoc, diag::ext_explicit_instantiation_without_qualified_id)
 9330       Diag(TemplateLoc, diag::err_explicit_instantiation_undefined_member)
 9332       Diag(Pattern->getLocation(), diag::note_forward_declaration)
 9371       Diag(D.getDeclSpec().getBeginLoc(),
 9394     Diag(D.getIdentifierLoc(), diag::err_explicit_instantiation_of_typedef)
 9400     Diag(D.getIdentifierLoc(), diag::err_explicit_instantiation_storage_class)
 9412     Diag(D.getDeclSpec().getInlineSpecLoc(),
 9420     Diag(D.getDeclSpec().getConstexprSpecLoc(),
 9426     Diag(D.getDeclSpec().getBeginLoc(), diag::err_deduction_guide_specialized)
 9459         Diag(D.getIdentifierLoc(), diag::err_explicit_instantiation_not_known)
 9463           Diag((*P)->getLocation(), diag::note_explicit_instantiation_here);
 9469         Diag(D.getIdentifierLoc(),
 9472         Diag(Prev->getLocation(), diag::note_explicit_instantiation_here);
 9485         Diag(T->getTypeLoc().getBeginLoc(),
 9494         Diag(D.getIdentifierLoc(),
 9497         Diag(PrevTemplate->getLocation(),
 9527       Diag(D.getIdentifierLoc(),
 9552       Diag(T->getTypeLoc().getBeginLoc(),
 9555       Diag(PrevTemplate->getLocation(), diag::note_template_declared_here)
 9678     Diag(D.getIdentifierLoc(),
 9683     Diag(Specialization->getLocation(), diag::note_explicit_instantiation_here);
 9749     Diag(D.getIdentifierLoc(),
 9777     Diag(NameLoc, diag::err_dependent_tag_decl)
 9803     Diag(TypenameLoc,
 9843     Diag(TypenameLoc,
 9855       Diag(TemplateIILoc,
10014         Diag(FailedCond->getExprLoc(),
10021       Diag(CondRange.getBegin(), diag::err_typename_nested_not_found_enable_if)
10035     Diag(IILoc, diag::err_typename_refers_to_using_value_decl)
10040       Diag(Loc, diag::note_using_value_decl_missing_typename)
10075         Diag(IILoc, diag::ext_out_of_line_qualified_id_type_names_constructor)
10116   Diag(IILoc, DiagID) << FullRange << Name << Ctx;
10118     Diag(Referenced->getLocation(), diag::note_typename_refers_here)
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 2548         S.Diag(Param->getLocation(),
 3099         Diag(Function->getLocation(), diag::err_kern_type_not_void_return)
 4389     auto D = S.Diag(Info.getLocation(), diag::err_auto_inconsistent_deduction);
 4447         Diag(Init->getBeginLoc(), diag::err_decltype_auto_initializer_list);
 4466         Diag(Init->getBeginLoc(), diag::err_auto_init_list_from_c);
 4544       Diag(Loc, diag::err_auto_bitfield);
 4618     Diag(VDecl->getLocation(),
 4624     Diag(VDecl->getLocation(),
 4683     Diag(Loc, diag::err_auto_fn_used_before_defined) << FD;
 4684     Diag(FD->getLocation(), diag::note_callee_decl) << FD;
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
  452   SemaRef.Diag(PointOfInstantiation,
  456   SemaRef.Diag(PointOfInstantiation, diag::note_template_recursion_depth)
 1120       getSema().Diag(Loc, diag::err_nested_name_spec_non_tag) << T;
 1168         SemaRef.Diag(TagLocation, diag::err_use_with_wrong_tag)
 1172         SemaRef.Diag(TD->getLocation(), diag::note_previous_use);
 1835       Diag(OldParm->getLocation(),
 1849     Diag(OldParm->getLocation(), diag::err_param_with_void_type);
 2409     Diag(PointOfInstantiation,
 2412     Diag(Pattern->getEndLoc(), diag::note_in_class_initializer_not_yet_parsed);
 2422     Diag(PointOfInstantiation, diag::err_in_class_initializer_cycle)
 2578           S.Diag(PointOfInstantiation,
 2586             S.Diag(P->Partial->getLocation(), diag::note_partial_spec_match)
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
  204     S.Diag(A->getLocation(), diag::err_attr_cond_never_constant_expr) << A;
  883     SemaRef.Diag(D->getLocation(), diag::err_variable_instantiates_to_function)
  954       SemaRef.Diag(D->getLocation(), diag::err_field_instantiates_to_function)
 1024     SemaRef.Diag(D->getLocation(), diag::err_property_is_variably_modified)
 1040       SemaRef.Diag(D->getLocation(), diag::err_field_instantiates_to_function)
 1375       SemaRef.Diag(Pattern->getLocation(), diag::err_not_tag_in_scope)
 2889       SemaRef.Diag(D->getEllipsisLoc(),
 3317     SemaRef.Diag(D->getLocation(), diag::err_redefinition) << PrevDecl;
 3318     SemaRef.Diag(PrevDecl->getDefinition()->getLocation(),
 3438     SemaRef.Diag(D->getLocation(), diag::err_variable_instantiates_to_function)
 3470   SemaRef.Diag(D->getLocation(), DiagID)
 3643     SemaRef.Diag(PartialSpec->getLocation(), diag::err_partial_spec_redeclared)
 3645     SemaRef.Diag(PrevDecl->getLocation(), diag::note_prev_partial_spec_here)
 3763     SemaRef.Diag(PartialSpec->getLocation(),
 3766     SemaRef.Diag(PrevDecl->getLocation(),
 3779     SemaRef.Diag(PartialSpec->getLocation(),
 3992     Diag(PointOfInstantiation, diag::err_exception_spec_cycle) << Decl;
 4232         Diag(PointOfInstantiation, diag::warn_func_template_missing)
 4234         Diag(PatternDecl->getLocation(), diag::note_forward_template_decl);
 4236           Diag(PointOfInstantiation, diag::note_inst_declaration_hint)
 4788         Diag(PointOfInstantiation, diag::warn_var_template_missing)
 4790         Diag(PatternDecl->getLocation(), diag::note_forward_template_decl);
 4792           Diag(PointOfInstantiation, diag::note_inst_declaration_hint) << Var;
 5467             Diag(Loc, diag::err_specialization_not_primary_template)
 5563         Diag(Loc, diag::err_member_not_yet_instantiated)
 5566         Diag(D->getLocation(), diag::note_non_instantiated_member_here);
 5576         Diag(Loc, diag::err_enumerator_does_not_exist)
 5579         Diag(Spec->getLocation(), diag::note_enum_specialized_here)
tools/clang/lib/Sema/SemaTemplateVariadic.cpp
  371   DiagnosticBuilder DB = Diag(Loc, diag::err_unexpanded_parameter_pack)
  558       Diag(EllipsisLoc, diag::err_pack_expansion_without_parameter_packs)
  612     Diag(EllipsisLoc, diag::err_pack_expansion_without_parameter_packs)
  634     Diag(EllipsisLoc, diag::err_pack_expansion_without_parameter_packs)
  746         Diag(EllipsisLoc, diag::err_pack_expansion_length_conflict)
  750         Diag(EllipsisLoc, diag::err_pack_expansion_length_conflict_multilevel)
  770       Diag(EllipsisLoc, diag::err_pack_expansion_length_conflict_partial)
 1013     Diag(NameLoc, diag::err_sizeof_pack_no_pack_name)
 1149     S.Diag(E->getExprLoc(), diag::err_fold_expression_bad_operand)
 1178     return Diag(EllipsisLoc,
 1193       return Diag(EllipsisLoc, diag::err_pack_expansion_without_parameter_packs)
 1234     return Diag(EllipsisLoc, diag::err_fold_expression_empty)
tools/clang/lib/Sema/SemaType.cpp
   98   S.Diag(loc, diag::warn_type_attribute_wrong_type) << name << WhichType
  791         S.Diag(Qual.second, DiagID)
  812     S.Diag(AL.getLoc(),
  839     S.Diag(loc, diag::err_objc_type_args_non_class)
  852     S.Diag(loc, diag::err_objc_type_args_non_parameterized_class)
  864     S.Diag(loc, diag::err_objc_type_args_specialized_class)
  892           S.Diag(attr.getBeginLoc(),
  900         S.Diag(qual.getBeginLoc(), diag::err_objc_type_arg_qualified)
  921         S.Diag(loc, diag::err_objc_type_args_wrong_arity)
  926         S.Diag(objcClass->getLocation(), diag::note_previous_decl)
  962       S.Diag(typeArgInfo->getTypeLoc().getBeginLoc(),
  965       S.Diag(typeParam->getLocation(), diag::note_objc_type_param_here)
  990       S.Diag(typeArgInfo->getTypeLoc().getBeginLoc(),
  993       S.Diag(typeParam->getLocation(), diag::note_objc_type_param_here)
 1008     S.Diag(typeArgInfo->getTypeLoc().getBeginLoc(),
 1020     S.Diag(loc, diag::err_objc_type_args_wrong_arity)
 1025     S.Diag(objcClass->getLocation(), diag::note_previous_decl)
 1050       Diag(SourceLocation(), diag::err_invalid_protocol_qualifiers)
 1086       Diag(Loc, diag::err_invalid_protocol_qualifiers)
 1293       S.Diag(DS.getTypeSpecSignLoc(), diag::ext_wchar_t_sign_spec)
 1300       S.Diag(DS.getTypeSpecSignLoc(), diag::ext_wchar_t_sign_spec)
 1350         S.Diag(DeclLoc, diag::ext_missing_declspec)
 1360         S.Diag(DeclLoc, diag::err_missing_type_specifier)
 1370         S.Diag(DeclLoc, diag::err_missing_actual_pipe_type)
 1374         S.Diag(DeclLoc, diag::ext_missing_type_specifier)
 1392             S.Diag(DS.getTypeSpecWidthLoc(),
 1396             S.Diag(DS.getTypeSpecWidthLoc(), diag::ext_c99_longlong);
 1411             S.Diag(DS.getTypeSpecWidthLoc(),
 1415             S.Diag(DS.getTypeSpecWidthLoc(), diag::ext_c99_longlong);
 1471       S.Diag(DS.getTypeSpecTypeLoc(), diag::err_type_unsupported)
 1484       S.Diag(DS.getTypeSpecTypeLoc(), diag::err_type_unsupported)
 1499       S.Diag(DS.getTypeSpecTypeLoc(), diag::err_type_unsupported)
 1508     S.Diag(DS.getTypeSpecTypeLoc(), diag::err_decimal_unsupported);
 1657     S.Diag(DS.getTypeSpecSatLoc(), diag::err_invalid_saturation_spec)
 1664       S.Diag(DS.getTypeSpecComplexLoc(), diag::ext_freestanding_complex);
 1679     S.Diag(DS.getTypeSpecComplexLoc(), diag::err_imaginary_not_supported);
 1734         S.Diag(DS.getConstSpecLoc(), diag::ext_duplicate_declspec)
 1739         S.Diag(DS.getVolatileSpecLoc(), diag::ext_duplicate_declspec)
 1806       Diag(DS ? DS->getRestrictSpecLoc() : Loc, DiagID) << ProblemTy;
 1904       S.Diag(loc, diag::err_arc_indirect_no_ownership) << type << isReference;
 1962   S.Diag(Loc, diag::err_compound_qualified_function_type)
 1974   Diag(Loc, diag::err_qualified_function_typeid)
 1996     Diag(Loc, diag::err_illegal_decl_pointer_to_reference)
 2002     Diag(Loc, diag::err_opencl_function_pointer);
 2064     Diag(Loc, diag::err_reference_to_void);
 2118       S.Diag(Loc, diag::ext_vla_folded_to_constant) << SR;
 2160       Diag(Loc, diag::err_illegal_decl_array_of_references)
 2166       Diag(Loc, diag::err_illegal_decl_array_incomplete_type) << T;
 2190     Diag(Loc, diag::err_illegal_decl_array_of_functions)
 2199       Diag(Loc, diag::ext_flexible_array_in_array) << T;
 2201     Diag(Loc, diag::err_objc_array_of_interfaces) << T;
 2226     Diag(ArraySize->getBeginLoc(), diag::err_array_size_non_int)
 2246       Diag(ArraySize->getBeginLoc(), diag::err_array_size_non_int)
 2260         Diag(ArraySize->getBeginLoc(), diag::err_decl_negative_array_size)
 2263         Diag(ArraySize->getBeginLoc(), diag::err_typecheck_negative_array_size)
 2270       Diag(ArraySize->getBeginLoc(), isSFINAEContext()
 2276         Diag(ArraySize->getBeginLoc(),
 2287         Diag(ArraySize->getBeginLoc(), diag::err_array_too_large)
 2298     Diag(Loc, diag::err_opencl_vla);
 2317         Diag(Loc, diag::err_vla_in_sfinae);
 2322         Diag(Loc, diag::ext_vla);
 2324       Diag(Loc,
 2331     Diag(Loc, diag::warn_vla_used);
 2341       Diag(Loc, diag::err_opencl_invalid_type_array) << ArrType;
 2356     Diag(AttrLoc, diag::err_attribute_invalid_vector_type) << CurType;
 2366     Diag(AttrLoc, diag::err_attribute_argument_type)
 2380     Diag(AttrLoc, diag::err_attribute_zero_size) << SizeExpr->getSourceRange();
 2386     Diag(AttrLoc, diag::err_attribute_invalid_size)
 2392     Diag(AttrLoc, diag::err_attribute_size_too_large)
 2416     Diag(AttrLoc, diag::err_attribute_invalid_vector_type) << T;
 2423       Diag(AttrLoc, diag::err_attribute_argument_type)
 2434       Diag(AttrLoc, diag::err_attribute_zero_size)
 2440       Diag(AttrLoc, diag::err_attribute_size_too_large)
 2453     Diag(Loc, diag::err_func_returning_array_function)
 2460     Diag(Loc, diag::err_parameters_retval_cannot_have_fp16_type) << 1 <<
 2468     Diag(Loc, diag::err_object_cannot_be_passed_returned_by_value)
 2481     Diag(Loc, diag::warn_deprecated_volatile_return) << T;
 2500     S.Diag(getParamLoc(paramIndex), diag::err_swift_param_attr_not_swiftcall)
 2518         S.Diag(getParamLoc(paramIndex),
 2533         S.Diag(getParamLoc(paramIndex),
 2554       Diag(Loc, diag::err_param_with_void_type);
 2558       Diag(Loc, diag::err_parameters_retval_cannot_have_fp16_type) << 0 <<
 2566       Diag(Loc, diag::warn_deprecated_volatile_param) << ParamType;
 2602     Diag(Loc, diag::err_distant_exception_spec);
 2609     Diag(Loc, diag::err_illegal_decl_mempointer_to_reference)
 2615     Diag(Loc, diag::err_illegal_decl_mempointer_to_void)
 2621     Diag(Loc, diag::err_mempointer_in_nonclass_type) << Class;
 2651     Diag(Loc, diag::err_nonfunction_block_type);
 2827   Diag(Loc.isInvalid() ? FallbackLoc : Loc, DiagID)
 3134       SemaRef.Diag(AutoRange.getBegin(), diag::err_auto_not_allowed)
 3138         SemaRef.Diag(TD->getLocation(), diag::note_template_decl_here);
 3146       SemaRef.Diag(AutoRange.getBegin(),
 3214       SemaRef.Diag(OwnedTagDecl->getLocation(), DiagID)
 3259   S.Diag(DeclType.Loc,
 3277         S.Diag(D.getCommaLoc(), diag::note_empty_parens_function_call)
 3293     S.Diag(B, diag::note_additional_parens_for_variable_declaration)
 3308       S.Diag(DeclType.Loc, diag::note_empty_parens_default_ctor)
 3316         S.Diag(DeclType.Loc, diag::note_empty_parens_zero_initialize)
 3416     S.Diag(Paren.Loc, diag::warn_redundant_parens_around_declarator)
 3422   S.Diag(Paren.Loc, diag::warn_parens_disambiguated_as_variable_declaration)
 3426     S.Diag(Paren.Loc, diag::note_raii_guard_add_name)
 3431   S.Diag(D.getBeginLoc(), diag::note_function_style_cast_add_parentheses)
 3434   S.Diag(Paren.Loc, diag::note_remove_parens_for_variable_declaration)
 3842     S.Diag(PointerLoc, diag::warn_nullability_missing_array);
 3844     S.Diag(PointerLoc, diag::warn_nullability_missing)
 3853     auto Diag = S.Diag(FixItLoc, diag::note_nullability_fix_it);
 3998       S.Diag(AttrLoc, diag::err_attribute_address_multiple_qualifiers);
 4002     S.Diag(AttrLoc,
 4089         S.Diag(DeclChunk.Loc, DiagId) << DiagKind;
 4315             S.Diag(pointerLoc, diag::warn_nullability_inferred_on_nested_type);
 4398         S.Diag(DeclType.Loc, diag::err_blocks_disable) << LangOpts.OpenCL;
 4418         S.Diag(D.getIdentifierLoc(), diag::err_distant_exception_spec);
 4441           S.Diag(D.getIdentifierLoc(), diag::err_opencl_pointer_to_type) << T;
 4454         S.Diag(D.getIdentifierLoc(), diag::err_distant_exception_spec);
 4468         S.Diag(D.getIdentifierLoc(), diag::err_distant_exception_spec);
 4485         S.Diag(DeclType.Loc, diag::err_array_star_outside_prototype);
 4496           S.Diag(DeclType.Loc, diag::err_array_static_outside_prototype) <<
 4508           S.Diag(DeclType.Loc, diag::err_array_static_not_outermost) <<
 4523           S.Diag(DeclType.Loc, diag::err_illegal_decl_array_of_auto)
 4559             S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(),
 4566             S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(),
 4572             S.Diag(D.getBeginLoc(), diag::err_trailing_return_in_parens)
 4578               S.Diag(D.getDeclSpec().getBeginLoc(),
 4587             S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(),
 4615         S.Diag(DeclType.Loc, diagID) << T->isFunctionType() << T;
 4625             S.Diag(D.getIdentifierLoc(), diag::err_opencl_invalid_return)
 4630           S.Diag(D.getIdentifierLoc(),
 4641           S.Diag(D.getIdentifierLoc(), diag::err_opencl_invalid_return)
 4653           S.Diag(D.getIdentifierLoc(), diag::err_opencl_variadic_function);
 4669         S.Diag(DiagLoc, diag::err_object_cannot_be_passed_returned_by_value)
 4695           S.Diag(DeclType.Loc, diag::err_func_returning_qualified_void) << T;
 4702           S.Diag(DeclType.Loc, diag::warn_deprecated_volatile_return) << T;
 4736           S.Diag(AttrLoc, diag::warn_arc_lifetime_result_type)
 4745         S.Diag(Tag->getLocation(), diag::err_type_defined_in_result_type)
 4752         S.Diag(FTI.getExceptionSpecLocBeg(),
 4775             S.Diag(FTI.getEllipsisLoc(), diag::err_ellipsis_first_param);
 4780           S.Diag(FTI.Params[0].IdentLoc,
 4821               S.Diag(DeclType.Loc, diag::err_void_only_param);
 4826               S.Diag(FTI.Params[i].IdentLoc, diag::err_param_with_void_type);
 4832                 S.Diag(DeclType.Loc, diag::err_void_param_qualified);
 4842                 S.Diag(Param->getLocation(),
 4848               S.Diag(Param->getLocation(),
 4998         S.Diag(DeclType.Mem.Scope().getBeginLoc(),
 5035         S.Diag(DeclType.Loc, diag::warn_noderef_on_non_pointer_or_array);
 5042     S.Diag(state.getDeclarator().getBeginLoc(),
 5066           S.Diag(DeclType.Loc, diag::warn_strict_prototypes)
 5152       S.Diag(Loc, diag::err_invalid_qualified_function_type)
 5191     S.Diag(D.getIdentifierLoc(), diag::warn_deprecated_volatile_param) << T;
 5213         S.Diag(D.getEllipsisLoc(),
 5233         S.Diag(D.getEllipsisLoc(),
 5266       S.Diag(D.getEllipsisLoc(),
 5898       S.Diag(AttrLoc, diag::err_attribute_argument_type)
 5907         S.Diag(AttrLoc, diag::err_attribute_address_space_negative)
 5918       S.Diag(AttrLoc, diag::err_attribute_address_space_too_high)
 5953     Diag(AttrLoc, diag::err_attribute_address_multiple_qualifiers);
 5979     S.Diag(Attr.getLoc(), diag::err_attribute_address_function_type);
 5989       S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << Attr
 6102     S.Diag(AttrLoc, diag::err_attribute_argument_type) << attr
 6119     S.Diag(AttrLoc, diag::warn_attribute_type_not_supported) << attr << II;
 6139       S.Diag(AttrLoc, diag::err_attr_objc_ownership_redundant)
 6170     S.Diag(AttrLoc, diag::warn_type_attribute_wrong_type) << name
 6213       S.Diag(loc, diagnostic);
 6240           S.Diag(AttrLoc, diag::err_arc_unsupported_weak_class);
 6241           S.Diag(ObjT->getInterfaceDecl()->getLocation(),
 6266     S.Diag(attr.getLoc(), diag::err_attribute_multiple_objc_gc);
 6273     S.Diag(attr.getLoc(), diag::err_attribute_argument_type)
 6280     S.Diag(attr.getLoc(), diag::err_attribute_wrong_number_arguments) << attr
 6292     S.Diag(attr.getLoc(), diag::warn_attribute_type_not_supported)
 6476       S.Diag(PAttr.getLoc(), diag::warn_duplicate_attribute_exact) << PAttr;
 6484       S.Diag(PAttr.getLoc(), diag::err_attributes_are_not_compatible)
 6489       S.Diag(PAttr.getLoc(), diag::err_attributes_are_not_compatible)
 6507       S.Diag(PAttr.getLoc(), diag::err_attribute_no_member_pointers) << PAttr;
 6509       S.Diag(PAttr.getLoc(), diag::err_attribute_pointers_only) << PAttr << 0;
 6566         S.Diag(nullabilityLoc, diag::warn_nullability_duplicate)
 6574       S.Diag(nullabilityLoc, diag::err_nullability_conflicting)
 6589       S.Diag(nullabilityLoc, diag::err_nullability_conflicting)
 6600             S.Diag(typedefDecl->getLocation(), diag::note_nullability_here)
 6613     S.Diag(nullabilityLoc, diag::err_nullability_nonpointer)
 6631       S.Diag(nullabilityLoc, diag::err_nullability_cs_multilevel)
 6634       S.Diag(nullabilityLoc, diag::note_nullability_type_specifier)
 6670     S.Diag(attr.getLoc(), diag::err_objc_kindof_nonobject)
 6734     auto diag = state.getSema().Diag(attr.getLoc(),
 6906       S.Diag(attr.getLoc(), diag::warn_nocf_check_attribute_ignored);
 6938       S.Diag(attr.getLoc(), diag::err_attributes_are_not_compatible)
 6987         S.Diag(attr.getLoc(), diag::warn_nothrow_attribute_ignored);
 7018       S.Diag(attr.getLoc(), diag::err_attributes_are_not_compatible)
 7039         return S.Diag(attr.getLoc(), diag::warn_cconv_unsupported)
 7044       return S.Diag(attr.getLoc(), diag::err_cconv_varargs)
 7051     S.Diag(attr.getLoc(), diag::err_attributes_are_not_compatible)
 7104       Diag(Loc, diag::warn_cconv_unsupported)
 7138     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << Attr
 7176     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << Attr
 7268     S.Diag(Attr.getLoc(), diag::err_attribute_unsupported) << Attr;
 7274     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << Attr
 7284     S.Diag(Attr.getLoc(), diag::err_attribute_argument_type)
 7292     S.Diag(Attr.getLoc(), diag::err_attribute_invalid_vector_type) << CurType;
 7302     S.Diag(Attr.getLoc(), diag::err_attribute_bad_neon_vector_size) << CurType;
 7315     S.Diag(Attr.getLoc(), diag::err_opencl_invalid_access_qualifier);
 7349       S.Diag(Attr.getLoc(), diag::warn_duplicate_declspec)
 7353       S.Diag(Attr.getLoc(), diag::err_opencl_multiple_access_qualifiers);
 7356     S.Diag(TypedefTy->getDecl()->getBeginLoc(),
 7539           state.getSema().Diag(attr.getLoc(),
 7562         state.getSema().Diag(attr.getLoc(), diag::err_attribute_not_type_attr)
 7570         state.getSema().Diag(attr.getLoc(),
 7674         state.getSema().Diag(attr.getLoc(),
 8128     Diag(Tag->getLocation(),
 8135     Diag(IFace->getLocation(), diag::note_forward_class);
 8212     Diag(RD->getLocation(), diag::note_non_literal_lambda);
 8221     Diag(RD->getLocation(), diag::note_non_literal_virtual_base)
 8224       Diag(I.getBeginLoc(), diag::note_constexpr_virtual_base_here)
 8228     Diag(RD->getLocation(), diag::note_non_literal_no_constexpr_ctors) << RD;
 8232         Diag(I.getBeginLoc(), diag::note_non_literal_base_class)
 8240         Diag(I->getLocation(), diag::note_non_literal_field)
 8257       Diag(Dtor->getLocation(), diag::note_non_literal_non_constexpr_dtor)
 8260       Diag(Dtor->getLocation(), Dtor->isUserProvided()
 8301     Diag(E->getExprLoc(), diag::err_sizeof_alignof_typeof_bitfield) << 2;
 8389     Diag(E->getExprLoc(), diag::warn_side_effects_unevaluated_context);
 8401       Diag(Loc, diag::err_only_enums_have_underlying_types);
 8410           Diag(Loc, diag::err_underlying_type_of_incomplete_enum) << BaseType;
 8411           Diag(FwdDecl->getLocation(), diag::note_forward_declaration) << FwdDecl;
 8453       Diag(Loc, diag::err_atomic_specifier_bad_type) << DisallowedKind << T;
tools/clang/lib/Sema/TreeTransform.h
 1063           SemaRef.Diag(IdLoc, diag::err_dependent_deduced_tst)
 1068             SemaRef.Diag(TD->getLocation(), diag::note_template_decl_here);
 1119           SemaRef.Diag(IdLoc, diag::err_tag_reference_non_tag) << SomeDecl
 1121           SemaRef.Diag(SomeDecl->getLocation(), diag::note_declared_at);
 1125           SemaRef.Diag(IdLoc, diag::err_not_tag_in_scope)
 1134       SemaRef.Diag(KeywordLoc, diag::err_use_with_wrong_tag) << Id;
 1135       SemaRef.Diag(Tag->getLocation(), diag::note_previous_use);
 2093               return SemaRef.Diag(Init->getBeginLoc(),
 3740           SemaRef.Diag(TL.getBeginLoc(),
 3750         SemaRef.Diag(TL.getBeginLoc(), diag::err_nested_name_spec_non_tag)
 4373     SemaRef.Diag(Loc, diag::err_address_space_mismatch_templ_inst)
 4431         SemaRef.Diag(Loc, diag::err_attr_objc_ownership_redundant) << T;
 6184         SemaRef.Diag(TL.getNamedTypeLoc().getBeginLoc(),
 6188         SemaRef.Diag(TAT->getLocation(), diag::note_declared_at);
 6241         SemaRef.Diag(TL.getAttr()->getLocation(),
10890     getSema().Diag(Old->getNameLoc(), diag::err_using_pack_expansion_empty)
13052       getSema().Diag(Loc, diag::err_using_pack_expansion_empty)
13344       getSema().Diag(ScopeType->getTypeLoc().getBeginLoc(),