summaryrefslogtreecommitdiff
path: root/ACE/bin/PythonACE/fuzz/inline.py
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2008-03-04 14:51:23 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2008-03-04 14:51:23 +0000
commit99aa8c60282c7b8072eb35eb9ac815702f5bf586 (patch)
treebda96bf8c3a4c2875a083d7b16720533c8ffeaf4 /ACE/bin/PythonACE/fuzz/inline.py
parentc4078c377d74290ebe4e66da0b4975da91732376 (diff)
downloadATCD-99aa8c60282c7b8072eb35eb9ac815702f5bf586.tar.gz
undoing accidental deletion
Diffstat (limited to 'ACE/bin/PythonACE/fuzz/inline.py')
-rw-r--r--ACE/bin/PythonACE/fuzz/inline.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/ACE/bin/PythonACE/fuzz/inline.py b/ACE/bin/PythonACE/fuzz/inline.py
new file mode 100644
index 00000000000..c981289d105
--- /dev/null
+++ b/ACE/bin/PythonACE/fuzz/inline.py
@@ -0,0 +1,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)
+