Note that clang-format-9 and above has the option AlignConsecutiveMacros: true , which may help you.
To install clang-format-9 on Ubuntu / Debian you need to check http://apt.llvm.org/ .
For example, if you have Ubuntu 16.04 / xenial, you need to do the following:
sudo sh -c 'echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main" >> /etc/apt/sources.list' sudo sh -c 'echo "deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main" >> /etc/apt/sources.list' sudo apt update sudo apt install clang-format-9
You can handle Trusty / Ubuntu 14.04 in the same way.
takladev
source share