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.
Usage:
clang-format -style=file:<configfilepath> ...
Differential D33560
[clang-format] Add option to specify explicit config file gigadude on May 25 2017, 12:18 PM. Authored by
Details
Diff Detail Event Timeline
Comment Actions @alexfh do you mean to the clang-format-test.el file (which I don't know how to run) or to the FormatTests? If the latter would the right place be TEST(FormatStyle, GetStyleOfFile)? Comment Actions The patch has "Context not available" issue (i.e. I couldn't expand to see code around the changes). Could you re-upload the diff?
Comment Actions Please re-upload the patch with the full context (see http://llvm.org/docs/Phabricator.html).
|
Could you also update the comment in include/clang/Format/Format.h?