[cfe-dev] clang does not support register variable ?

kevinlynx kevinlynx at gmail.com
Sat Jan 5 06:55:18 PST 2013


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<VarDecl>(decl);
       QualType t = var->getType();
       t.hasQualifiers(); // false
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130105/4bc7ca4f/attachment.html>


More information about the cfe-dev mailing list