aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-03-04 09:41:16 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-03-04 09:41:16 +0000
commitb4a7b1e587a232c95d02a8ca10eeba60164fbba1 (patch)
tree658f1af3a01334a15e04b4516297ebd8b8addc3a /include/clang/Basic
parent5bd20ffcfefcfb2e5fd0cb1c9716cbccc4c6c3be (diff)
Add tests for [over.literal]. Fix a few bugs which were exposed by the tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index 1c749e3eb7..5d3ff2a4af 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -4684,6 +4684,8 @@ def err_literal_operator_outside_namespace : Error<
// FIXME: This diagnostic sucks
def err_literal_operator_params : Error<
"parameter declaration for literal operator %0 is not valid">;
+def err_literal_operator_extern_c : Error<
+ "literal operator must have C++ linkage">;
def warn_user_literal_hexfloat : Warning<
"user-defined literal with suffix '%0' is preempted by C99 hexfloat "
"extension">, InGroup<UserDefinedLiterals>;