From: Marc-André Lureau <marcandre.lur...@redhat.com> clang-format is awesome to reflow your code according to qemu coding style in an editor (in the region you modify).
(note: clang-tidy should be able to add missing braces around statements, but I haven't tried it, it's quite recent) Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- .clang-format | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..6422547 --- /dev/null +++ b/.clang-format @@ -0,0 +1,6 @@ +BasedOnStyle: LLVM +IndentWidth: 4 +UseTab: Never +BreakBeforeBraces: Linux +AllowShortIfStatementsOnASingleLine: false +IndentCaseLabels: false -- 2.4.3