[cfe-dev] how to get StringLiteral

Rambo hunanlwm at sina.cn
Sat Jun 7 05:57:09 PDT 2014


Hi,everyone

I want to get the location of StringLiteral constant,for example,

struct model {
  int len;
  char *string;
  char string1[10];
  int interp;
}; 

struct model ss[]= {
	{ 6, "*define*","*asdfs*",	 	1 },
	{ 4, "*else*","*sdfsf*",	 	0 }}
I want to get the StringLiterals of *define
*,*asdfs*,*else*,*sdfsf*

How can I do it or which API can help me?Thank you for your help.

Rambo



--
View this message in context: http://clang-developers.42468.n3.nabble.com/how-to-get-StringLiteral-tp4039913.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list