Menu
  • HOME
  • TAGS

Can clang-format align variable or macro assignments in columns?

c++,c,c++11,clang,clang-format

It looks like 3.7 supports something like this (haven't tested yet). From the docs AlignConsecutiveAssignments (bool) If true, aligns consecutive assignments. This will align the assignment operators of consecutive lines. This will result in formattings like code int aaaa = 12; int b = 23; int ccc = 23; endcode...

Why are my Xcode plugins (such as clang format) installed with Alcatraz no longer working after updating to Xcode 6.3.2?

xcode,updates,clang-format

Oftentimes, the following helps: Re-install Alcatraz, restart Xcode, de-install and re-install your plugin. Sometimes it helps to restart Xcode again. This worked for me. If your plugin still does not show up, the problem is probably that the the compatibility key of your new Xcode is not yet included in...

How to call clang-format over a cpp project folder?

c++,clang,clang-format

What about: clang-format -i -style=WebKit *.cpp in the project folder. The -i option makes it inplace (by default formatted output is written to stdout)....

How can I tell clang-format to follow this convention?

c++,clang-format

Removing BreakBeforeBraces: Allman Seems to do what you want (for me). I'm using SVN clang though. Although you probably wanted it there for a reason. According to the clang-format docs, the AllowShortBlocksOnASingleLine should do exactly what you want (regardless of brace style). This might be a bug in clang-format....