Lines Matching full:files

19 CHECK_GENERATED_FILES = "tests/scripts/check-generated-files.sh"
28 print("Warning: The listed files will be skipped because\n"
36 """Return the names of generated files.
38 We don't reformat generated files, since the result might be different
43 # Parse check-generated-files.sh to get an up-to-date list of
44 # generated files. Read the file rather than calling it so that
47 # This introduces a limitation: check-generated-files.sh must have
48 # the expected format and must list the files explicitly, not through
63 Use git to get a list of the source files.
65 The optional argument since is a commit, indicating to only list files
67 files known to git.
69 Only C files are included, and certain files (generated, or 3rdparty)
75 output = subprocess.check_output(["git", "ls-files"] + file_patterns,
79 # get all files changed in commits since the starting point
83 # and also get all files with uncommitted changes
90 # Don't correct style for third-party files (and, for simplicity,
91 # companion files in the same subtree), or for automatically
92 # generated files (we're correcting the templates instead).
129 # simply diff the 2 files.
147 Run Uncrustify once over the source files.
190 help=('modify source files to fix the code style '
191 '(default: print diff, do not modify files)'))
193 help=('only check files modified since the specified commit'
196 # --subset is almost useless: it only matters if there are no files
197 # ('code_style.py' without arguments checks all files known to Git,
200 # way to restyle a possibly empty set of files.
202 help='only check the specified files (default with non-option arguments)')
204 help='files to check (files MUST be known to git, if none: check all)')
209 # We only check files that are known to git
224 print("Checked {} files, style ok.".format(len(src_files)))