Hi! > > And the tool should, in my opinion, do what is the most reasonable > > action by default. > > I guess that there are some software development challenges for > further considerations.
Indeed, unfortunatelly I do not expect this to be solved without some trial and error. > Which rules do you use for the connection of a specific amount > of comments to statements in other source code places? I may see this overly simplistic but there are two types of comment in common use. Comments on a separate line(s) that most of the time belongs to the closest code block. Then there are comments that continue after the semicolon to the end of the line and these to belong to the same line as the code beforehand. There may be far more strange special cases, but for 99% of situations these two classes should work. But as I said I do not expect this to be solved without some trial and error. -- Cyril Hrubis [email protected] _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
