[PATCH] D142981: [clangd] Support include paths relative to .clangd config file
Frederik Magnus Johansen Vestre via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 31 06:43:53 PST 2023
freqmod created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
freqmod requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
This addresses the use case in https://github.com/clangd/clangd/issues/1038 where
a user wants to make a .clangd file that is applicable for several subdirectories with
relative paths to the .clangd file (instead of the individual c-files). It does this by
replacing any occurrances of ${CURRENT_FILE_PATH} with the directory of the .clangd file.
The syntax for the text to be replaced is up for discussion.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142981
Files:
clang-tools-extra/clangd/ConfigFragment.h
clang-tools-extra/clangd/ConfigProvider.cpp
clang-tools-extra/clangd/ConfigYAML.cpp
clang-tools-extra/clangd/unittests/ConfigYAMLTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142981.493597.patch
Type: text/x-patch
Size: 10660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230131/6f774d58/attachment.bin>
More information about the cfe-commits
mailing list