[PATCH] D86137: Add ignore-unknown-options flag to clang-format.
Joachim Meyer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 18 05:57:26 PDT 2020
fodinabor created this revision.
fodinabor added reviewers: bkramer, djasper, klimek.
Herald added subscribers: llvm-commits, cfe-commits, hiraditya.
Herald added projects: clang, LLVM.
fodinabor requested review of this revision.
Currently newer clang-format options cannot be included in .clang-format files, if not all users can be forced to use an updated version.
This patch tries to solve this by adding an option to clang-format, enabling to ignore unknown (newer) options.
As this is my first LLVM patch, I'm expecting to get some things wrong and are happy to receive any feedback!
E.g.: I haven't found how to update the clang-format help page yet. Is it auto generated?
Also if you have any suggestions on whom to ask wrt review, please add them.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D86137
Files:
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/tools/clang-format/ClangFormat.cpp
llvm/include/llvm/Support/YAMLTraits.h
llvm/lib/Support/YAMLTraits.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86137.286263.patch
Type: text/x-patch
Size: 7797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200818/da2d7c12/attachment.bin>
More information about the llvm-commits
mailing list