Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kopoli/cpra
A crappy wrapper for libclang
https://github.com/kopoli/cpra
Last synced: about 2 months ago
JSON representation
A crappy wrapper for libclang
- Host: GitHub
- URL: https://github.com/kopoli/cpra
- Owner: kopoli
- Created: 2011-10-24T19:46:24.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-10-24T19:47:13.000Z (about 13 years ago)
- Last Synced: 2023-04-20T00:47:30.585Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 109 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
cpra
A command line wrapper for the libclang library.
Uses libclang to parse and display various information on a source code file.
Updates
2011-10-24 - initialRequirements:
- A very recent clang (tested with 2.9)
Compilation:
make
You might need to adjust the makefile to suit your needs. Some automated unit
testing program is automatically built. It can be run with the command:make test
or
./cpra_testTo display the available options run the following:
./cpra -h
Example run:
./cpra -vr -- testcode.cc | grep m_value
Int JepJep::Jotain::m_value linkage: global IsDef IsDecl at testcode.cc 12:7
Int JepJep::Jotain::m_value linkage: global at testcode.cc 16:28
Int JepJep::Jotain::m_value linkage: global at testcode.cc 34:5This displays the full name of the variable m_value with the lines it is
defined and used.