summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-21 19:17:38 +0000
committerAlp Toker <alp@nuanti.com>2014-05-21 19:17:38 +0000
commit6a81e83fd347e22a4d5eb18d41d6d3b02add9c5f (patch)
tree0b706695b883d3f7cba04cf663eadc499af80682 /bindings
parent740289cb6dc42204295b9f82e7c05b2bd3e7fab6 (diff)
cindex/test_cursor.py: no need to skip implicit decls in tests
clang was fixed some time ago to always skip "builtins and other cruft" so tools no longer need hacks like this. Passes nosetests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209316 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/tests/cindex/test_cursor.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/bindings/python/tests/cindex/test_cursor.py b/bindings/python/tests/cindex/test_cursor.py
index a27525cfe5..4315045022 100644
--- a/bindings/python/tests/cindex/test_cursor.py
+++ b/bindings/python/tests/cindex/test_cursor.py
@@ -8,9 +8,6 @@ from .util import get_cursors
from .util import get_tu
kInput = """\
-// FIXME: Find nicer way to drop builtins and other cruft.
-int start_decl;
-
struct s0 {
int a;
int b;
@@ -33,11 +30,7 @@ void f0(int a0, int a1) {
def test_get_children():
tu = get_tu(kInput)
- # Skip until past start_decl.
it = tu.cursor.get_children()
- while it.next().spelling != 'start_decl':
- pass
-
tu_nodes = list(it)
assert len(tu_nodes) == 3
@@ -49,7 +42,7 @@ def test_get_children():
assert tu_nodes[0].spelling == 's0'
assert tu_nodes[0].is_definition() == True
assert tu_nodes[0].location.file.name == 't.c'
- assert tu_nodes[0].location.line == 4
+ assert tu_nodes[0].location.line == 1
assert tu_nodes[0].location.column == 8
assert tu_nodes[0].hash > 0
assert tu_nodes[0].translation_unit is not None