[clang-format] Add PPIndentWidth option
authorGerhard Gappmeier <gerhard.gappmeier@ascolab.com>
Thu, 3 Jun 2021 14:56:56 +0000 (16:56 +0200)
committerBjörn Schäpers <bjoern@hazardy.de>
Thu, 3 Jun 2021 15:55:11 +0000 (17:55 +0200)
commit6f605b8d0bc1c19dccc7a6c248b4fa60e6f7fde3
tree4480c2a13a30642b76776e8c6be859d299e1e1bb
parent3e333cc82e42e1e2ecc974d896489eebe1a5edc2
[clang-format] Add PPIndentWidth option

This allows to set a different indent width for preprocessor statements.

Example:

 #ifdef __linux_
 # define FOO
 #endif

int main(void)
{
    return 0;
}

Differential Revision: https://reviews.llvm.org/D103286
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/UnwrappedLineFormatter.cpp
clang/unittests/Format/FormatTest.cpp