aboutsummaryrefslogtreecommitdiff
path: root/contrib/clang-format
AgeCommit message (Collapse)AuthorFilesLines
2025-01-02Update copyright years.Jakub Jelinek1-1/+1
2024-12-09clang-format AlwaysBreakAfterReturnType to TopLevelDefinitionsMatthew Malcomson1-1/+2
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>
2024-12-06clang-format BraceWrapping.AfterCaseLabel to trueMatthew Malcomson1-0/+1
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>
2024-01-03Update copyright years.Jakub Jelinek1-1/+1
2023-06-03Add more ForEachMacros to clang-format fileLehua Ding1-1/+9
contrib/ * clang-format (ForEachMacros): Add missing cases for EXECUTE_IF_... macros.
2023-01-16Update copyright years.Jakub Jelinek1-1/+1
2022-08-19Add further FOR_EACH_ macrosStefan Schulze Frielinghaus1-0/+63
contrib/ChangeLog: * clang-format: Add further FOR_EACH_ macros.
2020-09-17Autodetect C++ dialect in use for clang-formatDimitrij Mojoski1-1/+1
PR other//97076 * clang-format: Autodetect C++ standard in use rather than forcing C++03.
2019-09-18Tweak clang-format configuration.Martin Liska1-4/+16
2019-09-18 Martin Liska <mliska@suse.cz> * clang-format: Tweak configuration based on new options offered. From-SVN: r275875
2015-11-20clang-format: split content of a list to multiple linesMartin Liska1-1/+84
* clang-format: Split content of a list to multiple lines. From-SVN: r230654
2015-11-19clang-format: Enhance list of FOR_EACH macrosMartin Liska1-1/+1
* clang-format: Enhance list of FOR_EACH macros. From-SVN: r230602
2015-11-19Add clang-format config to contrib folderMartin Liska1-0/+55
* .gitignore: Add .clang-format to ignored files. * Makefile.in: Add clang-format. * Makefile.tpl: Likewise. * clang-format: New file. From-SVN: r230601