[PATCH] D69475: [clang] Provide better fix-it on exception spec error

Jeremy Demeule via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 27 02:09:32 PDT 2019


jdemeule created this revision.
jdemeule added a reviewer: rsmith.
jdemeule added a project: clang.

Clang will report an error when the exception specification is not respected with a fix-it.
However, this fix-it does not fully qualify the type in case of function template specialization which lead to "incomplete" transformation (resulting code does not compile).
This patch attempts to create a more realiable in the first place by reusing the pretty printer helper defined in `SemaTemplate` which expand template arguments.


Repository:
  rC Clang

https://reviews.llvm.org/D69475

Files:
  clang/include/clang/AST/PrettyPrinter.h
  clang/lib/AST/StmtPrinter.cpp
  clang/lib/Sema/SemaExceptionSpec.cpp
  clang/lib/Sema/SemaTemplate.cpp
  clang/test/SemaCXX/exception-spec.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69475.226566.patch
Type: text/x-patch
Size: 5616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191027/cc777110/attachment-0001.bin>


More information about the cfe-commits mailing list