[Lldb-commits] [lldb] r144982 - /lldb/trunk/source/Symbol/ClangASTContext.cpp

Sean Callanan scallanan at apple.com
Fri Nov 18 17:35:08 PST 2011


Author: spyffe
Date: Fri Nov 18 19:35:08 2011
New Revision: 144982

URL: http://llvm.org/viewvc/llvm-project?rev=144982&view=rev
Log:
Ensure that the empty RecordDecl generated for
templates is properly complete (though still
empty).

Modified:
    lldb/trunk/source/Symbol/ClangASTContext.cpp

Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=144982&r1=144981&r2=144982&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Fri Nov 18 19:35:08 2011
@@ -1196,8 +1196,12 @@
                                                               SourceLocation(),
                                                               SourceLocation(),
                                                               &identifier_info);
-            
-            
+    
+    // With templated classes, we say that a class is templated with
+    // specializations, but that the bare class has no functions.
+    template_cxx_decl->startDefinition();
+    template_cxx_decl->completeDefinition();
+    
     class_template_decl = ClassTemplateDecl::Create (*ast,
                                                      decl_ctx,  // What decl context do we use here? TU? The actual decl context?
                                                      SourceLocation(),





More information about the lldb-commits mailing list