From bf567bb3b3cb43e299e947bbdfa00da416de0890 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 14 Jul 2020 06:08:44 -0700 Subject: [PATCH] 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. --- gcc/hash-map.h | 3 ++- gcc/incpath.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gcc/hash-map.h b/gcc/hash-map.h index 5b8fd184e32..6bf3dc64816 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 fe48194dab7..c647081630c 100644 --- a/gcc/incpath.h +++ b/gcc/incpath.h @@ -22,8 +22,8 @@ enum incpath_kind { INC_QUOTE = 0, /* include "foo" */ INC_BRACKET, /* include */ - INC_SYSTEM, /* sysinclude */ - INC_AFTER, /* post-sysinclude. */ + INC_SYSTEM, /* sys-include */ + INC_AFTER, /* post-sysinclude */ INC_MAX }; -- 2.30.2