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

LTGM.



================
Comment at: clangd/index/SymbolYAML.cpp:84
+      return nullptr;
+    return new (*static_cast<llvm::BumpPtrAllocator *>(IO.getContext()))
+        T(std::move(*Opt));
----------------
woo, I learnt new thing here. I'd expect a comment, using placement new with 
the custom allocator  :)


================
Comment at: clangd/index/SymbolYAML.cpp:88
+
+  llvm::Optional<Symbol::Details> Opt;
+};
----------------
The template type should be `T`, I think.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D42059



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to