C language indexer plugin for CodeMap
Project description
codemap-c
A C language indexer for CodeMap, shipped as an independent PyPI package.
What it captures
Backed by tree-sitter-c:
| AST node | Symbol kind |
|---|---|
function_definition |
function |
struct_specifier (named, with body) |
class (extra.c_kind=struct) |
union_specifier (named, with body) |
class (extra.c_kind=union) |
enum_specifier (named) |
class (extra.c_kind=enum) |
type_definition (typedef) |
class (extra.c_kind=typedef) |
preproc_def (#define X ...) |
variable (extra.c_kind=macro) |
Top-level declaration with initializer |
variable |
field_declaration inside a struct/union body |
field (attached to the parent) |
Function bodies are not walked for inner declarations — locals are not script-level interface.
Install
pip install "git+https://github.com/qxbyte/codemap.git#subdirectory=plugins/codemap-c"
File patterns
*.c,*.h
Limits
- Preprocessor conditionals (
#ifdef/#if) parse but no branch selection is performed — both arms contribute symbols. - Function declarations (prototypes) are not emitted; only definitions.
- Forward struct declarations without a body are skipped.
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
codemap_c-0.1.0a1.tar.gz
(5.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codemap_c-0.1.0a1.tar.gz.
File metadata
- Download URL: codemap_c-0.1.0a1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78aaf8a32870a10dca168a49771a4cacdbad3fdd76f1fc633f5d429683f54d27
|
|
| MD5 |
dba613059f296db1e378807cf90ad970
|
|
| BLAKE2b-256 |
1b970bcaca28e8222e49dba52e3ea80eefe53c3b2e20b0c87abab8e3fd9a256c
|
File details
Details for the file codemap_c-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: codemap_c-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d792172c9fe051d7de85e0ada2445637c7e534ef4cacea83b0f2fea15d06acc8
|
|
| MD5 |
d87bbfeac432ecfdb939384008fd508a
|
|
| BLAKE2b-256 |
f24603e6d6acb5d848489ad0162a374c696bda83b68e59627906cc1e4198c477
|