[all-commits] [llvm/llvm-project] 28d297: [-fms-extensions] Make some exception specificatio...

Amy Huang via All-commits all-commits at lists.llvm.org
Fri Jan 7 14:42:39 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 28d2977ff236dffa2a955714aee86e798ca9acd9
      https://github.com/llvm/llvm-project/commit/28d2977ff236dffa2a955714aee86e798ca9acd9
  Author: Amy Huang <akhuang at google.com>
  Date:   2022-01-07 (Fri, 07 Jan 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaExceptionSpec.cpp
    M clang/test/SemaCXX/MicrosoftCompatibility.cpp

  Log Message:
  -----------
  [-fms-extensions] Make some exception specification warnings/errors compatible with what cl.exe does

Make clang-cl error when a function definition is missing 'noexcept',
and succeed without warnings when missing '__declspec(nothrow)' or 'throw'.

Fixes pr52860

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




More information about the All-commits mailing list