[clang-tools-extra] [clangd] Use TargetOpts from preamble when building ASTs (PR #88381)

kadir çetinkaya via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 18 00:38:03 PDT 2024


================
@@ -112,7 +112,10 @@ struct UpdateIndexCallbacks : public ParsingCallbacks {
                  // Index outlives TUScheduler (declared first)
                  FIndex(FIndex),
                  // shared_ptr extends lifetime
-                 Stdlib(Stdlib)]() mutable {
+                 Stdlib(Stdlib),
+                 // We have some FS implementations that rely on infomration in
+                 // the context.
+                 Ctx(Context::current().clone())]() mutable {
----------------
kadircet wrote:

oops that shouldn't be here, commit from a different branch messed things up. (FWIW, it's part of https://github.com/llvm/llvm-project/pull/87611)

https://github.com/llvm/llvm-project/pull/88381


More information about the cfe-commits mailing list