From e1fab52688af31c9ab357616801c4a004660112c Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Sat, 4 Jan 2014 15:25:02 +0000 Subject: 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 --- clang/lib/Frontend/InitPreprocessor.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'clang/lib/Frontend/InitPreprocessor.cpp') 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;"); } } -- cgit v1.2.3