================
@@ -121,6 +121,8 @@ class Dex : public SymbolIndex {
   llvm::DenseMap<std::pair<SymbolID, uint8_t>, std::vector<SymbolID>> 
Relations;
   std::shared_ptr<void> KeepAlive; // poor man's move-only std::any
   // Set of files which were used during this index build.
+  // Files and IdxContents are only populated for dynamic and background
+  // indexes, not static indexes.
----------------
kadircet wrote:

i am not sure if it's worthwhile to encode some state of the users into the 
library here. they're likely to get out-of-sync quickly, and I don't think they 
provide any value to the reader. `Dex` is independent of the concepts such as 
dyanmic/static index.

https://github.com/llvm/llvm-project/pull/118906
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to