[PATCH] D73457: [Clang] Warn about 'z' printf modifier in old MSVC.
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 27 07:53:21 PST 2020
aaron.ballman added inline comments.
================
Comment at: clang/lib/AST/FormatString.cpp:754
+ LO.isMSCompatibilityVersionSpecified() &&
+ !LO.isCompatibleWithMSVC(LangOptions::MSVC2015)) {
+ // The standard libraries before MSVC2015 didn't support the 'z' length
----------------
I'd rather not see `isMSCompatibilityVersionSpecified()` be introduced, but instead make `isCompatibleWithMSVC()` do the right thing when it's not specified.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73457/new/
https://reviews.llvm.org/D73457
More information about the cfe-commits
mailing list