Skip to content

Commit 22fe00c

Browse files
committed
Code cleanup: remove trailing spaces from the end of lines
SVN-Revision: 1670
1 parent b8b93d1 commit 22fe00c

File tree

338 files changed

+1318
-1318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+1318
-1318
lines changed

Diff for: ACKNOWLEDGEMENTS

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ insights, suggestions, and constructive criticism.
1010
* Shawn Denbow
1111
* Timur Iskhodzhanov
1212
* Reid Kleckner
13-
* Qin Zhao
13+
* Qin Zhao
1414

1515
Dr. Memory was originally developed by Derek Bruening for Windows. Derek later
1616
ported Dr. Memory to Linux.

Diff for: CMakeLists.txt

+16-16
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
# **********************************************************
55

66
# Dr. Memory: the memory debugger
7-
#
7+
#
88
# This library is free software; you can redistribute it and/or
99
# modify it under the terms of the GNU Lesser General Public
10-
# License as published by the Free Software Foundation;
10+
# License as published by the Free Software Foundation;
1111
# version 2.1 of the License, and no later version.
12-
#
12+
#
1313
# This library is distributed in the hope that it will be useful,
1414
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1515
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1616
# Library General Public License for more details.
17-
#
17+
#
1818
# You should have received a copy of the GNU Lesser General Public
1919
# License along with this library; if not, write to the Free Software
2020
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -110,7 +110,7 @@ if (TOOL_DR_HEAPSTAT)
110110
message(FATAL_ERROR "Can't find Java interpreter: please set JAVA var")
111111
endif (JAVA_RUNTIME)
112112
endif (NOT DEFINED JAVA)
113-
113+
114114
# There is no standard install path so the user must tell us where they
115115
# installed the Flex SDK, either via env var FLEXROOT or FLEX_SDK CMake var.
116116
set(FLEX_SDK "$ENV{FLEXROOT}" CACHE PATH "Path to Flex SDK.")
@@ -571,7 +571,7 @@ add_custom_command(
571571
OUTPUT "${options_for_perl}"
572572
DEPENDS "${PROJECT_SOURCE_DIR}/common/options-perl.c"
573573
"${PROJECT_SOURCE_DIR}/${tooldir}/optionsx.h"
574-
COMMAND ${CMAKE_CPP}
574+
COMMAND ${CMAKE_CPP}
575575
ARGS -E ${CPP_NO_LINENUM} "${PROJECT_SOURCE_DIR}/common/options-perl.c"
576576
-I${PROJECT_SOURCE_DIR}/${tooldir} ${DEFINES} > "${options_for_perl}"
577577
VERBATIM)
@@ -1087,7 +1087,7 @@ endif (NOT cur_flags)
10871087
set_property(SOURCE common/alloc_unopt.c
10881088
PROPERTY COMPILE_FLAGS "${cur_flags} ${DISABLE_OPTS}")
10891089

