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

Sean Callanan scallanan at apple.com
Thu Oct 28 11:43:33 PDT 2010


Author: spyffe
Date: Thu Oct 28 13:43:33 2010
New Revision: 117573

URL: http://llvm.org/viewvc/llvm-project?rev=117573&view=rev
Log:
Explicatory comment for folks that may not be
familiar with the ownership relationships
involving Diagnostic.

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=117573&r1=117572&r2=117573&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Thu Oct 28 13:43:33 2010
@@ -738,6 +738,7 @@
                            ASTContext *source_context,
                            clang_type_t clang_type)
 {
+    // null_client's ownership is transferred to diagnostics
     NullDiagnosticClient *null_client = new NullDiagnosticClient;
     Diagnostic diagnostics(null_client);
     FileManager file_manager;





More information about the lldb-commits mailing list