summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/DiagnosticASTKinds.td
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-02-01 05:53:12 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-02-01 05:53:12 +0000
commit7b48a2986345480241f3b8209f71bb21b0530b4f (patch)
tree6b8de705a3c6c110fcb3dbc6c12a62d6799d6ad5 /include/clang/Basic/DiagnosticASTKinds.td
parentb223d8c4266655fe7a9491a0aff0263597672823 (diff)
constexpr: overflow checking for integral and floating-point arithmetic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticASTKinds.td')
-rw-r--r--include/clang/Basic/DiagnosticASTKinds.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticASTKinds.td b/include/clang/Basic/DiagnosticASTKinds.td
index 7bca36de0b..ba8820a3b0 100644
--- a/include/clang/Basic/DiagnosticASTKinds.td
+++ b/include/clang/Basic/DiagnosticASTKinds.td
@@ -36,6 +36,8 @@ def note_constexpr_non_global : Note<
"cannot be used to initialize a member in a constant expression}3">;
def note_constexpr_array_index : Note<"cannot refer to element %0 of "
"%select{array of %2 elements|non-array object}1 in a constant expression">;
+def note_constexpr_float_arithmetic : Note<
+ "floating point arithmetic produces %select{an infinity|a NaN}0">;
def note_constexpr_pointer_arithmetic : Note<
"cannot refer to element %0 of non-array object in a constant "
"expression">;