steplong updated this revision to Diff 436860.
steplong added a comment.
Herald added a subscriber: MaskRay.
- Only enable /Zc:alignedNew and /Zc:sizedDealloc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127641/new/
https://reviews.llvm.org/D12764
hans added inline comments.
Comment at: clang/test/Driver/cl-zc.cpp:98
// thread safe statics are off for versions < 19.
// RUN: %clang_cl /c -### -fms-compatibility-version=18 -- %s 2>&1 | FileCheck
-check-prefix=NoThreadSafeStatics %s
// RUN: %clang_cl /Zc:threadSafeInit /Z
steplong updated this revision to Diff 436592.
steplong added a comment.
- Ignore /Zc:wchar_t
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127641/new/
https://reviews.llvm.org/D127641
Files:
clang/include/clang/Driver/Options.td
clang/test/Dr
steplong added reviewers: rnk, hans, thakis.
steplong added a comment.
I'm not sure how to check for `/std:` at this stage to turn on arguments like
`/Zc:alignedNew`
Comment at: clang/test/Driver/cl-zc.cpp:98
// thread safe statics are off for versions < 19.
// RUN: %clang_c
steplong created this revision.
Herald added a project: All.
steplong requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This patch doesn't turn on all the "on by default" /Zc arguments, but
this should be a good enough starting point.
https: