[clang-format] Add possibility to be based on parent directory
authorBjörn Schäpers <bjoern@hazardy.de>
Fri, 29 Jan 2021 08:29:00 +0000 (09:29 +0100)
committerBjörn Schäpers <bjoern@hazardy.de>
Sun, 14 Feb 2021 18:56:10 +0000 (19:56 +0100)
commit25f753c51e7b17bfca08155c1d777c5667110970
tree946913f0678d693dae4aca302ccecc152a1b1c49
parent08c09bb89fd1f0cf46ea3b31abb194556e4d53ed
[clang-format] Add possibility to be based on parent directory

This allows the define BasedOnStyle: InheritParentConfig and then
clang-format looks into the parent directories for their
.clang-format and takes that as a basis.

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