Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vsapsai opened this issue Jun 15, 2015 · 4 comments
Closed

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

vsapsai opened this issue Jun 15, 2015 · 4 comments

Comments

@vsapsai
Copy link
Contributor

vsapsai commented Jun 15, 2015

Originally reported on Google Code with ID 170

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

Reported by florian.rathgeber on 2015-01-27 16:50:33

@vsapsai
Copy link
Contributor Author

vsapsai commented Jun 15, 2015

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

Reported by kim.grasman on 2015-01-27 17:28:37

@vsapsai
Copy link
Contributor Author

vsapsai commented Jun 15, 2015

Let me know if this helped, and I can close the issue. Thanks!

Reported by kim.grasman on 2015-02-04 20:55:30

@vsapsai
Copy link
Contributor Author

vsapsai commented Jun 15, 2015

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.

Reported by phomes on 2015-02-08 13:48:00

@vsapsai
Copy link
Contributor Author

vsapsai commented Jun 15, 2015

Thanks, this looks like it's working as intended.

Reported by kim.grasman on 2015-02-08 18:42:14

  • Status changed: NotABug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant