-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't think function declarations should have function header comments
Previously we would always checkf for function header comments if we found a function. Now if we find a ; before a { then we assume it is a function declaration, otherwise we assume it is a function implementation and therefore should have the function header comment. This does mean that functions with bodies in header files are going to require a function header comment.
- Loading branch information
1 parent
7374c77
commit d590db4
Showing
3 changed files
with
29 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/*******************************************************************\ | ||
Module: Lint Examples | ||
Author: Thomas Kiley, [email protected] | ||
\*******************************************************************/ | ||
|
||
|
||
|
||
static void fun( | ||
bool param1, | ||
bool param2); | ||
|
||
static void bar(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CORE | ||
main.cpp | ||
|
||
^Total errors found: 0$ | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters