kadircet added inline comments.

================
Comment at: clang-tools-extra/clangd/ConfigProvider.cpp:124
       std::vector<CompiledFragment> Result;
-      Cache.read(FS, DC, P.FreshTime, Result);
+      Cache.read(FS, DC, P.FreshTime, Fragment::SourceInfo::Absolute, Result);
       return Result;
----------------
sammccall wrote:
> this seems like a surprising place to encode this choice (why is fromYAMLFile 
> coupled to the idea that it's a global config file not associated with any 
> dir?)
It was mostly because the only user of `fromYAMLFile` was user-config provider. 
Would you rather have this as an additional parameter instead?

I can't see any other way of updating that information directly from the user, 
apart from changing the interface of `Provider` to have some sort of 
`setPathSpec` method.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90270

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

Reply via email to