[cfe-dev] How to get values from AttributeList

LUIS MIGUEL SANCHEZ GARCIA luismiguel.sanchez at uc3m.es
Fri Apr 17 08:05:41 PDT 2015


I would like to parser the values of a C++ attribute in clang, but I don't
know how to get the information from the AttributeList class.


For example, is it better to use?

   IdentifierLoc *Value1 = A.getArgAsIdent(0);
   IdentifierLoc *Value2 = A.getArgAsIdent(1);

   or

  Expr *Value1 = A.getArgAsExpr(0);
  Expr *Value2 = A.getArgAsExpr(1);

And later?

Thanks!

Best regards,
Luis.
-- 
-- 
-- 
--------------------------------------------------
Luis Miguel Sánchez García
Computer Architecture and Technology Area.
Office 2.2.B08
Computer Science Department. UNIVERSIDAD CARLOS III DE MADRID
Universidad Carlos III de Madrid
Avda. de la Universidad, 30
28911 Leganés - Madrid - Spain
e-mail: lmsan at arcos.inf.uc3m.es
        luismiguel.sanchez at uc3m.es

Phone: (+34) 91 624 5951

Linked-In: http://es.linkedin.com/in/lmsan
Twitter: http://twitter.com/lmsanchezgarcia
--------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150417/3909269b/attachment.html>


More information about the cfe-dev mailing list