[PATCH] D46834: [Sema][Cxx17] Error message for C++17 static_assert(pred) without string literal

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 16 18:25:06 PDT 2018


rsmith added a comment.

In https://reviews.llvm.org/D46834#1101586, @jkorous wrote:

> We reconsidered this in light of the policy - thanks for pointing that out Richard! 
>  Just to be sure that I understand it - the policy is meant for CLI and not serialized diagnostics, right?


The policy certainly seems designed around the CLI use case. For serialized diagnostics, it would make sense to either serialize the snippet or enough information that the snippet can be reconstructed. And if that can't be done, or fails to satisfy some other use case, then we should discuss how we proceed -- for instance, we could consider having different diagnostic messages for the case where we have a snippet and for the case where we do not.


Repository:
  rC Clang

https://reviews.llvm.org/D46834





More information about the cfe-commits mailing list