Skip to content

Commit 924ee57

Browse files
committed
Reduce line widths to 180
1 parent db053d1 commit 924ee57

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.cmake-format.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
parse: {}
22
format:
3-
line_width: 227
3+
line_width: 180
44
tab_size: 2
55
use_tabchars: false
66
fractional_tab_policy: use-space

CodeCoverage.cmake

+3-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@
8282
# add_code_coverage_all_targets(EXCLUDE test/*) # Adds the 'ccov-all' target set and sets it to exclude all files in test/ folders.
8383
#
8484
# add_executable(theExe main.cpp non_covered.cpp)
85-
# target_code_coverage(theExe AUTO ALL EXCLUDE non_covered.cpp test/*) # As an executable target, adds to the 'ccov' and ccov-all' targets, and the reports will exclude the non-covered.cpp file, and any files in a test/ folder.
85+
# target_code_coverage(theExe AUTO ALL EXCLUDE non_covered.cpp test/*)
86+
# # As an executable target, the above adds to the 'ccov' and ccov-all' targets,
87+
# # and the reports will exclude the non-covered.cpp file, and any files in a test/ folder.
8688
# ~~~
8789

8890
# Options

Gprof.cmake

+5-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,11 @@ function(swift_add_gprof target)
193193

194194
unset(post_commands)
195195
if (GProf_FOUND AND x_GENERATE_REPORT)
196-
list(APPEND post_commands COMMAND find ${report_directory}/${report_folder} -regex '.*gmon\.[0-9].*' -execdir ${GProf_EXECUTABLE} $<TARGET_FILE:${target}> {} > ${report_directory}/${report_folder}/gmon.txt + -quit)
196+
list(APPEND post_commands COMMAND
197+
find ${report_directory}/${report_folder}
198+
-regex '.*gmon\.[0-9].*' -execdir ${GProf_EXECUTABLE} $<TARGET_FILE:${target}> {}
199+
> ${report_directory}/${report_folder}/gmon.txt + -quit
200+
)
197201
endif()
198202

199203
add_custom_target(${target_name}

SwiftCmakeOptions.cmake

+4-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ function(swift_create_project_options)
182182
if(NOT ${x_PROJECT}_BUILD_VARS_PROTECTED)
183183
foreach(feat "TESTS" "TEST_LIBS" "EXAMPLES" "DOCS")
184184
if(DEFINED ${x_PROJECT}_BUILD_${feat})
185-
message(FATAL_ERROR "Something or someone has set ${x_PROJECT}_BUILD_${feat}. This is an internal option and must not be set from anywhere. Use ${x_PROJECT}_ENABLE_${feat} instead.")
185+
message(
186+
FATAL_ERROR
187+
"Something or someone has set ${x_PROJECT}_BUILD_${feat}. This is an internal option and must not be set from anywhere. Use ${x_PROJECT}_ENABLE_${feat} instead."
188+
)
186189
endif()
187190
endforeach()
188191
set(${x_PROJECT}_BUILD_VARS_PROTECTED ON CACHE BOOL "Checked that nothing has set any BUILD vars manually")

0 commit comments

Comments
 (0)