~widelands-dev/widelands/bug-1808169-disable-focus

« back to all changes in this revision

Viewing changes to cmake/codecheck/rules/void_parameter_list

  • Committer: qcs
  • Date: 2010-02-05 01:13:20 UTC
  • Revision ID: git-v1:136d6c48811c97ec1f98301726134b0de66f868c
Manual merge of cmake-migration branch to trunk

git-svn-id: https://widelands.svn.sourceforge.net/svnroot/widelands/trunk@5030 37b2a8de-5219-0410-9f54-a31bc463ab9c

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
 
 
4
"""
 
5
This catches some functions that are declared to have no parameters with the
 
6
syntax "some_function(void)".  
 
7
"""
 
8
 
 
9
regexp = """\( *(const)* *void *\)"""
 
10
error_msg = "void f(void) is invalid. Use void f() instead!"
 
11
 
 
12
forbidden = [
 
13
    'void f(void)',
 
14
    'void f(const void)',
 
15
]
 
16
 
 
17
allowed = [
 
18
    "void f()",
 
19
]
 
20
 
 
21
 
 
22