[all-commits] [llvm/llvm-project] 67d927: [clang-cl] Ignore /Wv and /Wv:17 flags

Tobias Hieta via All-commits all-commits at lists.llvm.org
Thu Mar 24 01:42:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67d9276b16024bae66dfc2fcb739d947637b8c52
      https://github.com/llvm/llvm-project/commit/67d9276b16024bae66dfc2fcb739d947637b8c52
  Author: Tobias Hieta <tobias at hieta.se>
  Date:   2022-03-24 (Thu, 24 Mar 2022)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/test/Driver/cl-options.c

  Log Message:
  -----------
  [clang-cl] Ignore /Wv and /Wv:17 flags

MSVC supports passing /Wv and /Wv:17 to ignore warnings added
since that version. Clang doesn't have a option like this - but
we can ignore this flag instead of error.

MSVC documentation: https://docs.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level

Reviewed By: hans, mstorsjo

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




More information about the All-commits mailing list