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 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
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.2.0.tar.gz.
File metadata
- Download URL: codemap_c-0.2.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b4771beb2f841063a884396add970997211c096bf293d8b46ffe51f291daa32
|
|
| MD5 |
95067a299ca29244c431206c320f9f2b
|
|
| BLAKE2b-256 |
3492172e96026071a49a1315cf5369949822c7302afa392c4e4f9a06b004902f
|
Provenance
The following attestation bundles were made for codemap_c-0.2.0.tar.gz:
Publisher:
publish.yml on qxbyte/codemap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codemap_c-0.2.0.tar.gz -
Subject digest:
7b4771beb2f841063a884396add970997211c096bf293d8b46ffe51f291daa32 - Sigstore transparency entry: 1721348145
- Sigstore integration time:
-
Permalink:
qxbyte/codemap@6a4ae6cc7b079bd616cd9d9d1ad1ffb72483d34a -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/qxbyte
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6a4ae6cc7b079bd616cd9d9d1ad1ffb72483d34a -
Trigger Event:
push
-
Statement type:
File details
Details for the file codemap_c-0.2.0-py3-none-any.whl.
File metadata
- Download URL: codemap_c-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef06a8bff5bec8ee2704a3e5fcf5eb0b3c0c273c4f00b6514856985091cd0665
|
|
| MD5 |
6ea72e6761d70285d399ed25de1ed9cb
|
|
| BLAKE2b-256 |
6975934991548e0cde9cd443d77868fe164c582f0c5a533b3739bdc9b94381dc
|
Provenance
The following attestation bundles were made for codemap_c-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on qxbyte/codemap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codemap_c-0.2.0-py3-none-any.whl -
Subject digest:
ef06a8bff5bec8ee2704a3e5fcf5eb0b3c0c273c4f00b6514856985091cd0665 - Sigstore transparency entry: 1721348178
- Sigstore integration time:
-
Permalink:
qxbyte/codemap@6a4ae6cc7b079bd616cd9d9d1ad1ffb72483d34a -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/qxbyte
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6a4ae6cc7b079bd616cd9d9d1ad1ffb72483d34a -
Trigger Event:
push
-
Statement type: