Metadata-Version: 2.4
Name: rbtr-lang-cpp
Version: 2026.9.0.dev3
Summary: rbtr — C++ language plugin
Keywords: code-search,code-index,tree-sitter,static-analysis,semantic-search,developer-tools,cpp,c++
Author: Alejandro Giacometti
Author-email: Alejandro Giacometti <alejandro.giacometti@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: C++
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Text Processing :: Indexing
Classifier: Typing :: Typed
Requires-Dist: rbtr==2026.9.0.dev3
Requires-Dist: tree-sitter-cpp
Requires-Python: >=3.13
Project-URL: Homepage, https://github.com/janrito/rbtr
Project-URL: Repository, https://github.com/janrito/rbtr
Project-URL: Documentation, https://github.com/janrito/rbtr/tree/main/packages/rbtr-lang-cpp#readme
Project-URL: Issues, https://github.com/janrito/rbtr/issues
Project-URL: Changelog, https://github.com/janrito/rbtr/releases
Description-Content-Type: text/markdown

# rbtr-lang-cpp

C++ support for [rbtr]. A **default** plugin — installed with rbtr
itself (`pip install rbtr`).

[rbtr]: https://github.com/janrito/rbtr/tree/main/packages/rbtr#readme

## What it ingests

- **Functions** — free functions and function templates.
- **Classes** — classes, structs, and enums.
- **Methods** — member functions and constructors, scoped to their class.
- **Variables** — namespace-level and top-level variables.
- **Imports** — `#include` headers.

Scope uses `::` and includes the enclosing namespace.

## Chunks produced

```cpp
int add(int a, int b) { … }        // function "add"
namespace ui {                     //
  class Widget { void draw(); };   //   class "Widget"; method "draw" scope "ui::Widget"
  int count = 0;                   //   variable "count", scope "ui"
}
#include <vector>                  // import, metadata {module: vector}
```

## Embedded / injected chunks

None. C++ does not embed other languages.

## Grammar & dependencies

Uses the `tree-sitter-cpp` grammar. No dependency on other language plugins.
