[cfe-dev] clang-format WebKit style breaks C++11 raw string literals

Manuel Klimek klimek at google.com
Thu Dec 18 01:13:51 PST 2014


Are you running it in c++-11 mode?

On Thu Dec 18 2014 at 9:17:16 AM İsmail Dönmez <ismail at donmez.ws> wrote:

> [~]> cat r.cpp
> static const char* progressCSS = R"(QProgressBar::chunk{
>                                  background-color: #3add36;
>                                  width: 1px;
>                                  }
>                                  QProgressBar{
>                                  border: 2px solid grey;
>                                  border-radius: 0px;
>                                  font: bold;
>                                  text-align: center;
>                                  })";
>
> [~]> clang-format -style=WebKit r.cpp
> static const char* progressCSS = R "(QProgressBar::chunk{
>     background - color : #3add36;
> width:
> 1px;
> }
> QProgressBar
> {
> border:
>     2px solid grey;
>     border - radius : 0px;
> font:
>     bold;
>     text - align : center;
> })";
>
> Seems to confuse cpp with css.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141218/242cb83f/attachment.html>


More information about the cfe-dev mailing list