Skip to main content

C++ language indexer plugin for CodeMap

Project description

codemap-cpp

A C++ language indexer for CodeMap, shipped as an independent PyPI package.

What it captures

Backed by tree-sitter-cpp:

AST node Symbol kind
namespace_definition namespace prefix (recursed into)
class_specifier (named, with body) class (extra.cpp_kind=class)
struct_specifier (named, with body) class (extra.cpp_kind=struct)
union_specifier (named, with body) class (extra.cpp_kind=union)
enum_specifier class (extra.cpp_kind=enum)
function_definition (top-level or in namespace) function
function_definition (inside class body) method
field_declaration (data member) field
template_declaration wrapping any of the above unwraps to the inner declaration

Install

pip install "git+https://github.com/qxbyte/codemap.git#subdirectory=plugins/codemap-cpp"

File patterns

  • *.cpp, *.cc, *.cxx, *.hpp, *.hh, *.hxx

Limits

  • Out-of-class method definitions (void Foo::bar() { ... }) appear as free functions, not as members of Foo.
  • using declarations and aliases are not emitted as symbols.
  • Macro-only #define constants are not captured (see codemap-c).

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_cpp-0.1.0a1.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_cpp-0.1.0a1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file codemap_cpp-0.1.0a1.tar.gz.

File metadata

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

Hashes for codemap_cpp-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 8e36458f11a6ef8570eca2e16d160c7e143f9809e7d080954e1ab7ba98342f06
MD5 6af95893d80490ab022945ec9ca08562
BLAKE2b-256 ad2bf33b777da8c1ae6125e174a023114ecaa6849aabfd5dcf25213e51590c5d

See more details on using hashes here.

File details

Details for the file codemap_cpp-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: codemap_cpp-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for codemap_cpp-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 7107d2b692fd013bc6e7909f037daf9e1e8dc0a48bc9a48a9cae6f98851672cd
MD5 a458f6ed3e4886dce3e4a6c20294b920
BLAKE2b-256 540972aa5f73945321b6118234a23885a28446b442213a8e924a8465fba6efff

See more details on using hashes here.

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