[clangd] Work around PS4 -fno-exceptions, easier than disabling tests?

This commit is contained in:
Sam McCall 2020-05-28 17:12:43 +02:00
parent 06019e3125
commit 8e325cfc14
1 changed files with 3 additions and 1 deletions

View File

@ -245,7 +245,9 @@ TEST(HighlightsTest, ControlFlow) {
};
for (const char *Test : Tests) {
Annotations T(Test);
auto AST = TestTU::withCode(T.code()).build();
auto TU = TestTU::withCode(T.code());
TU.ExtraArgs.push_back("-fexceptions"); // FIXME: stop testing on PS4.
auto AST = TU.build();
EXPECT_THAT(findDocumentHighlights(AST, T.point()), HighlightsFrom(T))
<< Test;
}