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

LLVM 6 support #8

Closed
wants to merge 1 commit into from
Closed

LLVM 6 support #8

wants to merge 1 commit into from

Conversation

ZaWertun
Copy link
Contributor

  1. QualTypeNames.h moved from Tooling/Core to AST;
  2. Change PointerType -> clang::PointerType fixes compilation warning include/clang_type_name.hpp:445:12: error: reference to 'PointerType' is ambiguous;
  3. Include of QualTypeNames.h removed from type_helper.cpp because it will be included by clang_type_name.hpp 6 lines later.

@@ -438,7 +442,7 @@ namespace ClangTypeName {
bool WithGlobalNsPrefix) {
// In case of myType* we need to strip the pointer first, fully
// qualify and attach the pointer once again.
if (isa<PointerType>(QT.getTypePtr())) {
if (isa<clang::PointerType>(QT.getTypePtr())) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a small comment that clang:: prevents a warning?

@Papierkorb
Copy link
Owner

That's pretty rad, thanks, I'll take a look later!

@shayneoneill
Copy link

bump!

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

Successfully merging this pull request may close these issues.

None yet

3 participants