clang does not support register variable ?

If i defined a variable with register qualifier:

register int a = 0

and variable a does not get a qualifier, how to tell if a has register qualifier ?

VarDecl *var = cast(decl);
QualType t = var->getType();
t.hasQualifiers(); // false

This is not a qualifier, it's a storage class specifier.


I don't think that "qualifier" is not the right terminology for
`register` in this situation. VarDecl::getStorageClass() [1] seems to
be what you are looking for.

[1] <>