Skip to content

clang format namepace versus namespace alias #53390

@davidhunter22

Description

@davidhunter22

clang format does not seem to differentiate between introducing a namespace and a name space alias.
If I have the code

namespace Foo
{
  namespace Bar = Baz;
}

If I have "NamespaceIndentation: None" the namespace Bar = Baz; will have it's indentation removed.

namespace Foo
{
namespace Bar = Baz;
}

It would be nice to control this separately. In particular to treat the indetation of namespace aliases as distinct from introducting a new namespace. So in the above to leave the namespace alias indented even with "NamespaceIndentation: None"

Metadata

Metadata

Labels

clang-formatquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions