https://llvm.org/bugs/show_bug.cgi?id=24410
Bug ID: 24410
Summary: Short functions on a single line inside a namespace
Product: clang
Version: 3.6
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
I'm using the latest stable version of clang-format: 3.6.2
Settings:
AllowShortFunctionsOnASingleLine: Inline
NamespaceIndentation: All
Expected formatting of non-inline method:
namespace Test
{
float Foo::bar()
{
return m_bar;
}
}
Observed formatting, the method is incorrectly considered inline:
namespace Test
{
float Foo::bar() { return m_bar; }
}
If I set `NamespaceIndentation: None`, the method is no longer considered
inline:
namespace Test
{
float Foo::bar()
{
return m_bar;
}
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs