• Home
  • Raw
  • Download

Lines Matching +full:run +full:- +full:checker

1 #!/usr/bin/python -tt
3 # Copyright (C) 2005-2017 Erik de Castro Lopo <erikd@mega-nerd.com>
9 libsndfile and other projects I run.
20 maintains state between consecutive lines so it can preprocessess multi-line
23 - Strip C++ style comments from a line.
24 - Strip C comments from a series of lines. When a C comment starts and
26 - Replace arbitrary C strings with the zero length string.
27 - Replace '#define f(x)' with '#define f (c)' (The C #define requires that
36 self.define_hack_re = re.compile ("(#\s*define\s+[a-zA-Z0-9_]+)\(")
48 Strip the provided line of C and C++ comments. Stripping of multi-line
75 self.comment_nest -= 1
96 if line [k] == '"' and line [k - 1] != '\\':
118 , ( re.compile ("[^ ];"), "missing space before semi-colon" )
124 , ( re.compile (";[^\s]"), "missing space after semi-colon" )
129 , ( re.compile ("\)(-[^>]|[^,'\s\n\)\]-])"), "missing space after close parenthesis" )
136 , ( re.compile ("\][^,\)\]\[\s\.-]"), "missing space after close square brace" )
141 , ( re.compile ("[^\s][\*/%+-][=][^\s]"), "missing space around opassign" )
145 , ( re.compile ("\s+return\s+\([a-zA-Z0-9_]+\)\s+;"), "parens around return value" )
148 , ( re.compile ("\s+case\s+\([a-zA-Z0-9_]+\)\s+:"), "parens around single case argument" )
154 , ( re.compile ("[^\(\[][+-]{2}[a-zA-Z0-9_]"), "space after pre increment/decrement" )
155 , ( re.compile ("[a-zA-Z0-9_][+-]{2}[^\)\,]]"), "space before post increment/decrement" )
166 Run the style checker on all the specified files.
173 Run the style checker on the specified file.
205 Run the style checker on provided line of text, but within the context
222 if re.search ("[a-zA-Z0-9][<>!=^/&\|]{1,2}[a-zA-Z0-9]", line):
223 if not re.search (".*#include.*[a-zA-Z0-9]/[a-zA-Z]", line):
238 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
245 if sys.argv [1] == '-d' or sys.argv [1] == '--debug':