summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/DiagnosticCommonKinds.td
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-07-23 00:25:18 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-07-23 00:25:18 +0000
commitb3da613977f6b77dee2b382eeff5713168a4ca18 (patch)
treeb4eeb45783da55ed2725032a2e3ce9c00c5c25e1 /include/clang/Basic/DiagnosticCommonKinds.td
parent08bf33aebeb68a98c1ecad0e87a9aa709409e11d (diff)
Integers which are too large should be an error.
Switch some warnings over to errors which should never have been warnings in the first place. (Also, a minor fix to the preprocessor rules for integer literals while I'm here.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticCommonKinds.td')
-rw-r--r--include/clang/Basic/DiagnosticCommonKinds.td8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/Basic/DiagnosticCommonKinds.td b/include/clang/Basic/DiagnosticCommonKinds.td
index 775d40fed1..94f1b4b244 100644
--- a/include/clang/Basic/DiagnosticCommonKinds.td
+++ b/include/clang/Basic/DiagnosticCommonKinds.td
@@ -99,10 +99,10 @@ def ext_cxx11_longlong : Extension<
def warn_cxx98_compat_longlong : Warning<
"'long long' is incompatible with C++98">,
InGroup<CXX98CompatPedantic>, DefaultIgnore;
-def warn_integer_too_large : Warning<
- "integer constant is too large for its type">;
-def warn_integer_too_large_for_signed : Warning<
- "integer constant is so large that it is unsigned">;
+def err_integer_too_large : Error<
+ "integer constant is larger than the largest unsigned integer type">;
+def err_integer_too_large_for_signed : Error<
+ "integer constant is larger than the largest signed integer type">;
// Sema && AST
def note_invalid_subexpr_in_const_expr : Note<