From 59226f7811f37533460058a16e6dbf070a2254e9 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Sat, 4 Jan 2014 15:58:28 +0000 Subject: [PATCH] Revert "ToolingTest.cpp: Fix r158592, runToolOnCode.FindsNoTopLevelDeclOnEmptyCode on msvc. LangOpts.MicrosoftExt still appends "class type_info;"." type_info has been made an implicitly predeclared type in r198497 and will no longer appear as a user-declared type so we can remove this old hack. This reverts commit r158595. llvm-svn: 198502 --- clang/unittests/Tooling/ToolingTest.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/clang/unittests/Tooling/ToolingTest.cpp b/clang/unittests/Tooling/ToolingTest.cpp index 2c4a8a7a1565..813dac9fbf83 100644 --- a/clang/unittests/Tooling/ToolingTest.cpp +++ b/clang/unittests/Tooling/ToolingTest.cpp @@ -60,12 +60,7 @@ TEST(runToolOnCode, FindsNoTopLevelDeclOnEmptyCode) { bool FoundTopLevelDecl = false; EXPECT_TRUE(runToolOnCode( new TestAction(new FindTopLevelDeclConsumer(&FoundTopLevelDecl)), "")); -#if !defined(_MSC_VER) EXPECT_FALSE(FoundTopLevelDecl); -#else - // FIXME: LangOpts.MicrosoftExt appends "class type_info;" - EXPECT_TRUE(FoundTopLevelDecl); -#endif } namespace { -- GitLab