From 8e4aebd8c10f0bed761f41ea56015893ab363fde Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Tue, 19 Jan 2021 17:07:39 +0100 Subject: Revert "Add clang-format target by default in KDEFrameworkCompilerSettings" This reverts commit a6be96a0c84b215de7f6fb397255af252adf7fc1. --- kde-modules/KDEClangFormat.cmake | 8 -------- 1 file changed, 8 deletions(-) (limited to 'kde-modules/KDEClangFormat.cmake') diff --git a/kde-modules/KDEClangFormat.cmake b/kde-modules/KDEClangFormat.cmake index f1c98ae6..7f85508b 100644 --- a/kde-modules/KDEClangFormat.cmake +++ b/kde-modules/KDEClangFormat.cmake @@ -14,8 +14,6 @@ # # Using this function will create a clang-format target that will format all # ```` passed to the function with the predefined KDE clang-format style. -# Since version 5.79 this function is called by default in KDEFrameworkCompilerSettings. If directories should be excluded from -# the formatting a .clang-format file with "DisableFormat: true" and "SortIncludes: false" should be created. # # Example usage: # @@ -29,7 +27,6 @@ #============================================================================= # SPDX-FileCopyrightText: 2019 Christoph Cullmann -# SPDX-FileCopyrightText: 2021 Alexander Lohnau # # SPDX-License-Identifier: BSD-3-Clause @@ -43,11 +40,6 @@ endif() # formatting target function(KDE_CLANG_FORMAT) - if (TARGET clang-format) - message(WARNING "the kde_clang_format function was already called") - return() - endif() - # add target without specific commands first, we add the real calls file-per-file to avoid command line length issues add_custom_target(clang-format COMMENT "Formatting sources in ${CMAKE_CURRENT_SOURCE_DIR} with ${KDE_CLANG_FORMAT_EXECUTABLE}...") -- cgit v1.2.1