diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-10-13 17:19:00 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-10-13 17:19:00 +0000 |
commit | 9d80a722d7fb1ff9871677e12611af56cb96cf7a (patch) | |
tree | 5de6cf80495240a27cdc3b153f32baca79482958 | |
parent | 8e2561974d98a338bad0a75f981a9b02b672cb5e (diff) | |
download | bcm5719-llvm-9d80a722d7fb1ff9871677e12611af56cb96cf7a.tar.gz bcm5719-llvm-9d80a722d7fb1ff9871677e12611af56cb96cf7a.zip |
Make the last to clangd unit tests pass on Windows.
(Some lit tests still fail.)
See FIXME in diff for details.
Part of PR43592.
llvm-svn: 374727
-rw-r--r-- | clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp b/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp index 129b8c23c64..374dae073e0 100644 --- a/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp +++ b/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp @@ -721,7 +721,10 @@ $insert[[]]namespace ns { } void g() { ns::$[[scope]]::X_Y(); } )cpp"); - auto TU = TestTU::withCode(Test.code()); + TestTU TU; + TU.Code = 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(); @@ -744,7 +747,10 @@ void f() { } } )cpp"); - auto TU = TestTU::withCode(Test.code()); + TestTU TU; + TU.Code = 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\""}}); |