Skip to content

Commit 48da7e2

Browse files
authored
Fix function comment blocks (#204)
One block was on the wrong function, moved it to the right place, then added a new block on that function with a potential description. Another function had a copy of a different function's block, updated to the right function name and a potential description. Signed-off-by: gregmarr <[email protected]> Signed-off-by: gregmarr <[email protected]>
1 parent 5575ec4 commit 48da7e2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

source/load.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ auto starts_with_whitespace_slash_star_and_no_star_slash(std::string const& line
149149

150150

151151
//---------------------------------------------------------------------------
152-
// starts_with_identifier_colon: returns whether the line starts with an
153-
// identifier followed by one colon (not ::)
152+
// starts_with_operator: returns whether the line starts with the string "operator"
153+
// followed by the symbols of an operator
154154
//
155155
// line current line being processed
156156
//
@@ -224,7 +224,12 @@ auto starts_with_operator(std::string_view s) -> int
224224
return 0;
225225
}
226226

227-
227+
//---------------------------------------------------------------------------
228+
// starts_with_identifier_colon: returns whether the line starts with an
229+
// identifier followed by one colon (not ::)
230+
//
231+
// line current line being processed
232+
//
228233
auto starts_with_identifier_colon(std::string const& line) -> bool
229234
{
230235
auto i = 0;
@@ -395,7 +400,7 @@ class braces_tracker
395400

396401

397402
//---------------------------------------------------------------------------
398-
// starts_with_whitespace_slash_slash: is this a "// comment" line
403+
// starts_with_preprocessor_if_else_endif: the line starts with a preprocessor conditional
399404
//
400405
// line current line being processed
401406
//

0 commit comments

Comments
 (0)