[PATCH] D127641: [clang-cl][MSVC] Enable /Zc:alignedNew for C++17 and /Zc:sizedDealloc by default
Stephen Long via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 14 11:11:50 PDT 2022
steplong added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:6641
// by default.
if (Arg *A = Args.getLastArg(options::OPT_faligned_allocation,
options::OPT_fno_aligned_allocation,
----------------
There's a check here for faligned-allocation, but I wasn't sure how to get the c++ standard here. Also, I couldn't figure a clean way to compare if the standard was c++17 onwards, so I just enabled -faligned-allocation for C++17 above
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127641/new/
https://reviews.llvm.org/D127641
More information about the cfe-commits
mailing list