[llvm-commits] [PATCH] Enable -Wdocumentation for LLVM and Clang

Chandler Carruth chandlerc at google.com
Wed Dec 26 15:32:09 PST 2012


FWIW, I'm not excited about 5% build time reduction for this warning.

I'd like to have it on, but I'd like someone to spend some time with a
profiler and see if the overhead can be pushed down closer to 1 or 2%... =/
Sadly, I don't have a lot of time to stare at this part of compile-time
performance.


On Wed, Dec 26, 2012 at 10:10 AM, Douglas Gregor <dgregor at apple.com> wrote:

> Yeah, LGTM.
>
> Sent from my iPhone
>
> On Dec 24, 2012, at 6:35 PM, Eric Christopher <echristo at gmail.com> wrote:
>
> Other than Takumi's comments the patches themselves look fine. No
> objections here.
>
> -eric
>
>
> On Mon, Dec 24, 2012 at 2:07 PM, NAKAMURA Takumi <geek4civic at gmail.com>wrote:
>
>> IMO, it would be odd with -Wno-documentation-deprecated-sync.
>> Could we clean them up?
>>
>> ...Takumi
>>
>> 2012/12/25 Dmitri Gribenko <gribozavr at gmail.com>:
>> > Hello,
>> >
>> > These patches enable -Wdocumentation
>> > -Wno-documentation-deprecated-sync for LLVM and Clang.  Please review.
>> >
>> > Nakamura-san has cleaned up the last documentation warnings, so
>> > enabling these flags now does not introduce new warnings during build.
>> >
>> > Build time difference is 4.4% .. 5.8% (95% confidence interval).
>> >
>> > Measurements are for configure-based Release+Asserts
>> > LLVM+Clang+compiler-rt build on a quad-core Linux desktop with SSD.
>> >
>> > Dmitri
>> >
>> > === Raw data and calculations ===
>> >
>> > Normal build:
>> > 12m24s = 744 s
>> > 12m16s = 736 s
>> > 12m25s = 745 s
>> >
>> > mean: 741.8 s
>> > std dev: 5.0
>> > 95% confidence interval: 736.1 s to 747.5 s
>> >
>> > With -Wdocumentation:
>> > 12m58s = 778s
>> > 12m59s = 779
>> > 13m0s  = 780s
>> >
>> > mean: 779.0 s
>> > std dev: 1
>> > 95% confidence interval: 779.1 s to 780.1 s
>> >
>> > Single core build time difference: 130.4 s .. 172.0 s
>> >
>> > --
>> > main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
>> > (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121226/9a2cffad/attachment.html>


More information about the llvm-commits mailing list