Initial commit: rustytokens — native codebase indexer + MCP server

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
endergebnisandCopilot committed 2026-09-04 02:43:00 +02:00
commit 354132e887
43 files changed
+3783

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
#include "math.hpp"
int main() {
return Math::add(1, 2);
}
+13
View File
@@ -0,0 +1,13 @@
#include "math.hpp"
Math::Math(int scale) : scale_(scale) {
scale_ = scale;
}
Math::~Math() {
scale_ = 0;
}
int Math::add(int a, int b) { return a + b; }
int Math::scaled(int v) const { return v * scale_; }
+11
View File
@@ -0,0 +1,11 @@
#pragma once
class Math {
public:
Math(int scale);
~Math();
static int add(int a, int b);
int scaled(int v) const;
private:
int scale_;
};