[cfe-users] clang-format: C++ attribute specifiers

Jacques Nel via cfe-users cfe-users at lists.llvm.org
Mon Dec 4 17:12:10 PST 2017


I have been unable to find a way to set formatting for C++ attribute
specifiers using clang format.

Here is an example of the desired output:

	[[deprecated("Reason for...")]]
	void foo();

I suspect this is simply a missing feature, at the moment.

I rely heavily on clang-format to enforce my style guide. Any help or
workaround would be greatly appreciated.

Thank you.

Jacques Nel


More information about the cfe-users mailing list