[PATCH] D13357: [Concepts] Diagnose when 'concept' is specified on a specialization
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 13 10:30:53 PST 2016
hubert.reinterpretcast added inline comments.
================
Comment at: include/clang/AST/DeclTemplate.h:373
@@ -372,1 +372,3 @@
+ /// Whether this is a (C++ Concepts TS) function concept.
+ bool isConcept() const { return TemplatedDecl.getInt(); }
----------------
This code is not limited to function concepts.
================
Comment at: include/clang/AST/DeclTemplate.h:375
@@ +374,3 @@
+ bool isConcept() const { return TemplatedDecl.getInt(); }
+ void setConcept(bool IC) { TemplatedDecl.setInt(true); }
+
----------------
The parameter is now unused and should be removed.
http://reviews.llvm.org/D13357
More information about the cfe-commits
mailing list