summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-04 15:25:02 +0000
committerAlp Toker <alp@nuanti.com>2014-01-04 15:25:02 +0000
commite1fab52688af31c9ab357616801c4a004660112c (patch)
tree107fb660e9ed806496957c470991e5c20f0d160d /clang/lib/Frontend/InitPreprocessor.cpp
parentef6b007dc5ff1290d48d71736fc5dc0f4c154331 (diff)
downloadbcm5719-llvm-e1fab52688af31c9ab357616801c4a004660112c.tar.gz
bcm5719-llvm-e1fab52688af31c9ab357616801c4a004660112c.zip
Move MS predefined type_info out of InitializePredefinedMacros
Instead of keeping it in amongst the macros, build the declaration at Sema init the same way we do with other predeclared and builtin types. In practice this means the declaration is marked implicit and therefore won't show up as an unwanted user-declared type in tooling which has been a frequently reported issue (though I haven't been able to cook up a test). llvm-svn: 198497
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index c7d25509e59..e475a9ed5ec 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -518,7 +518,6 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
if (LangOpts.CPlusPlus) {
// FIXME: Support Microsoft's __identifier extension in the lexer.
Builder.append("#define __identifier(x) x");
- Builder.append("class type_info;");
}
}
OpenPOWER on IntegriCloud