yodamaster / include-what-you-use

Automatically exported from code.google.com/p/include-what-you-use
Other
0 stars 0 forks source link

Does not build out-of-source with clang 3.5 #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?  Give the *exact* arguments passed
to include-what-you-use, and attach the input source file that gives the
problem (minimal test-cases are much appreciated!)
1. Checkout r596
2. Build out-of-source with CMake as per the instructions using clang 3.5

What is the expected output? What do you see instead?

Fails to build with the following error message (and more, only giving the 
first for reference):

include-what-you-use/iwyu.cc:3770:40: error: conflicting return type specified 
for ‘virtual std::unique_ptr<clang::ASTConsumer> 
include_what_you_use::IwyuAction::CreateASTConsumer(clang::CompilerInstance&, 
llvm::StringRef)’
   virtual std::unique_ptr<ASTConsumer> CreateASTConsumer(
                                        ^

What version of the product are you using? On what operating system?

r596, clang 3.5 (release), OpenSuSE 13.1 x64

Original issue reported on code.google.com by florian....@gmail.com on 27 Jan 2015 at 4:50

GoogleCodeExporter commented 9 years ago
IWYU trunk is in sync with Clang trunk.

If you want to build against clang 3.5, use our tag for the purpose:
https://code.google.com/p/include-what-you-use/source/browse/#svn%2Ftags%2Fclang
_3.5

Original comment by kim.gras...@gmail.com on 27 Jan 2015 at 5:28

GoogleCodeExporter commented 9 years ago
Let me know if this helped, and I can close the issue. Thanks!

Original comment by kim.gras...@gmail.com on 4 Feb 2015 at 8:55

GoogleCodeExporter commented 9 years ago
I saw the same issue when building iwyu trunk with clang 3.5. Building from the 
iwyu 3.5 tarball worked. I think this can be closed.

Original comment by pho...@gmail.com on 8 Feb 2015 at 1:48

GoogleCodeExporter commented 9 years ago
Thanks, this looks like it's working as intended.

Original comment by kim.gras...@gmail.com on 8 Feb 2015 at 6:42