Did a lot of code cleanup.

Fixed the DWARF plug-in such that when it gets all attributes for a DIE, that
it omits the DW_AT_sibling and DW_AT_declaration when getting attributes
from a DW_AT_abstract_origin or DW_AT_specification DIE.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@118654 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionDeclMap.cpp b/source/Expression/ClangExpressionDeclMap.cpp
index 224fbac..aa7d458 100644
--- a/source/Expression/ClangExpressionDeclMap.cpp
+++ b/source/Expression/ClangExpressionDeclMap.cpp
@@ -301,15 +301,15 @@
     if (m_exe_ctx.frame == NULL)
         return false;
 
-    SymbolContextList sym_ctxs;
+    SymbolContextList sc_list;
     
-    m_sym_ctx.FindFunctionsByName(name, false, sym_ctxs);
+    m_sym_ctx.FindFunctionsByName(name, false, sc_list);
     
-    if (!sym_ctxs.GetSize())
+    if (!sc_list.GetSize())
         return false;
     
     SymbolContext sym_ctx;
-    sym_ctxs.GetContextAtIndex(0, sym_ctx);
+    sc_list.GetContextAtIndex(0, sym_ctx);
     
     const Address *fun_address;
     
@@ -955,11 +955,7 @@
 
 // Interface for ClangASTSource
 void 
-ClangExpressionDeclMap::GetDecls 
-(
-    NameSearchContext &context,
-    const ConstString &name
-)
+ClangExpressionDeclMap::GetDecls (NameSearchContext &context, const ConstString &name)
 {
     lldb::LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
         
@@ -970,7 +966,7 @@
     if (m_exe_ctx.frame == NULL)
         return;
         
-    SymbolContextList sym_ctxs;
+    SymbolContextList sc_list;
     
     // Only look for functions by name out in our symbols if the function 
     // doesn't start with our phony prefix of '$'
@@ -986,18 +982,18 @@
         }
         else
         {
-            m_sym_ctx.FindFunctionsByName (name, false, sym_ctxs);
+            m_sym_ctx.FindFunctionsByName (name, false, sc_list);
         
             bool found_specific = false;
             Symbol *generic_symbol = NULL;
             Symbol *non_extern_symbol = NULL;
             
-            for (uint32_t index = 0, num_indices = sym_ctxs.GetSize();
+            for (uint32_t index = 0, num_indices = sc_list.GetSize();
                  index < num_indices;
                  ++index)
             {
                 SymbolContext sym_ctx;
-                sym_ctxs.GetContextAtIndex(index, sym_ctx);
+                sc_list.GetContextAtIndex(index, sym_ctx);
 
                 if (sym_ctx.function)
                 {