mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
c294c80214
clang-format (since 10) can output diagnostics which indicate lines needing formatting with --dry-run and -Werror: the exit code indicates if a file is correctly formatted or not. We used to copy each .cpp file, run clang_format on the duplicate and then `cmp` to see if there were changes made, before just printing a line with the filename and moving the new ontop of the original. Now we show clang-format diagnostics which indicate which lines will be changed, prompt for confirmation and then let clang-format modify the files in-place without the juggling. Looks like this: https://user-images.githubusercontent.com/291142/184561633-c16754c8-179e-426b-ba15-345ba65b9cf9.png |
||
---|---|---|
.. | ||
osx_package_resources | ||
osx_package_scripts | ||
cppcheck.rules | ||
cppcheck.sh | ||
cppcheck.suppressions | ||
diff_profiles.fish | ||
extract_help_sections.fish | ||
find_globals.fish | ||
find_weak_odrs.py | ||
fish_xgettext.fish | ||
git_version_gen.sh | ||
iwyu.linux.imp | ||
iwyu.osx.imp | ||
lint.fish | ||
list_committers_since.fish | ||
littlecheck.py | ||
mac_notarize.sh | ||
make_pkg.sh | ||
make_tarball.sh | ||
osx_distribution.xml | ||
pexpect_helper.py | ||
style.fish |