[all-commits] [llvm/llvm-project] c755e4: Fix -Wno-error= parsing in clang-format.

fodinabor via All-commits all-commits at lists.llvm.org
Thu Dec 17 13:26:27 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c755e41c336c898873db6c3c58a2819a982f60de
      https://github.com/llvm/llvm-project/commit/c755e41c336c898873db6c3c58a2819a982f60de
  Author: Joachim Meyer <joachim at joameyer.de>
  Date:   2020-12-17 (Thu, 17 Dec 2020)

  Changed paths:
    M clang/docs/ClangFormat.rst
    A clang/test/Format/error-config.cpp
    M clang/tools/clang-format/ClangFormat.cpp

  Log Message:
  -----------
  Fix -Wno-error= parsing in clang-format.

As noted in https://reviews.llvm.org/D86137#2460135 parsing of
the clang-format parameter -Wno-error=unknown fails.
This currently is done by having `-Wno-error=unknown` as an option.
In this patch this is changed to make `-Wno-error=` parse an enum into a bit set.
This way the parsing is fixed and also we can possibly add new options easily.

Reviewed By: MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D93459




More information about the All-commits mailing list