[PATCH] D125142: [clang][auto-init] Deprecate -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 30 13:52:56 PDT 2022


nickdesaulniers added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:3464-3465
+      D.Diag(diag::warn_ignored_clang_option)
+          << "-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-"
+             "from-clang";
     CmdArgs.push_back(
----------------
Rather than open code the string, I wonder if we can use `getLastArg` + `A->getAsString(Args)`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125142



More information about the cfe-commits mailing list