Skip to content

Support clang::annotated style annotation parsing via ast_canopy #268

@isVoid

Description

@isVoid

Example code:

[[ clang::annotate("numbast::TestAttr") ]]
double carrot([[clang::annotate("numbast::StatefulOperator")]] [[maybe_unused]] double num);

struct [[clang::annotate("aligned")]] Foo {
    [[clang::annotate("depracated")]] int bar;
};

Expected Result:

Declaration should contain a new attribute named annotations which contains a list of annotation strings.

Applicable to function, function paramDecls, struct decls and members.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions