[PATCH] D125088: [clangd] Add parsing for IgnoreHeaders config option
Kirill Bobyrev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 6 07:06:28 PDT 2022
kbobyrev added inline comments.
================
Comment at: clang-tools-extra/clangd/unittests/ConfigYAMLTests.cpp:259
+ Fragment::parseYAML(YAML.code(), "config.yaml", Diags.callback());
+ ASSERT_THAT(Diags.Diagnostics, IsEmpty());
+ ASSERT_EQ(Results.size(), 1u);
----------------
A
================
Comment at: clang-tools-extra/clangd/unittests/ConfigYAMLTests.cpp:261
+ ASSERT_EQ(Results.size(), 1u);
+ EXPECT_THAT(Results[0].Diagnostics.Includes.IgnoreHeader,
+ ElementsAre(val("foo"), val("bar")));
----------------
nit: maybe `Results.front()` but up to you
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125088/new/
https://reviews.llvm.org/D125088
More information about the cfe-commits
mailing list