Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
The previous value of TopLevel meant that the function name of
declarations would also be on a new line. THis does not match the
current formatting of headers.
Manual testing done on c-common.h.
Also set BraceWrapping.BeforeWhile to true to match the formatting
specified for do/while loops in GNU coding standards.
https://www.gnu.org/prep/standards/standards.html#Formatting
Ok for trunk?
contrib/ChangeLog:
* clang-format: AlwaysBreakAfterReturnType set to
TopLevelDefinitions and BraceWrapping.BeforeWhile set to true.
Signed-off-by: Matthew Malcomson <mmalcomson@nvidia.com>
|
|
This setting seems to better match the indentation that is used in GCC.
Adds an exra level of indentation after braces in a case statement.
Only manual testing done on the switch statements in
c-common.cc:resolve_overloaded_builtin and
alias.cc:record_component_aliases.
Ok for trunk?
contrib/ChangeLog:
* clang-format: Set BraceWrapping.AfterCaseLabel.
Signed-off-by: Matthew Malcomson <mmalcomson@nvidia.com>
|
|
|
|
contrib/
* clang-format (ForEachMacros): Add missing cases
for EXECUTE_IF_... macros.
|
|
|
|
contrib/ChangeLog:
* clang-format: Add further FOR_EACH_ macros.
|
|
PR other//97076
* clang-format: Autodetect C++ standard in use rather than
forcing C++03.
|
|
2019-09-18 Martin Liska <mliska@suse.cz>
* clang-format: Tweak configuration based on new
options offered.
From-SVN: r275875
|
|
* clang-format: Split content of a list to multiple
lines.
From-SVN: r230654
|
|
* clang-format: Enhance list of FOR_EACH macros.
From-SVN: r230602
|
|
* .gitignore: Add .clang-format to ignored files.
* Makefile.in: Add clang-format.
* Makefile.tpl: Likewise.
* clang-format: New file.
From-SVN: r230601
|