[PATCH] D91747: [Clang] Add __STDCPP_THREADS__ to standard predefine macros
Reid Kleckner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 20 12:31:04 PST 2020
rnk added inline comments.
================
Comment at: clang/test/CXX/cpp/cpp.predefined/p2.cpp:1
+// RUN: %clang_cc1 %s -verify
+// expected-no-diagnostics
----------------
Let's expand on this:
- test that we don't set the macro when compiling C (`-x c`)
- test that we don't set the macro when `-mthread-model single` is passed
Pass an extra macro def on the command line to control the preprocessor test expectations similar to p1.cpp
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91747/new/
https://reviews.llvm.org/D91747
More information about the cfe-commits
mailing list