[all-commits] [llvm/llvm-project] f64903: Add -Wno-error=unknown flag to clang-format.

fodinabor via All-commits all-commits at lists.llvm.org
Sat Sep 19 01:18:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f64903fd81764f1fde7aeb00eea5e1d488458f63
      https://github.com/llvm/llvm-project/commit/f64903fd81764f1fde7aeb00eea5e1d488458f63
  Author: Joachim Meyer <joachim at joameyer.de>
  Date:   2020-09-19 (Sat, 19 Sep 2020)

  Changed paths:
    M clang/docs/ClangFormat.rst
    M clang/include/clang/Format/Format.h
    M clang/lib/Format/Format.cpp
    M clang/tools/clang-format/ClangFormat.cpp
    M clang/unittests/Format/FormatTest.cpp
    M llvm/include/llvm/Support/YAMLParser.h
    M llvm/include/llvm/Support/YAMLTraits.h
    M llvm/lib/Support/YAMLParser.cpp
    M llvm/lib/Support/YAMLTraits.cpp
    M llvm/unittests/ObjectYAML/YAMLTest.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list