summaryrefslogtreecommitdiffstats
path: root/clang/bindings/python/examples/cindex/cindex-includes.py
Commit message (Collapse)AuthorAgeFilesLines
* cindex/Python: Fix cindex-{dump,includes} examples to just pass all argsDaniel Dunbar2010-02-131-8/+4
| | | | | | | | | | | | | 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 llvm-svn: 96107
* cindex/Python: Add TranslationUnit.get_includes, patch by Andrew Sutton!Daniel Dunbar2010-02-131-0/+62
llvm-svn: 96106
OpenPOWER on IntegriCloud