summaryrefslogtreecommitdiffstats
path: root/clang/bindings/python/examples/cindex/cindex-dump.py
diff options
context:
space:
mode:
Diffstat (limited to 'clang/bindings/python/examples/cindex/cindex-dump.py')
-rw-r--r--clang/bindings/python/examples/cindex/cindex-dump.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/bindings/python/examples/cindex/cindex-dump.py b/clang/bindings/python/examples/cindex/cindex-dump.py
index ace4ae82761..af7ddab6ea5 100644
--- a/clang/bindings/python/examples/cindex/cindex-dump.py
+++ b/clang/bindings/python/examples/cindex/cindex-dump.py
@@ -74,10 +74,8 @@ def main():
if len(args) == 0:
parser.error('invalid number arguments')
- input_path = args.pop(0)
-
index = Index.create()
- tu = index.parse(input_path, args)
+ tu = index.parse(None, args)
if not tu:
parser.error("unable to load input")
OpenPOWER on IntegriCloud