Community
Participate
Working Groups
CDT HEAD: 1. Uncheck Indent Declarations within 'namespace' definition checkbox in Code Style. 2. In C++ editor type "namespace test {" and press Enter. The cursor is positioned one indentation level deeper compared to the namespace. It should be positioned at the same level.
Created attachment 68863 [details] Proposed fix In addition to a fix for the indenting problem I adjusted namespace template to be consistent with the default namespace indenting, which is off. I also took liberty to adjust class template, which has nothing to do with this bug. Please review and apply.
Thanks Sergey. Patch looks good. I'll add a test case.
Patch applied. Created test case CAutoIndentTest.testIndentInsideNamespaceDefinition_Bug188007