[PATCH] D56113: [OpenMP] Replace predetermined shared for const variable

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 4 11:08:41 PST 2019


ABataev added inline comments.


================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:1115
+
+static bool isConstNotMutableType(Sema &SemaRef, ValueDecl *D) {
+  return checkConstNotMutableType(SemaRef, D, /*ReportDiag*/ false,
----------------
I would say it is better to outlined check as a standalone function rather than use `checkConstNotMutableType` for this purpose


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56113/new/

https://reviews.llvm.org/D56113





More information about the cfe-commits mailing list