[PATCH] D61670: [clang] [MinGW] Add the option -fno-autoimport

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 21 03:34:52 PDT 2023


mstorsjo added inline comments.


================
Comment at: clang/include/clang/Driver/Options.td:1477
+          "automatic dllimport, and enable support for it in the linker. "
+          "Enabled by default.">>;
+} // let Flags = [TargetSpecific]
----------------
I see that most similar `BoolFOption`s for features that are `DefaultTrue` only document the `NegFlag`, which makes only the negative flag show up in `clang --help`. This is probably what one most commonly wants - but I see that the option ends up undocumented in `ClangCommandLineReference.rst` unless it has documentation for the `PosFlag`. So therefore I wrote documentation for both options here, and in a form where the `PosFlag` docs mostly is intended for the generated reference docs.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D61670



More information about the cfe-commits mailing list