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
![](https://secure.gravatar.com/avatar/464d5f8cfa84eefd80da39f27acdf145?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
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.