summaryrefslogtreecommitdiff
path: root/trunk/ACE/bin/PythonACE/fuzz/inline.py
blob: c981289d105c7895f7a8fda1ae1509a32742ce8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
""" Checks that the C++ inline keyword is not used """

from _types import inline_files
type_list = inline_files

from sys import stderr
import re

regex = re.compile ("(\s|^)+inline\s+")
begin_exclude = re.compile ("FUZZ\: disable check_for_inline")
end_exclude = re.compile ("FUZZ\: enable check_for_inline")

error_message = ": error: contains a C++ inline keyword, instead of ACE_INLINE\n"

from _generic_handler import generic_handler

def handler (file_name, file_content):
    return generic_handler (regex, begin_exclude, end_exclude, error_message, file_name, file_content)