[ccache] Bug with clang

Eric Chamberland Eric.Chamberland at giref.ulaval.ca
Sat Mar 12 00:12:42 UTC 2016


We are happy using ccache with clang but I just discovered today that 
ccache hides documentation warnings!

I am using clang 3.7.1, ccache 3.2.4.

/opt/clang-3.7/bin/clang++ --version
clang version 3.7.1 (tags/RELEASE_371/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix

ccache --version
ccache version 3.2.4

Here is a small function file (foo.cc) with wrong doxygen documentation.

If I compile directly with clang++ I have 3 warnings:

/opt/clang-3.7/bin/clang++ -Weverything -c foo.cc
foo.cc:7:5: warning: '\return' command used in a comment that is 
attached to a function returning void [-Wdocumentation]
  * \return true there is no return value... 2nd warning
foo.cc:5:11: warning: parameter 'pThis' not found in the function 
declaration [-Wdocumentation]
  * \param pThis there is no such param... 1st warning...
foo.cc:10:6: warning: no previous prototype for function 'foo' 
void foo(){}

ok, so far so good...

But if I compile it with ccache, the 2 warnings about documentation are 

ccache /opt/clang-3.7/bin/clang++ -Weverything -c foo.cc
foo.cc:10:6: warning: no previous prototype for function 'foo' 
void foo(){}

My CC* environment variables:


How can I retrieve the documentation warnings with ccache?  Do I do 
something wrong?



-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.cc
Type: text/x-c++src
Size: 379 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/ccache/attachments/20160311/dbfe43bc/foo.cc>

More information about the ccache mailing list