[PATCH] D119405: [Clang][Sema] Use C++ standard terminology in clang diagnostics.
Jun Zhang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 9 20:47:46 PST 2022
junaire created this revision.
junaire added reviewers: Quuxplusone, aaron.ballman.
junaire requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Clang diagnostics should say "floating-point literal" instead of "floating-point constant"
according to C++ standard.
Close #53100
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119405
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
Index: clang/include/clang/Basic/DiagnosticSemaKinds.td
===================================================================
--- clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ clang/include/clang/Basic/DiagnosticSemaKinds.td
@@ -113,10 +113,10 @@
"predefined identifier is only valid inside function">,
InGroup<DiagGroup<"predefined-identifier-outside-function">>;
def warn_float_overflow : Warning<
- "magnitude of floating-point constant too large for type %0; maximum is %1">,
+ "magnitude of floating-point literal too large for type %0; maximum is %1">,
InGroup<LiteralRange>;
def warn_float_underflow : Warning<
- "magnitude of floating-point constant too small for type %0; minimum is %1">,
+ "magnitude of floating-point literal too small for type %0; minimum is %1">,
InGroup<LiteralRange>;
def warn_double_const_requires_fp64 : Warning<
"double precision constant requires %select{cl_khr_fp64|cl_khr_fp64 and __opencl_c_fp64}0, "
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119405.407383.patch
Type: text/x-patch
Size: 968 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220210/c12f1c43/attachment.bin>
More information about the cfe-commits
mailing list