Author: gclayton
Date: Tue Feb  9 17:25:54 2016
New Revision: 260322

URL: http://llvm.org/viewvc/llvm-project?rev=260322&view=rev
Log:
Added code that was commented out during testing to stops template member 
functions from being added to class definitions (see revision 260308 for 
details).

<rdar://problem/24483905>
<rdar://problem/24508374>


Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp?rev=260322&r1=260321&r2=260322&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp 
(original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp Tue Feb  
9 17:25:54 2016
@@ -1214,11 +1214,11 @@ DWARFASTParserClang::ParseTypeFromDWARF
                     // that may or may not include these member functions and 
this means one class won't match another
                     // class definition and it affects our ability to use a 
class in the clang expression parser. So
                     // for the greater good, we currently must not allow any 
template member functions in a class definition.
-//                    if (is_cxx_method && has_template_params)
-//                    {
-//                        ignore_containing_context = true;
-//                        is_cxx_method = false;
-//                    }
+                    if (is_cxx_method && has_template_params)
+                    {
+                        ignore_containing_context = true;
+                        is_cxx_method = false;
+                    }
 
                     // clang_type will get the function prototype clang type 
after this call
                     clang_type = m_ast.CreateFunctionType (return_clang_type,


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to