[PATCH] D116261: [Clang][OpenMP] Add support for compare capture in parser
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 9 07:37:14 PST 2022
ABataev added inline comments.
================
Comment at: clang/lib/AST/OpenMPClause.cpp:1804
+void OMPClausePrinter::VisitOMPCompareCaptureClause(OMPCompareCaptureClause *) {
+ // Do nothing as it is dummy.
+}
----------------
tianshilei1992 wrote:
> ABataev wrote:
> > Output?
> I did it on purpose because `OMPCompareCaptureClause` is a dummy node. When it is visited (I really doubt if it can be visited because we don't create it explicitly), it should not output any thing. `compare` and `capture` are printed when visiting the two clauses.
Why? I see ActOnOpenMPCompareCaptureClause, which creates such nodes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116261/new/
https://reviews.llvm.org/D116261
More information about the cfe-commits
mailing list