emacs with c++-mode and indentation

4 weeks ago 15
ARTICLE AD BOX

I have problems with the indentation where I am using keywords like export in combination with namespace.

export namespace foo::bar { // indentation is wrong }

when the export keyword is one line above everything works fine.

export namespace foo::bar { // indentation as expected }

My emacs is in version 29.3 and uses C++-mode as major mode. Any idea how to fix it?

Read Entire Article