[all-commits] [llvm/llvm-project] f93aed: Fix diagnostics where _Atomic can't be applied

Richard Trieu via All-commits all-commits at lists.llvm.org
Tue Mar 31 17:33:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f93aed66f22f230213a99205f8bcec975c45d8ba
      https://github.com/llvm/llvm-project/commit/f93aed66f22f230213a99205f8bcec975c45d8ba
  Author: Weverything <rtrieu at google.com>
  Date:   2020-03-31 (Tue, 31 Mar 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/test/SemaCXX/atomic-type.cpp

  Log Message:
  -----------
  Fix diagnostics where _Atomic can't be applied

adb290d97482aa9311ee4b4b5917a0f2ece55b30 added a new case to
err_atomic_specifier_bad_type.  The diagnostic has two %select's
controlled by the same argument, but only the first was updated to have
the new case.  Add the extra case for the second %select and add a
test case that exercises the last case.




More information about the All-commits mailing list