diff options
author | Alp Toker <alp@nuanti.com> | 2014-01-04 15:25:02 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-01-04 15:25:02 +0000 |
commit | e1fab52688af31c9ab357616801c4a004660112c (patch) | |
tree | 107fb660e9ed806496957c470991e5c20f0d160d /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | ef6b007dc5ff1290d48d71736fc5dc0f4c154331 (diff) | |
download | bcm5719-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.cpp | 1 |
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;"); } } |