From: Christophe de Dinechin <dinechin@xxxxxxxxxx> Changes in v2: - This splits the earlier patch about the style guide into its individual components. This also clarifies the intent of some of the changes in the commit messages. - Fixed typos Christophe de Dinechin (13): Add .clang-format with defaults matching what's specified in the style guide Update copyright date Specify file extensions for C++ and Obj-C Rephrase assertion section Rephrase section about constants Rephrase section on short functions for readability Fix grammatical error Remove confusing example Add mention of fall-through comments Fix indentation in macro example Add mention of header guards Add guidelines about warnings and whitespaces Rewrite the style guide for headers .clang-format | 23 +++++++++++ docs/spice_style.txt | 112 ++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 103 insertions(+), 32 deletions(-) create mode 100644 .clang-format -- 2.13.5 (Apple Git-94) _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel