improve C parser for comments and report comment changes
please run a simple diff with semanticmerge
It will tell you that the include <...> has been changed, not the comment
4
votes
Christian
shared this idea
-
Hi Christian,
Look, the thing is that in Semantic comments are linked to the next declaration. So, consider the following function:
// this is a comment
int main()
{
checkPrimeNumber();
return 0;
}The comment is considered to be linked to the main function in this case.
Obviously for file-wide comments this is not good, so maybe we should add something specific to handle these cases.
Any thoughts will be appreciated.
pablo
-
Thanks Christian. We will take a look into it.