[all-commits] [llvm/llvm-project] e9b7fe: [clangd] [Modules] Use ASTReader directly in IsMod...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Wed Oct 30 18:32:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e9b7fe8e5a5819cb632d02529712535ca1b83f02
      https://github.com/llvm/llvm-project/commit/e9b7fe8e5a5819cb632d02529712535ca1b83f02
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-10-31 (Thu, 31 Oct 2024)

  Changed paths:
    M clang-tools-extra/clangd/ModulesBuilder.cpp

  Log Message:
  -----------
  [clangd] [Modules] Use ASTReader directly in IsModuleFileUpToDate (#113879)

@kadircet mentioned in
https://github.com/llvm/llvm-project/commit/448d8fa880be5cae0f63c3b248f07f647013a5a4#diff-fb3ba8a781117ff04736f951a274812cb7ad1678f9d71d4d91870b711ab45da0L285
that:

> this is definitely a functional change, clangd is used in environments
that solely relies on VFS, and doesn't depend on ASTUnit at all.

> right now this is both introducing a dependency on ASTUnit, and making
all the logical IO physical instead. can you instead use the regular
compiler utilities in clangd, and get the astreader from
CompilerInstance directly, which is VFS-aware, and doesn't depend on
ASTUnit ?

This tries to resolve the problem by creating ASTReader directly and use
VFS to create the FileManager.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list