https://github.com/ArcsinX commented:

If we specify path mapping but haven't copied the index, we'll index the 
project from scratch, and the index will contain non-local paths. Reindexing of 
the project also happens if a user made a mistake in path mappings. I'm not 
sure how expected this behavior is or whether it can be controlled.
Given that we convert paths every time we load/save the index, I'm still 
leaning more toward a solution with a separate conversion tool (if a user 
specifies incorrect path mappings, a tool can return an error; we can keep 
index with local path). In your NFS scenario, this may be worse in terms of 
performance, but it seems relatively uncommon, and perhaps a remote index could 
be used for it (but then it seems that we will need to implement support for 
locally modified files)

https://github.com/llvm/llvm-project/pull/180285
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to