diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-07-14 06:08:44 -0700 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-07-14 06:29:12 -0700 |
commit | bf567bb3b3cb43e299e947bbdfa00da416de0890 (patch) | |
tree | 1cbec6e68933fb3df8088ceb2496fc2e2200c697 | |
parent | 31dbaab57fef485412a0369a222b9c252ad2713b (diff) | |
download | gcc-bf567bb3b3cb43e299e947bbdfa00da416de0890.zip gcc-bf567bb3b3cb43e299e947bbdfa00da416de0890.tar.gz gcc-bf567bb3b3cb43e299e947bbdfa00da416de0890.tar.bz2 |
core: formatting & comment
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.
-rw-r--r-- | gcc/hash-map.h | 3 | ||||
-rw-r--r-- | gcc/incpath.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gcc/hash-map.h b/gcc/hash-map.h index 5b8fd18..6bf3dc6 100644 --- a/gcc/hash-map.h +++ b/gcc/hash-map.h @@ -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) { diff --git a/gcc/incpath.h b/gcc/incpath.h index fe48194..c6470816 100644 --- a/gcc/incpath.h +++ b/gcc/incpath.h @@ -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 }; |