Skip to content

Commit

Permalink
STYLE: Make prototype match definition names
Browse files Browse the repository at this point in the history
Enforce consistency in large projects, where it often happens that a definition
of function is refactored, changing the parameter names, but its declaration in
header file is not updated. With this check, we can easily find and correct
such inconsistencies, keeping declaration and definition always in sync.

Unnamed parameters are allowed and are not taken into account when comparing
function declarations
  • Loading branch information
hjmjohnson committed Feb 19, 2020
1 parent 91a8243 commit 33689ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/itkBioGene.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class BioCell_EXPORT Gene
virtual ~Gene();

void
Copy(const Gene & genome);
Copy(const Gene & gene);

/** Set/Get the name of the gene. This uses a std::string type. */
void
Expand Down
2 changes: 1 addition & 1 deletion include/itkBioGeneNetwork.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class BioCell_EXPORT GeneNetwork
virtual ~GeneNetwork();

void
Copy(const GeneNetwork & genome);
Copy(const GeneNetwork & geneNetwork);

private:
// This array contains the concentrations of each protein
Expand Down

0 comments on commit 33689ef

Please sign in to comment.