"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tools/matchcompiler.py" between
cppcheck-1.86.tar.gz and cppcheck-1.87.tar.gz

About: Cppcheck is a static analysis tool for C/C++ code. It checks for memory leaks, mismatching allocation-deallocation, buffer overrun, and many more.

matchcompiler.py  (cppcheck-1.86):matchcompiler.py  (cppcheck-1.87)
#!/usr/bin/env python #!/usr/bin/env python
# #
# Cppcheck - A tool for static C/C++ code analysis # Cppcheck - A tool for static C/C++ code analysis
# Copyright (C) 2007-2018 Cppcheck team. # Copyright (C) 2007-2019 Cppcheck team.
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
skipping to change at line 660 skipping to change at line 660
help='show skipped (non-static) patterns') help='show skipped (non-static) patterns')
parser.add_argument('--read-dir', default="lib", parser.add_argument('--read-dir', default="lib",
help='directory from which files are read') help='directory from which files are read')
parser.add_argument('--write-dir', default="build", parser.add_argument('--write-dir', default="build",
help='directory into which files are written') help='directory into which files are written')
parser.add_argument('--prefix', default="", parser.add_argument('--prefix', default="",
help='prefix for build files') help='prefix for build files')
parser.add_argument('--line', action='store_true', default=False, parser.add_argument('--line', action='store_true', default=False,
help='add line directive to input files into build files ') help='add line directive to input files into build files ')
parser.add_argument('file', nargs='*', parser.add_argument('file', nargs='*',
help='file to complile') help='file to compile')
args = parser.parse_args() args = parser.parse_args()
lib_dir = args.read_dir lib_dir = args.read_dir
build_dir = args.write_dir build_dir = args.write_dir
line_directive = args.line line_directive = args.line
files = args.file files = args.file
# Check if we are invoked from the right place # Check if we are invoked from the right place
if not os.path.exists(lib_dir): if not os.path.exists(lib_dir):
print('Directory "' + lib_dir + '"not found.') print('Directory "' + lib_dir + '"not found.')
sys.exit(-1) sys.exit(-1)
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)