core: formatting & comment
authorNathan Sidwell <nathan@acm.org>
Tue, 14 Jul 2020 13:08:44 +0000 (06:08 -0700)
committerNathan Sidwell <nathan@acm.org>
Tue, 14 Jul 2020 13:29:12 +0000 (06:29 -0700)
One of hash_map's getters returns a pointer to T or null, The comment
said it returned T or null.  Also an unaligned pair of comments.

gcc/
* hash-map.h (hash_map::get): Note it is a pointer to value.
* incpath.h (incpath_kind): Align comments.

gcc/hash-map.h
gcc/incpath.h

index 5b8fd18..6bf3dc6 100644 (file)
@@ -177,7 +177,8 @@ public:
       return !ins;
     }
 
-  /* if the passed in key is in the map return its value otherwise NULL.  */
+  /* If the passed in key is in the map return pointer to its value
+     otherwise NULL.  */
 
   Value *get (const Key &k)
     {
index fe48194..c647081 100644 (file)
@@ -22,8 +22,8 @@
 enum incpath_kind {
   INC_QUOTE = 0, /* include "foo" */
   INC_BRACKET,   /* include <foo> */
-  INC_SYSTEM,    /* sysinclude */
-  INC_AFTER,   /* post-sysinclude.  */
+  INC_SYSTEM,    /* sys-include */
+  INC_AFTER,    /* post-sysinclude  */
   INC_MAX
 };