[PATCH] D12435: [Concepts] Add diagnostic; invalid specifier on function or variable concept declaration

Hubert Tong via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 28 10:23:31 PDT 2015


hubert.reinterpretcast added inline comments.

================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:1982
@@ -1981,1 +1981,3 @@
   "function concept cannot have exception specification">;
+def err_concept_decl_invalid_sepcifiers : Error<
+  "%select{variable|function}0 concept cannot be declared with "
----------------
The wording seems unwieldy. There are a number of messages of the form:

> [ ... ] cannot be declared '<blah>'

Perhaps something along those lines would work here?

btw, there's a typo in the message identifier.


http://reviews.llvm.org/D12435





More information about the cfe-commits mailing list