[all-commits] [llvm/llvm-project] 439c28: [clangd] Make clangd-indexer respect .clangd confi...

Denis via All-commits all-commits at lists.llvm.org
Fri Oct 2 15:34:01 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 439c28996aae50467c2c1e18e10b901e33ddf279
      https://github.com/llvm/llvm-project/commit/439c28996aae50467c2c1e18e10b901e33ddf279
  Author: Denis <ffil.denn at gmail.com>
  Date:   2026-10-02 (Fri, 02 Oct 2026)

  Changed paths:
    M clang-tools-extra/clangd/ClangdLSPServer.cpp
    M clang-tools-extra/clangd/ClangdLSPServer.h
    M clang-tools-extra/clangd/ConfigProvider.cpp
    M clang-tools-extra/clangd/ConfigProvider.h
    M clang-tools-extra/clangd/fuzzer/clangd-fuzzer.cpp
    M clang-tools-extra/clangd/indexer/IndexerMain.cpp
    A clang-tools-extra/clangd/test/indexer-clangd-config-relative-path.test
    A clang-tools-extra/clangd/test/indexer-clangd-config.test
    M clang-tools-extra/clangd/tool/Check.cpp
    M clang-tools-extra/clangd/tool/ClangdMain.cpp
    M clang-tools-extra/clangd/unittests/ClangdLSPServerTests.cpp
    M clang-tools-extra/clangd/unittests/ConfigProviderTests.cpp

  Log Message:
  -----------
  [clangd] Make clangd-indexer respect .clangd configuration files (#214951)

This support is currently behind an `--enable-config` flag which is
off by default.

The implementation reuses clangd's existing machinery where
appropriate, such as for loading config files, and for applying their
contents to the correct source files based on the config file's
location and any `If` clauses.

Due to limitations in the libTooling interfaces used in clangd-indexer's
implementation, configuration is currently only applied to source
files whose path is specified as an absolute path in the compilation
database.

Related discourse topic: https://discourse.llvm.org/t/honor-clangd-compileflags-overrides-in-clangd-indexer/91504



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