I am all for not having to add \brief. The more readable the comments are for someone not using doxygen the better.
On May 26, 2015, at 3:48 PM, Chandler Carruth <chan...@google.com> wrote:So, I'd love to not have to write '\brief' but that's not what this gives us sadly.
The behavior of autobrief is that the brief snippet stops at the first '.' in the text. It doesn't matter if that '.' is part of code or anything else.
The behavior of the '\brief' command is that the paragraph it marks is the brief comment, and the detailed one starts with the next paragraph.I want the second behavior, and *not* the first. Turning on the autobrief setting and encouraging its use will just cause us to have bad brief comments in the doxygen and easy to read source code. =/ I'd actually rather we write the (annoying and ugly) '\brief' command in the comments until the tools for extracting this are fixed to do something more sensible.
Huh. I knew this was what autobrief does. I thought `\brief`
had the same behaviour though. (IMO, you should be able to
write a one-sentence high-level description for every function;
if people want details they can look/click through.)
>>
>> The behavior of the '\brief' command is that the paragraph it marks is the brief comment, and the detailed one starts with the next paragraph.
>>
>> I want the second behavior, and *not* the first. Turning on the autobrief setting and encouraging its use will just cause us to have bad brief comments in the doxygen and easy to read source code. =/ I'd actually rather we write the (annoying and ugly) '\brief' command in the comments until the tools for extracting this are fixed to do something more sensible.
>
> But there is also a problem with the current setting: Several people don't care or forget to add \brief commands. In fact I'm pretty sure enabling autobrief fixes more places where \brief was accidentally forgotten than we would risk to have bad brief sections because of unintuitive autobrief behaviour. In any both problems can be easily fixed once noticed.
>
> My main motivation to do this change: While I do care a lot about well documented interfaces; I do not care so much about the generated doxygen html pages. I'd dare to say the majority of llvm developers only looks at the headers and not the generated pages. So aiming for less \brief noise in the headers is a good thing.
>
Personally, I never look at the html, just the headers. But I
know other people that use them. I think it depends on how
comfortable people are with their editors, really, and it's
important to support both workflows.
But the auto-brief behaviour seems right most of the time, and
you can add "\brief" when you really need a multi-sentence
not-so-brief comment. I prefer the new style.
> On 2015-May-26, at 16:56, Matthias Braun <ma...@braunis.de> wrote:
>
>
>
> - Matthias
>
>> On May 26, 2015, at 3:48 PM, Chandler Carruth <chan...@google.com> wrote:
>>
>> So, I'd love to not have to write '\brief' but that's not what this gives us sadly.
>>
>> The behavior of autobrief is that the brief snippet stops at the first '.' in the text. It doesn't matter if that '.' is part of code or anything else.
> Yes, I also find the autobrief setting annoying that it stops at the first dot and not takes the first paragraph. In any way I documented this behaviour in the llvm coding standards.
Huh. I knew this was what autobrief does. I thought `\brief`
had the same behaviour though. (IMO, you should be able to
write a one-sentence high-level description for every function;
if people want details they can look/click through.)
>>
>> The behavior of the '\brief' command is that the paragraph it marks is the brief comment, and the detailed one starts with the next paragraph.
>>
>> I want the second behavior, and *not* the first. Turning on the autobrief setting and encouraging its use will just cause us to have bad brief comments in the doxygen and easy to read source code. =/ I'd actually rather we write the (annoying and ugly) '\brief' command in the comments until the tools for extracting this are fixed to do something more sensible.
>
> But there is also a problem with the current setting: Several people don't care or forget to add \brief commands. In fact I'm pretty sure enabling autobrief fixes more places where \brief was accidentally forgotten than we would risk to have bad brief sections because of unintuitive autobrief behaviour. In any both problems can be easily fixed once noticed.
>
> My main motivation to do this change: While I do care a lot about well documented interfaces; I do not care so much about the generated doxygen html pages. I'd dare to say the majority of llvm developers only looks at the headers and not the generated pages. So aiming for less \brief noise in the headers is a good thing.
>
Personally, I never look at the html, just the headers. But I
know other people that use them. I think it depends on how
comfortable people are with their editors, really, and it's
important to support both workflows.