[PATCH] D83511: [clangd] Config: If.PathExclude
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 9 23:14:42 PDT 2020
hokein accepted this revision.
hokein added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang-tools-extra/clangd/unittests/ConfigCompileTests.cpp:73
+ Frag.If.PathMatch.emplace_back("b.*");
+ Frag.If.PathExclude.emplace_back(".*r");
+ EXPECT_FALSE(compileAndApply());
----------------
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.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83511/new/
https://reviews.llvm.org/D83511
More information about the cfe-commits
mailing list