This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Config: If.PathExclude
ClosedPublic

Authored by sammccall on Jul 9 2020, 2:33 PM.

Diff Detail

Event Timeline

sammccall created this revision.Jul 9 2020, 2:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 9 2020, 2:33 PM
hokein accepted this revision.Jul 9 2020, 11:14 PM
hokein added inline comments.
clang-tools-extra/clangd/unittests/ConfigCompileTests.cpp
73

IIUC the semantic is: we only process the file if (PathMatch("bar", "b.*") && !PathExclude("bar", ".*r")), PathExclude is true here, so we won't process the file.

This revision is now accepted and ready to land.Jul 9 2020, 11:14 PM
sammccall marked an inline comment as done.Jul 10 2020, 5:17 AM

BTW I'm not planning to add Suffix/SuffixExclude in the immediate future, at least for clangd 11 people will have to use PathMatch: '.*\.h' or so. Sound OK?

clang-tools-extra/clangd/unittests/ConfigCompileTests.cpp
73

Exactly. Added a small message to the assertion to clarify the intent.

sammccall marked an inline comment as done.Jul 10 2020, 5:18 AM
This revision was automatically updated to reflect the committed changes.

BTW I'm not planning to add Suffix/SuffixExclude in the immediate future, at least for clangd 11 people will have to use PathMatch: '.*\.h' or so. Sound OK?

yeah, that sounds good to me.