Skip to main content

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


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.3.6.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codemap_c-0.3.6-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file codemap_c-0.3.6.tar.gz.

File metadata

  • Download URL: codemap_c-0.3.6.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

Hashes for codemap_c-0.3.6.tar.gz
Algorithm Hash digest
SHA256 277f9b4d080df3eae27814c30bbe4f3900e4766b3e901218e4e505574364a8df
MD5 eac60d27ac0996e3a039bb8e0718bb74
BLAKE2b-256 c4c1da22b58ff9751d4ba9d6e0f605da4d9ddbe1d0f08a4bdf4672bd8b77837f

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_c-0.3.6.tar.gz:

Publisher: publish.yml on qxbyte/codemap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codemap_c-0.3.6-py3-none-any.whl.

File metadata

  • Download URL: codemap_c-0.3.6-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

Hashes for codemap_c-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a95e3299b1ffb9e154f537935a8a11b687683b6362e0a972a3f1fcb3c1d28651
MD5 07a7d0b20d5d606fb27eb662eeea53ef
BLAKE2b-256 e6d004281352603495d90a130a619929b95fb56ab5caf60a5034092be41d89a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_c-0.3.6-py3-none-any.whl:

Publisher: publish.yml on qxbyte/codemap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page