r207946 - Fix cindex-dump.py --show-ids
Alp Toker
alp at nuanti.com
Sun May 4 21:39:20 PDT 2014
Author: alp
Date: Sun May 4 23:39:18 2014
New Revision: 207946
URL: http://llvm.org/viewvc/llvm-project?rev=207946&view=rev
Log:
Fix cindex-dump.py --show-ids
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.
Modified:
cfe/trunk/bindings/python/examples/cindex/cindex-dump.py
Modified: cfe/trunk/bindings/python/examples/cindex/cindex-dump.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/examples/cindex/cindex-dump.py?rev=207946&r1=207945&r2=207946&view=diff
==============================================================================
--- cfe/trunk/bindings/python/examples/cindex/cindex-dump.py (original)
+++ cfe/trunk/bindings/python/examples/cindex/cindex-dump.py Sun May 4 23:39:18 2014
@@ -64,7 +64,7 @@ def main():
parser = OptionParser("usage: %prog [options] {filename} [clang-args*]")
parser.add_option("", "--show-ids", dest="showIDs",
help="Don't compute cursor IDs (very slow)",
- default=False)
+ action="store_true", default=False)
parser.add_option("", "--max-depth", dest="maxDepth",
help="Limit cursor expansion to depth N",
metavar="N", type=int, default=None)
More information about the cfe-commits
mailing list