From: Christophe de Dinechin <[email protected]>
Changes in v3:
- Integrated clarification regarding headers
- Added external references as a starting point
- Changed [source,h] annotations (unsure if that's accepted)
- Changed brace placement from Allman to Linux in .clang-format
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 (11):
Add .clang-format with defaults matching what's specified in the style
guide
Added External References section
Specify file extensions for C++ and Obj-C
Rephrase assertion section
Rephrase section about constants
Rephrase section on short functions for readability
Remove confusing example
Add mention of fall-through comments
Add mention of header guards
Add guidelines about warnings and whitespaces
Rewrite the style guide for headers
.clang-format | 23 +++++++++
docs/spice_style.txt | 139 ++++++++++++++++++++++++++++++++++++++++-----------
2 files changed, 132 insertions(+), 30 deletions(-)
create mode 100644 .clang-format
--
2.13.5 (Apple Git-94)
_______________________________________________
Spice-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/spice-devel