[NFC][Clang][OpenMP] Use switch-case statement to process clauses of atomic directive
authorShilei Tian <tianshilei1992@gmail.com>
Mon, 13 Dec 2021 22:00:22 +0000 (17:00 -0500)
committerShilei Tian <tianshilei1992@gmail.com>
Tue, 14 Dec 2021 00:18:28 +0000 (19:18 -0500)
commitd762c3d905baf18d0f17a24799c9c4517b3c95fa
treeef31a289a70df7563f8ec4861733ca0575f993f4
parent3d510343c4abe155604e36cd0b59fb9c151e59dd
[NFC][Clang][OpenMP] Use switch-case statement to process clauses of atomic directive

This patch makes the process of clauses of atomic directive more clear
and preparation for the support for `atomic compare capture`.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D115586
clang/lib/Sema/SemaOpenMP.cpp