[clang-format] Add option to specify explicit config file
authorMitchell Balan <mitchell@stellarscience.com>
Wed, 11 Mar 2020 19:53:12 +0000 (15:53 -0400)
committerMitchell Balan <mitchell@stellarscience.com>
Wed, 11 Mar 2020 19:56:44 +0000 (15:56 -0400)
commit10b1a87ba35d386b718f0e83c1d750631705b220
tree7e56c870addd248860e1a19c7df2a3164e80a697
parentfae900921b12ea04e43a5d010a094eb6f5c19243
[clang-format] Add option to specify explicit config file
Summary:
This diff extends the -style=file option to allow a config file to be specified explicitly. This is useful (for instance) when adding IDE commands to reformat code to a personal style.

Reviewers: djasper, ioeric, krasimir, MyDeveloperDay

Reviewed by: MyDeveloperDay

Contributed by: tnorth

Subscribers: cfe-commits, lebedev.ri, MyDeveloperDay, klimek, sammccall, mitchell-stellar

Tags: #clang, #clang-format

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