[clang] [APINotes] Upstream Driver and Frontend options that enable API Notes (PR #73120)

Egor Zhdan via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 23 09:01:34 PST 2023


================
@@ -6720,6 +6720,17 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
   Args.addOptOutFlag(CmdArgs, options::OPT_fassume_sane_operator_new,
                      options::OPT_fno_assume_sane_operator_new);
 
+  if (Args.hasFlag(options::OPT_fapinotes, options::OPT_fno_apinotes, false) ||
+      Args.hasArg(options::OPT_iapinotes_modules)) {
----------------
egorzhdan wrote:

That's a good point, we don't actually need the outer check here. I removed it.

https://github.com/llvm/llvm-project/pull/73120


More information about the cfe-commits mailing list