[Clang][OpenMP] Refactor checking for mutually exclusive clauses. NFC.
authorMichael Kruse <llvm-project@meinersbur.de>
Sun, 6 Jun 2021 14:18:59 +0000 (09:18 -0500)
committerMichael Kruse <llvm-project@meinersbur.de>
Sun, 6 Jun 2021 14:49:46 +0000 (09:49 -0500)
commitc41a8fbfbb096995367947e5ef7d36501b04d493
treebfd1bd634ef7aac77ab5e19e71fad0696a1515f7
parentb69e16b5cce6987dd9da3570c1b97e4b7e437d85
[Clang][OpenMP] Refactor checking for mutually exclusive clauses. NFC.

Multiple clauses are mutually exclusive. This patch refactors the functions that check for pairs of mutually exclusive clauses into a generalized function which also also accepts a list of clause types if which at most one can appear.

NFC patch extracted out of D99459 by request.

Reviewed By: ABataev

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