http://llvm.org/bugs/show_bug.cgi?id=21491
Bug ID: 21491
Summary: Add to C libclang API the ability to detect whether
namespace are inline, whether a template type is a
pack, and whether an enum is scoped
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: libclang
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Inline namespaces:
bool isInline=false;
{
using namespace clang;
const Decl *D = static_cast<const Decl *>(cursor.data[0]);
if(const NamespaceDecl *TD = dyn_cast_or_null<NamespaceDecl>(D))
{
isInline=TD->isInline();
}
}
Parameter packs:
bool isPack=false;
{
using namespace clang;
QualType T =
QualType::getFromOpaquePtr(type.data[0]);
if (!T.isNull())
{
isPack=T->containsUnexpandedParameterPack();
}
}
Scoped enums:
bool isScoped=false;
{
using namespace clang;
const Decl *D = static_cast<const Decl *>(cursor.data[0]);
if(const EnumDecl *TD = dyn_cast_or_null<EnumDecl>(D))
{
isScoped=TD->isScoped();
}
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs