Skip to content

Commit

Permalink
[clangd] Restore -fno-ms-compatibility to tests
Browse files Browse the repository at this point in the history
Turns out these weren't obsolete after all...
http://45.33.8.238/win/50653/step_9.txt
  • Loading branch information
sam-mccall committed Dec 11, 2021
1 parent 8d897ec commit 1a68c14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
Expand Up @@ -1084,6 +1084,8 @@ void g() { ns::$[[scope]]::X_Y(); }
)cpp");
TestTU TU;
TU.Code = std::string(Test.code());
// FIXME: Figure out why this is needed and remove it, PR43662.
TU.ExtraArgs.push_back("-fno-ms-compatibility");
auto Index = buildIndexWithSymbol(
SymbolWithHeader{"ns::scope::X_Y", "unittest:///x.h", "\"x.h\""});
TU.ExternalIndex = Index.get();
Expand All @@ -1109,6 +1111,8 @@ void f() {
)cpp");
TestTU TU;
TU.Code = std::string(Test.code());
// FIXME: Figure out why this is needed and remove it, PR43662.
TU.ExtraArgs.push_back("-fno-ms-compatibility");
auto Index = buildIndexWithSymbol(
{SymbolWithHeader{"clang::clangd::X", "unittest:///x.h", "\"x.h\""},
SymbolWithHeader{"clang::clangd::ns::Y", "unittest:///y.h", "\"y.h\""}});
Expand Down

0 comments on commit 1a68c14

Please sign in to comment.