[PATCH] D96730: [clangd] Modules can have a public API. NFC

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 16 00:11:59 PST 2021


kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.

thanks, lgtm!



================
Comment at: clang-tools-extra/clangd/ClangdServer.h:349
 
+  ModuleSet *Modules;
   const GlobalCompilationDatabase &CDB;
----------------
nit: ` = nullptr`


================
Comment at: clang-tools-extra/clangd/Module.cpp:7
+bool ModuleSet::addImpl(void *Key, std::unique_ptr<Module> M) {
+  if (!Map.try_emplace(Key, M.get()).second)
+    return false;
----------------
should we log/assert?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96730



More information about the cfe-commits mailing list