[cfe-users] Odd namespace formatting with clang-format

Florian Lindner mailinglists at xgm.de
Sun Apr 5 14:50:12 PDT 2015


I have this piece of code, formatted with clang-format -style llvm:

    namespace NS1 {
  namespace NS2 {}

If I uncomment foo(bar) neither namespace is indented.

Is the intentionally? Why? If not, is a known bug?

clang-format version 3.6.0 (tags/RELEASE_360/final)

Best Regards,

More information about the cfe-users mailing list