summaryrefslogtreecommitdiff
path: root/unittests/Tooling
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-04 15:58:28 +0000
committerAlp Toker <alp@nuanti.com>2014-01-04 15:58:28 +0000
commit39be08d4687a047f4e5e7ec028e96ec1ee1d4e7c (patch)
tree4cc270f040dfe35b0c843ba4759d893eb73fbd3d /unittests/Tooling
parent933058820ec7d914af0fa027bb302a7694dcf2dd (diff)
downloadclang-39be08d4687a047f4e5e7ec028e96ec1ee1d4e7c.tar.gz
clang-39be08d4687a047f4e5e7ec028e96ec1ee1d4e7c.tar.bz2
clang-39be08d4687a047f4e5e7ec028e96ec1ee1d4e7c.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198502 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Tooling')
-rw-r--r--unittests/Tooling/ToolingTest.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/unittests/Tooling/ToolingTest.cpp b/unittests/Tooling/ToolingTest.cpp
index 2c4a8a7a15..813dac9fbf 100644
--- a/unittests/Tooling/ToolingTest.cpp
+++ b/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 {