[all-commits] [llvm/llvm-project] 73cf48: [clangd] Expand response files before CDB interpol...
Dmitry Polukhin via All-commits
all-commits at lists.llvm.org
Tue Dec 19 00:26:02 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 73cf485151190fc61bf3cff996fe8ee3eea3a257
https://github.com/llvm/llvm-project/commit/73cf485151190fc61bf3cff996fe8ee3eea3a257
Author: Dmitry Polukhin <34227995+dmpolukhin at users.noreply.github.com>
Date: 2023-12-19 (Tue, 19 Dec 2023)
Changed paths:
M clang-tools-extra/clangd/CompileCommands.cpp
M clang-tools-extra/clangd/CompileCommands.h
M clang-tools-extra/clangd/GlobalCompilationDatabase.cpp
M clang-tools-extra/clangd/unittests/CompileCommandsTests.cpp
M clang-tools-extra/clangd/unittests/GlobalCompilationDatabaseTests.cpp
Log Message:
-----------
[clangd] Expand response files before CDB interpolation (#75753)
Summary:
After https://reviews.llvm.org/D143436 response files stopped working
with CDB interpolation. It has happened because interpolation removes
all unknown flags and extra input files. Response file is treated as an
extra input because it is not a flag. Moreover inference needs full
command line for driver mode and file type detection so all response
files have to be expanded for correct inference.
This patch partially reverts D143436 and add additional response file
expansion in OverlayCDB for CDBs pushed via LSP.
Test Plan: check-clangd
Tasks: https://github.com/llvm/llvm-project/issues/69690
More information about the All-commits
mailing list