Re: [PATCH] D39360: [C++11] Don't put empty quotes in static_assert diagnostic.

2017-11-12 Thread Nicolas Lesser via cfe-commits
Agreed! Just wanted to do it but then I noticed that there's already one that landed in r307791! :) On Sun, Oct 29, 2017 at 2:06 PM, Kim Gräsman wrote: > A clang-tidy check to remove empty messages from source would be nice, > though... > > - Kim > > Den 27 okt. 2017 10:24 fm skrev "Nicolas Less

Re: [PATCH] D39360: [C++11] Don't put empty quotes in static_assert diagnostic.

2017-10-29 Thread Kim Gräsman via cfe-commits
A clang-tidy check to remove empty messages from source would be nice, though... - Kim Den 27 okt. 2017 10:24 fm skrev "Nicolas Lesser via Phabricator" < revi...@reviews.llvm.org>: > Rakete abandoned this revision. > Rakete added a comment. > > @kimgr Well, mostly because they bother me

[PATCH] D39360: [C++11] Don't put empty quotes in static_assert diagnostic.

2017-10-27 Thread Nicolas Lesser via Phabricator via cfe-commits
Rakete abandoned this revision. Rakete added a comment. @kimgr Well, mostly because they bother me a bit, don't know what others think though. I just thought it would be nice if they didn't appear, mainly because there is no need to show empty quotes in the error message. Hmm, you have a

[PATCH] D39360: [C++11] Don't put empty quotes in static_assert diagnostic.

2017-10-26 Thread Kim Gräsman via Phabricator via cfe-commits
kimgr added a comment. Why? It seems easier to me to map back if the diagnostic mirrors the code as-written. https://reviews.llvm.org/D39360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[PATCH] D39360: [C++11] Don't put empty quotes in static_assert diagnostic.

2017-10-26 Thread Nicolas Lesser via Phabricator via cfe-commits
Rakete created this revision. Rakete added a project: clang. This patch removes the empty `""` when using `static_assert(1 + 1 == 3, "");` in the diagnostic: main.cpp:1:1: error: static_assert failed static_assert(1 + 1 == 3, ""); ^ ~~ https://reviews.llvm.org