[all-commits] [llvm/llvm-project] 6da606: [Clang][Sema] Check unexpected else statement in c...

Shilei Tian via All-commits all-commits at lists.llvm.org
Mon Feb 21 05:20:46 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6da60647cda2fad4d93e359ef3afaea18599b2ba
      https://github.com/llvm/llvm-project/commit/6da60647cda2fad4d93e359ef3afaea18599b2ba
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/OpenMP/atomic_messages.c

  Log Message:
  -----------
  [Clang][Sema] Check unexpected else statement in cond-update-stmt

In 'cond-update-stmt', `else` statement is not expected. This patch adds
the check in Sema.

Reviewed By: ABataev

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




More information about the All-commits mailing list