aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/clang-format.cmake
AgeCommit message (Collapse)Author
2022-08-08Revert "clang-format.cmake: don't change spaces after '//' in code comments"Ahmad Samir
This reverts commit 178c4dfbf4eb5ad7c5aef4838f190f717f97766f. Instead of creating an MR, I forgot I was on master... GIT_SILENT
2022-08-08clang-format.cmake: don't change spaces after '//' in code commentsAhmad Samir
For example, if you have: //This is a comment now clang-format won't change it to: // This is a comment We're mainly interested in formatting the code, not the comments, so that cuts down on some noise when running clang-format. CCBUG: 456819
2021-10-25Revert "clang-format.cmake: Disable formatting for json files"v5.88.0-rc1v5.88.0Alexander Lohnau
This breaks older clang-format version :/ This reverts commit 81f70c9639154dcd067d73b0620767d8ba0362cf.
2021-10-24clang-format.cmake: Disable formatting for json filesAlexander Lohnau
This is only supported in the latest clang-format version. Having formatting enabled would cause it to complain about no rules being set for json files.
2021-09-20clang-format: extend ForeachMacrosDavid Edmundson
wl_resource_for_each_safe is used in kwayland-server, and as the name suggests is a for-each like function.
2021-07-13Fix typos found by codespellChristophe Giboudeaux
GIT_SILENT
2021-04-20clang-format: Add links to clang-format docs and coding style wikiAlexander Lohnau
2021-04-17Add link to clang-format options documentationAhmad Samir
2021-04-16clang-format: Disable formatting for JS filesAlexander Lohnau
2021-02-16clang-format: set AlwaysBreakTemplateDeclarations to trueAhmad Samir
This matches most of the existing code in KDE; also note that Qt has the same setting (also stating in a comment in their _clang-format that this matching their existing code).
2021-01-16Improve alignment of argumentsAlexander Lohnau
2021-01-01[clang-format] Break before non-assignment operatorsAlexander Lohnau
2020-12-31[clang-format] Set max column limit to 160Alexander Lohnau
Before this value was 240, which can result in excessively long lines.
2020-12-04clang-format: No space before initializer listv5.77.0-rc1v5.77.0Alexander Lohnau
2020-10-23improve default formatting optionsChristoph Cullmann
1) remove AlignTrailingComments: true => this avoids multiline comment changes if e.g. one longer member/variable is added with comments behind it 2) add AllowShortLambdasOnASingleLine: Empty => avoid the uglification of lambdas
2020-06-14extra-cmake-modules: Convert to SPDX license statementsAndreas Cord-Landwehr
2019-12-05EBN extra-cmake-modules transport cleanupv5.65.0-rc1v5.65.0John Hayes
Summary: Change transport protocol from http to https Reviewers: apol, cgiboudeaux Reviewed By: apol, cgiboudeaux Subscribers: cgiboudeaux, kde-frameworks-devel, kde-buildsystem Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D25753
2019-10-20Provide clang-format target with a KDE Frameworks style fileChristoph Cullmann
Summary: Provides a clang-format target if wanted Example usage: include(KDEClangFormat) # add clang-format target for all our real source files file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES autotests/src/*.cpp autotests/src/*.h src/*.cpp src/*.h templates/*.cpp templates/*.h) kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) Test Plan: Tried that above usage thingy in KTextEditor Reviewers: #frameworks, dfaure Reviewed By: dfaure Subscribers: zzag, sitter, mwolff, ochurlaud, nalvarez, kossebau, aacid, davidedmundson, dhaumann, apol, ognarb, kde-frameworks-devel, kde-buildsystem Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D24568