summaryrefslogtreecommitdiff
path: root/bindings/python/examples/cindex
Commit message (Collapse)AuthorAge
* cindex-dump.py: fix the --show-ids description stringAlp Toker2014-05-05
| | | | | | It looks like this was botched back in r94936. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207947 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix cindex-dump.py --show-idsAlp Toker2014-05-05
| | | | | | | | | | | | | This option flag was incorrectly expecting an argument: $ cindex-dump.py --show-ids test.cpp cindex-dump.py: error: invalid number arguments With this change the feature correctly gets enabled by --show-ids. No tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207946 91177308-0d34-0410-b5e6-96231b3b80d8
* cindex/Python: Fix cindex-{dump,includes} examples to just pass all argsDaniel Dunbar2010-02-13
| | | | | | | | | | | | | directly to Index, instead of requiring the input file to be first. This makes the examples behave more like 'clang'. For example, ddunbar@giles:tmp$ echo '#include <string>' | python ~/llvm/tools/clang/bindings/python/examples/cindex/cindex-includes.py -- -x c++ - | wc -l 114 ddunbar@giles:tmp$ echo '#include <stdio.h>' | python ~/llvm/tools/clang/bindings/python/examples/cindex/cindex-includes.py -- -x c - | wc -l 10 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96107 91177308-0d34-0410-b5e6-96231b3b80d8
* cindex/Python: Add TranslationUnit.get_includes, patch by Andrew Sutton!Daniel Dunbar2010-02-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96106 91177308-0d34-0410-b5e6-96231b3b80d8
* cindex/Python: Turn off showing IDs by default, they are really slow to computeDaniel Dunbar2010-01-31
| | | | | | | pending a hash function. Also added a --max-depth argument, handy for timing and limiting the volume of output. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94936 91177308-0d34-0410-b5e6-96231b3b80d8
* cindex/Python: Add a simple example which dumps assorted information about a ↵Daniel Dunbar2010-01-30
translation unit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94934 91177308-0d34-0410-b5e6-96231b3b80d8