Browse Source

Fixed a couple minor Clang parser warnings on Clang/OSX.

pull/890/head
Joao Matos 8 years ago
parent
commit
54434454c9
  1. 4
      src/CppParser/Parser.cpp

4
src/CppParser/Parser.cpp

@ -1526,6 +1526,7 @@ static CXXMethodKind GetMethodKindFromDecl(clang::DeclarationName Name) @@ -1526,6 +1526,7 @@ static CXXMethodKind GetMethodKindFromDecl(clang::DeclarationName Name)
switch(Name.getNameKind())
{
case DeclarationName::Identifier:
case DeclarationName::CXXDeductionGuideName:
case DeclarationName::ObjCZeroArgSelector:
case DeclarationName::ObjCOneArgSelector:
case DeclarationName::ObjCMultiArgSelector:
@ -2526,6 +2527,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL, @@ -2526,6 +2527,7 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
{
case clang::NestedNameSpecifier::SpecifierKind::TypeSpec:
case clang::NestedNameSpecifier::SpecifierKind::TypeSpecWithTemplate:
{
const auto& Qualifier = clang::QualType(DN->getQualifier()->getAsType(), 0);
if (LocValid)
{
@ -2547,6 +2549,8 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL, @@ -2547,6 +2549,8 @@ Type* Parser::WalkType(clang::QualType QualType, const clang::TypeLoc* TL,
}
break;
}
default: break;
}
DNT->identifier = DN->getIdentifier()->getName();
Ty = DNT;

Loading…
Cancel
Save