sighingnow / libclang

(Unofficial) Release libclang (clang.cindex) on pypi.
https://pypi.org/project/libclang
Other
81 stars 21 forks source link

Does libclang support the C++20 export keyword? #58

Closed michaelpauljohnson closed 1 year ago

michaelpauljohnson commented 1 year ago

Given Foo.cpp

export module Foo; export void foo(int) { };

I get

Kind UnexposedDecl Spelling Kind UnexposedDecl Spelling

when visitChildren is used on the TU.

Given Bar.cpp

export module Bar; export import :PartA; export import :PartB;

I get

Kind UnexposedDecl Spelling Kind ModuleImport Spelling Bar:PartA Kind ModuleImport Spelling Bar:PartB

when visitChildren is used on the TU i.e. there is some C++20 module support.

michaelpauljohnson commented 1 year ago

Apologies - I posted this to the wrong group.