[cfe-dev] Understanding Clang parsing
Chris Lattner
clattner at apple.com
Wed Mar 3 22:49:56 PST 2010
On Mar 3, 2010, at 8:44 PM, Charles Davis wrote:
> On 3/3/10 9:15 PM, kalyan ponnala wrote:
>> Hi again,
>>
>> Could you tell me what's a Qualtype in detail. How does it save space
>> for representing different types ?
> A QualType holds a pointer to a Type object as well as qualifiers such
> as 'const', 'volatile', and 'restrict'. This way, we don't have to have
> separate Type objects for 'int', 'const int', 'volatile int', 'const
> volatile int', etc.
This is a useful resource:
http://clang.llvm.org/docs/InternalsManual.html
-Chris
More information about the cfe-dev
mailing list