xoofx / CppAst.NET

CppAst is a .NET library providing a C/C++ parser for header files powered by Clang/libclang with access to the full AST, comments and macros
BSD 2-Clause "Simplified" License
501 stars 66 forks source link

Parsing comments on function parameters? #88

Open DiasFranciscoA opened 10 months ago

DiasFranciscoA commented 10 months ago

I can see that the parameters for functions have a comment field but it seems to always be null? 🤔 Is there a way for them to be parsed and how should the comments be placed?

I tried:

double my_func(double /*comments*/ myParam) { }
double my_func( /*comments*/ double myParam) { }
double my_func(double myParam /*comments*/) { }
xoofx commented 9 months ago

Clang parses doxygen C++ style comments