From 178c4dfbf4eb5ad7c5aef4838f190f717f97766f Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Mon, 8 Aug 2022 23:28:13 +0200 Subject: clang-format.cmake: don't change spaces after '//' in code comments 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 --- kde-modules/clang-format.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kde-modules/clang-format.cmake b/kde-modules/clang-format.cmake index cf5ff2c0..8f335f2e 100644 --- a/kde-modules/clang-format.cmake +++ b/kde-modules/clang-format.cmake @@ -86,3 +86,8 @@ AllowShortLambdasOnASingleLine: Empty # We do not want clang-format to put all arguments on a new line AllowAllArgumentsOnNextLine: false + +# Don't change spaces after '//' in code comments +SpacesInLineCommentPrefix: + Minimum: 0 + Maximum: -1 -- cgit v1.2.1