Usually the cfe-dev mailing list is better for questions like this.

The type “int” is ASTContext::IntTy.  You can use QualType::withConst to add a 
“const” qualifier, and ASTContext::getPointerType to construct a pointer type.  
Putting that together, you can construct a “const int*” with something like 

If you haven’t looked at the documentation yet, you might want to read and .


From: cfe-commits <> On Behalf Of Monalisa 
Rout via cfe-commits
Sent: Thursday, August 15, 2019 7:03 AM
Subject: [EXT] QualType

I want to create QualType instances for const int, int* const,  and const int* 
How can I do that??

cfe-commits mailing list
  • QualType Monalisa Rout via cfe-commits
    • RE: QualType Eli Friedman via cfe-commits

Reply via email to