codinuum / cca

Code Continuity Analysis Framework
https://codinuum.github.io/gallery-cca/
Apache License 2.0
20 stars 5 forks source link

cpp parser: not parsing function type that returns const #19

Closed petr-bauch closed 2 years ago

petr-bauch commented 2 years ago

Hey team, your project is amazing. I noticed that the following c++ code:

static_assert(std::is_same_v<A, const int&(int)>);

does not parse, but this one does:

static_assert(std::is_same_v<A, int&(int)>);
codinuum commented 2 years ago

Thank you for reporting! We will look into it.

codinuum commented 2 years ago

We have just fixed the parser in the develop branch. Could you try it?

petr-bauch commented 2 years ago

Wow. Thank you so much for such a quick fix. Works as expected.