This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Support include paths relative to .clangd config file
Needs ReviewPublic

Authored by freqmod on Jan 31 2023, 6:43 AM.
This revision needs review, but there are no reviewers specified.



This addresses the use case in 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.

Diff Detail

Event Timeline

freqmod created this revision.Jan 31 2023, 6:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2023, 6:43 AM
freqmod requested review of this revision.Jan 31 2023, 6:43 AM
nridge added a subscriber: nridge.Feb 1 2023, 11:34 PM