aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2022-08-08 23:28:13 +0200
committerAhmad Samir <a.samirh78@gmail.com>2022-08-08 23:30:28 +0200
commit178c4dfbf4eb5ad7c5aef4838f190f717f97766f (patch)
treecacda711dea4f84d2eb3e87ede04c6c8161d674c
parentce726d388a59b941e2e6f6f487132532511af03d (diff)
downloadextra-cmake-modules-178c4dfbf4eb5ad7c5aef4838f190f717f97766f.tar.gz
extra-cmake-modules-178c4dfbf4eb5ad7c5aef4838f190f717f97766f.tar.bz2
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
-rw-r--r--kde-modules/clang-format.cmake5
1 files changed, 5 insertions, 0 deletions
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