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

Egor Zhdan via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 22 10:21:12 PST 2023


================
@@ -756,6 +756,14 @@ void CompilerInstance::createSema(TranslationUnitKind TUKind,
     TheSema->addExternalSource(ExternalSemaSrc.get());
     ExternalSemaSrc->InitializeSema(*TheSema);
   }
+
+  // If we're building a module and are supposed to load API notes,
+  // notify the API notes manager.
+  if (auto currentModule = getPreprocessor().getCurrentModule()) {
----------------
egorzhdan wrote:

Alright, done

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


More information about the cfe-commits mailing list