summaryrefslogtreecommitdiffstats
path: root/scripts/fix-multiline-comments.sh
Commit message (Collapse)AuthorAgeFilesLines
* docs: move CODING_STYLE into the developer documentationAlex Bennée2021-02-241-1/+1
| | | | | | | | | | | There is no particular reason to keep this on it's own in the root of the tree. Move it into the rest of the fine developer manual and fixup any links to it. The only tweak I've made is to fix the code-block annotations to mention the language C. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Claudio Fontana <cfontana@suse.de> Message-Id: <20210223095931.16908-1-alex.bennee@linaro.org>
* scripts: add script to convert multiline comments into 4-line formatPaolo Bonzini2019-01-111-0/+62
Since we're adding checkpatch rules to enforce 4-line multiline comment format, i.e. with lone /* and */, this script can be run on existing code so that the comment style does not become inconsistent within a file. The alternative to awk-in-a-shell-script could be Perl, which also supports -i directly, but a2p seems to have bitrotten and I didn't quite feel like writing this twice... Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>