Add -Wno-error=unknown flag to clang-format.
authorJoachim Meyer <joachim@joameyer.de>
Tue, 18 Aug 2020 12:33:34 +0000 (14:33 +0200)
committerJoachim Meyer <joachim@joameyer.de>
Sat, 19 Sep 2020 08:17:57 +0000 (10:17 +0200)
commitf64903fd81764f1fde7aeb00eea5e1d488458f63
tree8c44563e8baf8bce6492591127e962ea1b4ad411
parentecf98246bd92aa5e42c66cb1d48793ffadbabb3c
Add -Wno-error=unknown flag to clang-format.

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.

Differential Revision: https://reviews.llvm.org/D86137
clang/docs/ClangFormat.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/tools/clang-format/ClangFormat.cpp
clang/unittests/Format/FormatTest.cpp
llvm/include/llvm/Support/YAMLParser.h
llvm/include/llvm/Support/YAMLTraits.h
llvm/lib/Support/YAMLParser.cpp
llvm/lib/Support/YAMLTraits.cpp
llvm/unittests/ObjectYAML/YAMLTest.cpp