1090-
# Though the swf file isn't an executable it is in ${BIN_ARCH} because it isn't
1090+
# Though the swf file isn't an executable it is in ${BIN_ARCH} because it isn't
10911091
# exposed to the users; it isn't in lib because, well, it isn't a lib.
10921092
if (TOOL_DR_HEAPSTAT AND BUILD_VISUALIZER)
10931093
add_custom_target(vistool ALL DEPENDS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${toolname}.swf")
@@ -1235,7 +1235,7 @@ else (WIN32)
12351235
else (USER_SPECIFIED_DynamoRIO_DIR)
12361236
set(drconfig_copy "${PROJECT_BINARY_DIR}/${BUILD_BIN}/drconfig")
12371237
add_custom_target(drconfig_copy_tgt ALL DEPENDS "${drconfig_copy}")
1238-
add_custom_command(OUTPUT "${drconfig_copy}"
1238+
add_custom_command(OUTPUT "${drconfig_copy}"
12391239
DEPENDS drconfig
12401240
COMMAND ${CMAKE_COMMAND}
12411241
ARGS -E copy "${DynamoRIO_DIR}/../${BIN_ARCH}/drconfig"
@@ -1387,7 +1387,7 @@ if (install_override)
13871387
else (X64)
13881388
set(EXP_DIR exports32)
13891389
endif (X64)
1390-
set(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}/../${EXP_DIR}"
1390+
set(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}/../${EXP_DIR}"
13911391
CACHE PATH "install path" FORCE)
13921392
endif (install_override)
13931393

@@ -1493,7 +1493,7 @@ install(DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/
14931493
)
14941494
install(DIRECTORY ${PROJECT_BINARY_DIR}/${BUILD_BIN}/
14951495
DESTINATION "${INSTALL_BIN}"
1496-
FILE_PERMISSIONS OWNER_READ OWNER_EXECUTE
1496+
FILE_PERMISSIONS OWNER_READ OWNER_EXECUTE
14971497
GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
14981498
FILES_MATCHING
14991499
PATTERN "*.debug"
@@ -1675,11 +1675,11 @@ set(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README")
16751675
set(CPACK_SOURCE_IGNORE_FILES "~$" "/.svn" "/.git")
16761676

16771677
set(CPACK_PACKAGE_VERSION "${TOOL_VERSION_NUMBER}")
1678-
string(REGEX REPLACE
1678+
string(REGEX REPLACE
16791679
"^([0-9]+)\\..*" "\\1" CPACK_PACKAGE_VERSION_MAJOR "${TOOL_VERSION_NUMBER}")
1680-
string(REGEX REPLACE
1680+
string(REGEX REPLACE
16811681
"^[0-9]+\\.([0-9]+)\\..*" "\\1" CPACK_PACKAGE_VERSION_MINOR "${TOOL_VERSION_NUMBER}")
1682-
string(REGEX REPLACE
1682+
string(REGEX REPLACE
16831683
"^[0-9]+\\.[0-9]+\\.([0-9]+)" "\\1" CPACK_PACKAGE_VERSION_PATCH "${TOOL_VERSION_NUMBER}")
16841684

16851685
if (WIN32 AND NOT BUILDING_SUB_PACKAGE)
@@ -1700,11 +1700,11 @@ if (WIN32 AND NOT BUILDING_SUB_PACKAGE)
17001700
# don't take time and space copying: user can pass same dr to frontend,
17011701
# so we only copy for package target
17021702
if (DEBUG_BUILD)
1703-
set(CPACK_INSTALLED_DIRECTORIES
1703+
set(CPACK_INSTALLED_DIRECTORIES
17041704
"${DynamoRIO_DIR}/../${LIB_ARCH};${DR_install_dir}/${LIB_ARCH}"
17051705
"${DynamoRIO_DIR}/../ext/${LIB_ARCH};${DR_install_dir}/ext/${LIB_ARCH}")
17061706
else (DEBUG_BUILD)
1707-
set(CPACK_INSTALLED_DIRECTORIES
1707+
set(CPACK_INSTALLED_DIRECTORIES
17081708
"${DynamoRIO_DIR}/../${LIB_ARCH}/release;${DR_install_dir}/${LIB_ARCH}/release"
17091709
"${DynamoRIO_DIR}/../ext/${LIB_ARCH}/release;${DR_install_dir}/ext/${LIB_ARCH}/release")
17101710
endif (DEBUG_BUILD)
@@ -1734,7 +1734,7 @@ if (PERL_TO_EXE OR WIN32 AND USE_DRSYMS AND TOOL_DR_MEMORY)
17341734
set(CPACK_PACKAGE_EXECUTABLES "${toolname}" "${toolname_cap_spc} (drag your app here)")
17351735
set(CPACK_CREATE_DESKTOP_LINKS "${toolname}")
17361736
endif (PERL_TO_EXE OR WIN32 AND USE_DRSYMS AND TOOL_DR_MEMORY)
1737-
set(CPACK_NSIS_MENU_LINKS
1737+
set(CPACK_NSIS_MENU_LINKS
17381738
# We automatically get an entry for ${toolname}.exe since it's in the
17391739
# CPACK_PACKAGE_EXECUTABLES list, even though we don't want one.
17401740
"bin/" "Explore ${toolname_cap_spc} (drag your app onto ${toolname}.exe)"

Diff for: CTestConfig.cmake

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
# **********************************************************
55

66
# Dr. Memory: the memory debugger
7-
#
7+
#
88
# This library is free software; you can redistribute it and/or
99
# modify it under the terms of the GNU Lesser General Public
10-
# License as published by the Free Software Foundation;
10+
# License as published by the Free Software Foundation;
1111
# version 2.1 of the License, and no later version.
12-
#
12+
#
1313
# This library is distributed in the hope that it will be useful,
1414
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1515
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1616
# Library General Public License for more details.
17-
#
17+
#
1818
# You should have received a copy of the GNU Lesser General Public
1919
# License along with this library; if not, write to the Free Software
2020
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -25,18 +25,18 @@
2525

2626
# Redistribution and use in source and binary forms, with or without
2727
# modification, are permitted provided that the following conditions are met:
28-
#
28+
#
2929
# * Redistributions of source code must retain the above copyright notice,
3030
# this list of conditions and the following disclaimer.
31-
#
31+
#
3232
# * Redistributions in binary form must reproduce the above copyright notice,
3333
# this list of conditions and the following disclaimer in the documentation
3434
# and/or other materials provided with the distribution.
35-
#
35+
#
3636
# * Neither the name of VMware, Inc. nor the names of its contributors may be
3737
# used to endorse or promote products derived from this software without
3838
# specific prior written permission.
39-
#
39+
#
4040
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
4141
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
4242
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -75,7 +75,7 @@ if (SUBMIT_LOCAL)
7575
# local copy w/o needing sshd on localhost we arrange to have : in the
7676
# absolute filepath (when absolute, scp interprets as local even if : later)
7777
if (NOT EXISTS "${CTEST_DROP_SITE}:${CTEST_DROP_LOCATION}")
78-
message(FATAL_ERROR
78+
message(FATAL_ERROR
7979
"must set ${CTEST_DROP_SITE}:${CTEST_DROP_LOCATION} to an existing directory")
8080
endif (NOT EXISTS "${CTEST_DROP_SITE}:${CTEST_DROP_LOCATION}")
8181
else (SUBMIT_LOCAL)

Diff for: README

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
# **********************************************************
55

66
# Dr. Memory: the memory debugger
7-
#
7+
#
88
# This library is free software; you can redistribute it and/or
99
# modify it under the terms of the GNU Lesser General Public
10-
# License as published by the Free Software Foundation;
10+
# License as published by the Free Software Foundation;
1111
# version 2.1 of the License, and no later version.
12-
#
12+
#
1313
# This library is distributed in the hope that it will be useful,
1414
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1515
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1616
# Library General Public License for more details.
17-
#
17+
#
1818
# You should have received a copy of the GNU Lesser General Public
1919
# License along with this library; if not, write to the Free Software
2020
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Diff for: codereview.cmake

+14-14
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
# **********************************************************
44

55
# Dr. Memory: the memory debugger
6-
#
6+
#
77
# This library is free software; you can redistribute it and/or
88
# modify it under the terms of the GNU Lesser General Public
9-
# License as published by the Free Software Foundation;
9+
# License as published by the Free Software Foundation;
1010
# version 2.1 of the License, and no later version.
11-
#
11+
#
1212
# This library is distributed in the hope that it will be useful,
1313
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1414
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1515
# Library General Public License for more details.
16-
#
16+
#
1717
# You should have received a copy of the GNU Lesser General Public
1818
# License along with this library; if not, write to the Free Software
1919
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -24,18 +24,18 @@
2424

2525
# Redistribution and use in source and binary forms, with or without
2626
# modification, are permitted provided that the following conditions are met:
27-
#
27+
#
2828
# * Redistributions of source code must retain the above copyright notice,
2929
# this list of conditions and the following disclaimer.
30-
#
30+
#
3131
# * Redistributions in binary form must reproduce the above copyright notice,
3232
# this list of conditions and the following disclaimer in the documentation
3333
# and/or other materials provided with the distribution.
34-
#
34+
#
3535
# * Neither the name of VMware, Inc. nor the names of its contributors may be
3636
# used to endorse or promote products derived from this software without
3737
# specific prior written permission.
38-
#
38+
#
3939
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
4040
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
4141
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -91,7 +91,7 @@
9191
# -- svn: A ../reviews/derek.bruening/2009/i64-cmake-review.diff
9292
# -- svn: A ../reviews/derek.bruening/2009/i64-cmake-review.notes
9393
# -- ready to commit
94-
#
94+
#
9595
# Want to abort (maybe decided to change LABEL) so undoing local svn add:
9696
# > cmake -DAUTHOR:STRING=derek.bruening -DREVIEWER:STRING=qin.zhao -DLABEL:STRING=i64-cmake-review -DREVERT:BOOL=ON -P ./codereview.cmake
9797
# -- notes file is "diff.notes"
@@ -152,7 +152,7 @@ endif (NOT SVN)
152152
function(run_svn)
153153
execute_process(COMMAND ${SVN} ${ARGV}
154154
WORKING_DIRECTORY ${REVIEWS}
155-
RESULT_VARIABLE svn_result
155+
RESULT_VARIABLE svn_result
156156
ERROR_VARIABLE svn_err
157157
OUTPUT_VARIABLE svn_out)
158158
if (svn_result OR svn_err)
@@ -175,7 +175,7 @@ if (UNIX)
175175
message(FATAL_ERROR "date not found")
176176
endif (NOT DATE)
177177
execute_process(COMMAND ${DATE} +%Y
178-
RESULT_VARIABLE date_result
178+
RESULT_VARIABLE date_result
179179
ERROR_VARIABLE date_err
180180
OUTPUT_VARIABLE year)
181181
if (date_result OR date_err)
@@ -190,7 +190,7 @@ else (UNIX)
190190
# If use forward slashes => "The syntax of the command is incorrect."
191191
file(TO_NATIVE_PATH "${CMD}" CMD)
192192
execute_process(COMMAND ${CMD} /c date /T
193-
RESULT_VARIABLE date_result
193+
RESULT_VARIABLE date_result
194194
ERROR_VARIABLE date_err
195195
OUTPUT_VARIABLE date_out)
196196
if (date_result OR date_err)
@@ -211,7 +211,7 @@ if (REVERT)
211211

212212
execute_process(COMMAND ${SVN} status ${DEST}.diff
213213
WORKING_DIRECTORY ${REVIEWS}
214-
RESULT_VARIABLE svn_result
214+
RESULT_VARIABLE svn_result
215215
ERROR_VARIABLE svn_err
216216
OUTPUT_VARIABLE svn_out)
217217
if (svn_result OR svn_err)
@@ -256,7 +256,7 @@ else (REVERT)
256256
# We want context diffs with procedure names for better readability
257257
# svn diff does show new files for us but we pass -N just in case
258258
execute_process(COMMAND ${SVN} diff --diff-cmd diff -x "-c -p -N"
259-
RESULT_VARIABLE svn_result
259+
RESULT_VARIABLE svn_result
260260
ERROR_VARIABLE svn_err
261261
OUTPUT_FILE "${DIFF_FILE}")
262262
if (svn_result OR svn_err)

0 commit comments

Comments
 (0)