p-clang-format icon indicating copy to clipboard operation
p-clang-format copied to clipboard

Only usable with -i, no stdout handling

Open lahwaacz opened this issue 2 years ago • 0 comments

The wrapper only works when the user passes -i to clang-format to do in-place formatting. Otherwise, clang-format takes the file (where p-clang-format commented out the pragmas) and prints the formatted source to stdout. Then, p-clang-format changes the file (unmodified by clang-format) to its original state and pragmas stay commented out in the stdout.

lahwaacz avatar Dec 27 '21 07:12 lahwaacz