Lines Matching +full:a +full:- +full:za +full:- +full:z0 +full:- +full:9
1 #!/usr/bin/python -tt
3 # Copyright (C) 2005-2017 Erik de Castro Lopo <erikd@mega-nerd.com>
19 test for correctness. Preprocessing works on a single line at a time but
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
65 # Inside a comment block that does not close on this line.
69 # A comment begins on this line but doesn't close on this line.
75 self.comment_nest -= 1
89 Given a line of C code, return a string where all literal C strings have
96 if line [k] == '"' and line [k - 1] != '\\':
103 A class for checking the whitespace and layout of a C code.
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" )
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 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
244 # Create a new CStyleChecker object
245 if sys.argv [1] == '-d' or sys.argv [1] == '--debug':