On Tue, 08 Jan 2019, Bruno Santos <brunomanuelsantos@xxxxxxxxxxxxxxxxxx> wrote:
On 1/8/19 10:30 PM, Jani Nikula wrote:
On Tue, 08 Jan 2019, Bruno Santos <brunomanuelsantos@xxxxxxxxxxxxxxxxxx>
wrote:
Discarding comments that are not documentation early on saves a few
repeated lines of code later on in the recursive part of the comment
parser and a few dud iterations.
I didn't test... but does this change the behaviour for things like:
/**
* top level documentation comment
*/
/* meh */
int some_undocumented_function(void);
where the /* meh */ comment prevents the top level comment from becoming
documentation for the next cursor.
As it currently stands, the answer to the question is yes: the top level
comment is made top level, the function is undocumented, which is what I
would expect.
Is there a scenario where you'd like to have the opposite?
We probably should add a 'composition test' for cases like this.
Cheers
--
Bruno Santos
PGP KEY: 941052CD (pool.sks-keyservers.net)