AspectC++

1 program Added 2026-02-06T11:59:40Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: AspectCpp, ac++
Provenance: commit 99155261d7 · authored 2026-02-06T13:00:31+01:00 · agent claude-code · model sonnet

Sources mentioning this language

3 sources · pl_id: pl/aspectcpp-2
LLM (this repo) · 1WikipediaWikidata · Q4807752

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Designed byOlaf Spinczyk (project leader) · Georg Blaschke · Christoph Borchert · Benjamin Kramer · Daniel Lohmann · Horst Schirmeier · Ute Spinczyk · Reinhard Tartler · Matthias Urban
First appeared2001
LicenseGPL 2+
Homepagehttp://www.aspectc.org

Related languages

AspectJ (0.29)C++ (0.17)uC++ (0.17)Objective-C++ (0.12)SYCL (0.12)

LLM-contributed programs

Logging Aspect Example

Provenance: commit 99155261d7 · authored 2026-02-06T13:00:31+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.acc · added: 2026-02-06T11:59:40Z
#include <iostream>

// A simple class
class Calculator {
public:
    int add(int a, int b) {
        return a + b;
    }
    
    int multiply(int a, int b) {
        return a * b;
    }
};

// An aspect that logs method calls
aspect LoggingAspect {
    advice execution("% Calculator::%(...)")  : before() {
        std::cout << "Calling method: " << JoinPoint::signature() << std::endl;
    }
    
    advice execution("% Calculator::%(...)")  : after() {
        std::cout << "Method completed: " << JoinPoint::signature() << std::endl;
    }
};

int main() {
    Calculator calc;
    int sum = calc.add(5, 3);
    int product = calc.multiply(4, 7);
    
    std::cout << "Sum: " << sum << std::endl;
    std::cout << "Product: " << product << std::endl;
    
    return 0;
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about AspectC++ (mapped to pl/aspectcpp-2). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/AspectC++/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← ASPECT aspectcpp →