summaryrefslogtreecommitdiffstats
path: root/Tests/SwigTest
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2012-08-13 17:42:58 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-13 18:18:39 (GMT)
commit7bbaa4283de26864b2e55e819db0884771585467 (patch)
treeecb748dbe41a13d8bdea77acd0049cde999d933e /Tests/SwigTest
parentbe9db98946b7918f279812fd0616abb650eebed0 (diff)
downloadCMake-7bbaa4283de26864b2e55e819db0884771585467.zip
CMake-7bbaa4283de26864b2e55e819db0884771585467.tar.gz
CMake-7bbaa4283de26864b2e55e819db0884771585467.tar.bz2
Remove trailing whitespace from most CMake and C/C++ code
Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
Diffstat (limited to 'Tests/SwigTest')
-rw-r--r--Tests/SwigTest/CMakeLists.txt2
-rw-r--r--Tests/SwigTest/example.h4
-rwxr-xr-xTests/SwigTest/runme.pike6
-rw-r--r--Tests/SwigTest/runme.py2
4 files changed, 7 insertions, 7 deletions
diff --git a/Tests/SwigTest/CMakeLists.txt b/Tests/SwigTest/CMakeLists.txt
index 5a8e619..7e21644 100644
--- a/Tests/SwigTest/CMakeLists.txt
+++ b/Tests/SwigTest/CMakeLists.txt
@@ -30,7 +30,7 @@ IF(${language} MATCHES ruby)
ENDIF(${language} MATCHES ruby)
IF(${language} MATCHES php4)
FIND_PACKAGE(PHP4)
- INCLUDE_DIRECTORIES(${PHP4_INCLUDE_PATH})
+ INCLUDE_DIRECTORIES(${PHP4_INCLUDE_PATH})
SET(SWIG_LANG_LIBRARIES ${PHP4_LIBRARY})
ENDIF(${language} MATCHES php4)
IF(${language} MATCHES pike)
diff --git a/Tests/SwigTest/example.h b/Tests/SwigTest/example.h
index 46d9013..c9d59f2 100644
--- a/Tests/SwigTest/example.h
+++ b/Tests/SwigTest/example.h
@@ -8,7 +8,7 @@ public:
virtual ~Shape() {
nshapes--;
};
- double x, y;
+ double x, y;
void move(double dx, double dy);
virtual double area(void) = 0;
virtual double perimeter(void) = 0;
@@ -36,4 +36,4 @@ public:
-
+
diff --git a/Tests/SwigTest/runme.pike b/Tests/SwigTest/runme.pike
index a637760..ec28dd7 100755
--- a/Tests/SwigTest/runme.pike
+++ b/Tests/SwigTest/runme.pike
@@ -42,12 +42,12 @@ int main()
/* See if we can force 's' to be garbage-collected */
s = 0;
-
+
/* Now we should be down to only 1 shape */
write("%d shapes remain\n", Shape_nshapes_get());
-
+
/* Done */
write("Goodbye\n");
-
+
return 0;
}
diff --git a/Tests/SwigTest/runme.py b/Tests/SwigTest/runme.py
index 42a5aa3..ed3909e 100644
--- a/Tests/SwigTest/runme.py
+++ b/Tests/SwigTest/runme.py
@@ -3,7 +3,7 @@
# This file illustrates the shadow-class C++ interface generated
# by SWIG.
-import example
+import example
# ----- Object creation -----