<div dir="ltr">Probably because WebKit style uses C++03 instead of C++11:<div><br></div><div><div>FormatStyle getWebKitStyle() {</div><div> FormatStyle Style = getLLVMStyle();</div><div>...</div><div> Style.Standard = FormatStyle::LS_Cpp03;<br></div><div> return Style;</div><div>}</div></div><div><br></div><div>If WebKit is using C++11 then that should be updated.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 17, 2014 at 4:30 AM, İsmail Dönmez <span dir="ltr"><<a href="mailto:ismail@donmez.ws" target="_blank">ismail@donmez.ws</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">[~]> cat r.cpp<br>
static const char* progressCSS = R"(QProgressBar::chunk{<br>
background-color: #3add36;<br>
width: 1px;<br>
}<br>
QProgressBar{<br>
border: 2px solid grey;<br>
border-radius: 0px;<br>
font: bold;<br>
text-align: center;<br>
})";<br>
<br>
[~]> clang-format -style=WebKit r.cpp<br>
static const char* progressCSS = R "(QProgressBar::chunk{<br>
background - color : #3add36;<br>
width:<br>
1px;<br>
}<br>
QProgressBar<br>
{<br>
border:<br>
2px solid grey;<br>
border - radius : 0px;<br>
font:<br>
bold;<br>
text - align : center;<br>
})";<br>
<br>
Seems to confuse cpp with css.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>