summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory Szorc <gregory.szorc@gmail.com>2012-05-08 06:01:34 +0000
committerGregory Szorc <gregory.szorc@gmail.com>2012-05-08 06:01:34 +0000
commit23cfc9f760389dc614c568488e1088596f2028ef (patch)
tree87139007f14fd6a71904a24e6bf92649a6d1b790
parentdfc894f3aa8aaaac25664886251c8c9d3d041019 (diff)
downloadbcm5719-llvm-23cfc9f760389dc614c568488e1088596f2028ef.tar.gz
bcm5719-llvm-23cfc9f760389dc614c568488e1088596f2028ef.zip
[clang.py] Remove trailing whitespace from recent commits
llvm-svn: 156373
-rw-r--r--clang/bindings/python/clang/cindex.py6
-rw-r--r--clang/bindings/python/tests/cindex/test_cursor.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py
index bff23cc9d9e..fa82294130e 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/bindings/python/clang/cindex.py
@@ -1094,7 +1094,7 @@ class Cursor(Structure):
"""Return the semantic parent for this cursor."""
if not hasattr(self, '_semantic_parent'):
self._semantic_parent = Cursor_semantic_parent(self)
-
+
return self._semantic_parent
@property
@@ -1102,9 +1102,9 @@ class Cursor(Structure):
"""Return the lexical parent for this cursor."""
if not hasattr(self, '_lexical_parent'):
self._lexical_parent = Cursor_lexical_parent(self)
-
+
return self._lexical_parent
-
+
def get_children(self):
"""Return an iterator for accessing the children of this cursor."""
diff --git a/clang/bindings/python/tests/cindex/test_cursor.py b/clang/bindings/python/tests/cindex/test_cursor.py
index 8b12f8d94e9..eda74f0e245 100644
--- a/clang/bindings/python/tests/cindex/test_cursor.py
+++ b/clang/bindings/python/tests/cindex/test_cursor.py
@@ -80,7 +80,7 @@ kParentTest = """\
class C {
void f();
}
-
+
void C::f() { }
"""
def test_semantic_parent():
@@ -89,7 +89,7 @@ def test_semantic_parent():
decl = get_cursor(tu, 'C')
assert(len(curs) == 2)
assert(curs[0].semantic_parent == curs[1].semantic_parent)
- assert(curs[0].semantic_parent == decl)
+ assert(curs[0].semantic_parent == decl)
def test_lexical_parent():
tu = get_tu(kParentTest, 'cpp')
@@ -97,7 +97,7 @@ def test_lexical_parent():
decl = get_cursor(tu, 'C')
assert(len(curs) == 2)
assert(curs[0].lexical_parent != curs[1].lexical_parent)
- assert(curs[0].lexical_parent == decl)
+ assert(curs[0].lexical_parent == decl)
assert(curs[1].lexical_parent == tu.cursor)
def test_enum_type():
OpenPOWER on IntegriCloud