<div dir="ltr">Feel free to file a bug for this on <a href="http://llvm.org/bugs">llvm.org/bugs</a> (component should be the Formatter).<div><br></div><div>I think we are misinterpreting the "inline" as part of the type, which we shouldn't.</div><div><br></div><div>That being said, you might not need "inline" here...</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 12, 2015 at 4:02 PM, Kal <span dir="ltr"><<a href="mailto:b17c0de@gmail.com" target="_blank">b17c0de@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When formatting long return types, newer versions of clang-format seem to do something strange. What used to be formatted like:<br>
<br>
template <typename Ty><br>
inline typename std::enable_if<std::is_floating_point<Ty>::value,<br>
                               Vec2<Ty>>::type<br>
VectorNormalize(const Vec2<Ty>& V) {<br>
<br>
Now gets formatted like:<br>
<br>
template <typename Ty><br>
inline<br>
    typename std::enable_if<std::is_floating_point<Ty>::value, Vec2<Ty>>::type<br>
    VectorNormalize(const Vec2<Ty>& V) {<br>
<br>
It seems strange to have the function name indented like that. Is there an option to control this soft of thing directly? Im using the following options with clang-format 3.6.0:<br>
<br>
---<br>
BasedOnStyle: Chromium<br>
AccessModifierOffset: -2<br>
Standard: Cpp11<br>
BinPackParameters: true<br>
ColumnLimit: 80<br>
IndentWidth: 2<br>
AllowShortFunctionsOnASingleLine: Inline<br>
AlwaysBreakTemplateDeclarations: true<br>
Cpp11BracedListStyle: true<br>
PointerAlignment: Left<br>
SpacesBeforeTrailingComments: 1<br>
...<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">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><br></div>