Browse Source

Implemented support for parsing C++11 atomic types.

pull/560/head
triton 10 years ago
parent
commit
54267b88a4
  1. 11
      src/CppParser/Parser.cpp

11
src/CppParser/Parser.cpp

@ -1628,6 +1628,17 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, @@ -1628,6 +1628,17 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL,
assert(Type && "Expected a valid type");
switch(Type->getTypeClass())
{
case clang::Type::Atomic:
{
auto Atomic = Type->getAs<clang::AtomicType>();
assert(Atomic && "Expected an atomic type");
TypeLoc Next;
if (TL && !TL->isNull()) Next = TL->getNextTypeLoc();
Ty = WalkType(Atomic->getValueType(), &Next);
break;
}
case clang::Type::Attributed:
{
auto Attributed = Type->getAs<clang::AttributedType>();

Loading…
Cancel
Save