compiler-research / CppInterOp

A Clang-based C++ Interoperability Library
Other
51 stars 22 forks source link

Implement IsConstMethod #13

Closed vgvassilev closed 1 year ago

vgvassilev commented 1 year ago

In the unittests we have a test checking if a method is const. We should provide the relevant implementation for it.

https://github.com/compiler-research/InterOp/blob/a16dedef4d8fa7d5833b179954c073726016d4bf/unittests/InterOp/FunctionReflectionTest.cpp#L607-L621

rajeck1234 commented 1 year ago

std::vector<Decl*> Decls, SubDecls; std::string code = R"( class C { void f1() const {} const void f1() {} void f2() {} }; )";

rajeck1234 commented 1 year ago

@vgvassilev now i merge it in fork i think it gonna work

vgvassilev commented 1 year ago

You will need to open a proper pull request and follow the general workflow that we have.

Smit1603 commented 1 year ago
vgvassilev commented 1 year ago

Sure, go for it.