Renaming the option is based on discussions in https://reviews.llvm.org/D101122.
It is normally not a good idea to rename driver flags but this flag is
new enough and obscure enough that it is very unlikely to have adopters.
Paths
| Differential D101491
[ASan] Rename `-fsanitize-address-destructor-kind=` to drop the `-kind` suffix. ClosedPublic Authored by delcypher on Apr 28 2021, 2:32 PM.
Details Summary Renaming the option is based on discussions in https://reviews.llvm.org/D101122. It is normally not a good idea to rename driver flags but this flag is
Diff Detail
Event TimelineComment Actions @jansvoboda11 Should I use the the alias feature so that the old -fsanitize-address-destructor-kind argument is still parsed? I'm not sure if it's worth it but if doing so is very simple and has a low maintenance burden we should probably do it. Comment Actions Thanks!
This revision is now accepted and ready to land.Apr 28 2021, 3:35 PM Comment Actions
I'm fine with omitting the alias if the original flag didn't make it into a release and it's unlikely that downstream TOT users are using it.
Comment Actions
The change that landed this flag originally (5d64dd8e3c22e12e4f7b3d08ffe88fc41e727117) doesn't seem to be in the release/12.x branch. It also wasn't cherry picked to the downstream Apple branches on GitHub. I can't be sure about other downstream users of LLVM but I do think it's very unlikely that anyone adopted this flag. I don't mind adding an alias but I'd need a little guidance on how to do it correctly and also where to add code to emit a warning about the old flag being deprecated.
Comment Actions @jansvoboda11 I'm going to land this patch as is (with your nit fixed). If you would like me to add an alias please follow up with me and I can put up a patch to do that. This revision was landed with ongoing or failed builds.Apr 29 2021, 11:56 AM Closed by commit rG2d42b2ee7baf: [ASan] Rename `-fsanitize-address-destructor-kind=` to drop the `-kind` suffix. (authored by delcypher). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 341597 clang/docs/ClangCommandLineReference.rst
clang/include/clang/Driver/Options.td
clang/lib/Driver/SanitizerArgs.cpp
clang/test/CodeGen/asan-destructor-kind.cpp
clang/test/Driver/darwin-asan-mkernel-kext.c
clang/test/Driver/fsanitize-address-destructor-kind.c
clang/test/Driver/fsanitize-address-destructor.c
|
<arc> here is inconsistent with MetaVarName<"<kind>"