public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1/5] cp-namespace.c cleanup pass: whitespace
@ 2014-12-15  5:54 Doug Evans
  2014-12-17  9:24 ` Doug Evans
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Evans @ 2014-12-15  5:54 UTC (permalink / raw)
  To: gdb-patches

Hi.

Part 1 is just whitespace to get it out of the way.

2014-12-14  Doug Evans  <xdje42@gmail.com>

	* cp-namespace.c: Whitespace cleanup.

diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c
index 06290a7..1c52fa0 100644
--- a/gdb/cp-namespace.c
+++ b/gdb/cp-namespace.c
@@ -95,7 +95,6 @@ cp_scan_for_anonymous_namespaces (const struct symbol *const symbol,
     }
 }
 
-
 /* Add a using directive to using_directives.  If the using directive
    in question has already been added, don't add it twice.
 
@@ -121,7 +120,7 @@ cp_add_using_directive (const char *dest,
 {
   struct using_direct *current;
   struct using_direct *new;
-  
+
   /* Has it already been added?  */
 
   for (current = using_directives; current != NULL; current = current->next)
@@ -227,7 +226,7 @@ lookup_symbol_file (const char *name,
 	 So we only search the current file's global block.  */
 
       const struct block *global_block = block_global_block (block);
-      
+
       if (global_block != NULL)
 	sym = lookup_symbol_in_block (name, global_block, domain);
     }
@@ -388,7 +387,7 @@ cp_lookup_symbol_via_imports (const char *scope,
   if (!declaration_only)
     sym = cp_lookup_symbol_in_namespace (scope, name,
 					 block, domain, 1);
-  
+
   if (sym != NULL)
     return sym;
 
@@ -522,7 +521,7 @@ cp_lookup_symbol_imports_or_template (const char *scope,
       /* Search the function's template parameters.  */
       if (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION (function))
 	{
-	  struct template_symbol *templ 
+	  struct template_symbol *templ
 	    = (struct template_symbol *) function;
 	  struct symbol *result;
 
@@ -581,10 +580,10 @@ cp_lookup_symbol_imports_or_template (const char *scope,
   return cp_lookup_symbol_via_imports (scope, name, block, domain, 1, 1);
 }
 
- /* Searches for NAME in the current namespace, and by applying
-    relevant import statements belonging to BLOCK and its parents.
-    SCOPE is the namespace scope of the context in which the search is
-    being evaluated.  */
+/* Searches for NAME in the current namespace, and by applying
+   relevant import statements belonging to BLOCK and its parents.
+   SCOPE is the namespace scope of the context in which the search is
+   being evaluated.  */
 
 struct symbol*
 cp_lookup_symbol_namespace (const char *scope,
@@ -593,7 +592,7 @@ cp_lookup_symbol_namespace (const char *scope,
                             const domain_enum domain)
 {
   struct symbol *sym;
-  
+
   /* First, try to find the symbol in the given namespace.  */
   sym = cp_lookup_symbol_in_namespace (scope, name,
 				       block, domain, 1);
@@ -736,6 +735,7 @@ find_symbol_in_baseclass (struct type *parent_type, const char *name,
   sym = NULL;
   concatenated_name = NULL;
   cleanup = make_cleanup (free_current_contents, &concatenated_name);
+
   for (i = 0; i < TYPE_N_BASECLASSES (parent_type); ++i)
     {
       size_t len;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/5] cp-namespace.c cleanup pass: whitespace
  2014-12-15  5:54 [PATCH 1/5] cp-namespace.c cleanup pass: whitespace Doug Evans
@ 2014-12-17  9:24 ` Doug Evans
  0 siblings, 0 replies; 2+ messages in thread
From: Doug Evans @ 2014-12-17  9:24 UTC (permalink / raw)
  To: gdb-patches

Doug Evans <xdje42@gmail.com> writes:
> Hi.
>
> Part 1 is just whitespace to get it out of the way.
>
> 2014-12-14  Doug Evans  <xdje42@gmail.com>
>
> 	* cp-namespace.c: Whitespace cleanup.

Hi.
Here is a revised patch for current HEAD.

2014-12-17  Doug Evans  <xdje42@gmail.com>

	* cp-namespace.c: Whitespace cleanup.

diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c
index f17cd69..bcb2275 100644
--- a/gdb/cp-namespace.c
+++ b/gdb/cp-namespace.c
@@ -95,7 +95,6 @@ cp_scan_for_anonymous_namespaces (const struct symbol *const symbol,
     }
 }
 
-
 /* Add a using directive to using_directives.  If the using directive
    in question has already been added, don't add it twice.
 
@@ -121,7 +120,7 @@ cp_add_using_directive (const char *dest,
 {
   struct using_direct *current;
   struct using_direct *new;
-  
+
   /* Has it already been added?  */
 
   for (current = using_directives; current != NULL; current = current->next)
@@ -227,7 +226,7 @@ lookup_symbol_file (const char *name,
 	 So we only search the current file's global block.  */
 
       const struct block *global_block = block_global_block (block);
-      
+
       if (global_block != NULL)
 	sym = lookup_symbol_in_block (name, global_block, domain);
     }
@@ -388,7 +387,7 @@ cp_lookup_symbol_via_imports (const char *scope,
   if (!declaration_only)
     sym = cp_lookup_symbol_in_namespace (scope, name,
 					 block, domain, 1);
-  
+
   if (sym != NULL)
     return sym;
 
@@ -532,7 +531,7 @@ cp_lookup_symbol_imports_or_template (const char *scope,
       /* Search the function's template parameters.  */
       if (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION (function))
 	{
-	  struct template_symbol *templ 
+	  struct template_symbol *templ
 	    = (struct template_symbol *) function;
 
 	  result = search_symbol_list (name,
@@ -613,10 +612,10 @@ cp_lookup_symbol_imports_or_template (const char *scope,
   return result;
 }
 
- /* Searches for NAME in the current namespace, and by applying
-    relevant import statements belonging to BLOCK and its parents.
-    SCOPE is the namespace scope of the context in which the search is
-    being evaluated.  */
+/* Searches for NAME in the current namespace, and by applying
+   relevant import statements belonging to BLOCK and its parents.
+   SCOPE is the namespace scope of the context in which the search is
+   being evaluated.  */
 
 struct symbol*
 cp_lookup_symbol_namespace (const char *scope,
@@ -819,6 +818,7 @@ find_symbol_in_baseclass (struct type *parent_type, const char *name,
   sym = NULL;
   concatenated_name = NULL;
   cleanup = make_cleanup (free_current_contents, &concatenated_name);
+
   for (i = 0; i < TYPE_N_BASECLASSES (parent_type); ++i)
     {
       size_t len;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-17  9:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-15  5:54 [PATCH 1/5] cp-namespace.c cleanup pass: whitespace Doug Evans
2014-12-17  9:24 ` Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).