[PATCH] D40705: Diagnose invalid decl-specifiers in non-type template parameter declarations (original author miyuki!)

Faisal Vali via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 20 20:55:33 PST 2017


faisalv updated this revision to Diff 127828.
faisalv retitled this revision from "[Parser] Diagnose storage classes in template parameter declarations" to "Diagnose invalid decl-specifiers in non-type template parameter declarations (original author miyuki!)".
faisalv edited the summary of this revision.
faisalv set the repository for this revision to rC Clang.
faisalv added projects: clang, clang-c.
faisalv added a comment.

Miyuki - please take a look at the patch and let me know if you agree with the changes - or have any concerns...

Thank you!

P.S. While I can see the argument for having these syntactical checks be done by the Parser - since they could be described as context sensitive syntax analysis, moving the changes to Sema also seems quite appropriate.


Repository:
  rC Clang

https://reviews.llvm.org/D40705

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaTemplate.cpp
  test/CXX/temp/temp.param/p2.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40705.127828.patch
Type: text/x-patch
Size: 5101 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171221/e80715e7/attachment.bin>


More information about the cfe-commits mailing list