[clang-tools-extra] [clangd] [C++20] [Modules] Support code complete for C++20 modules (PR #110083)

kadir çetinkaya via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 29 20:21:20 PDT 2024


================
@@ -2122,7 +2125,10 @@ clang::CodeCompleteOptions CodeCompleteOptions::getClangCompleteOpts() const {
   // When an is used, Sema is responsible for completing the main file,
   // the index can provide results from the preamble.
   // Tell Sema not to deserialize the preamble to look for results.
-  Result.LoadExternal = !Index;
+  //
+  // FIXME: If we're using C++20 modules, force the lookup process to load external decls,
+  // since currently the index doesn't support C++20 modules.
----------------
kadircet wrote:

i think this comment belongs to `ClangdMain.cpp` instead.

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


More information about the cfe-commits mailing list