Hello,<br><br>I am trying to add a new qualifier to the existing clang architecture. So far I was looking into replacing one of the existing qualifiers "volatile or restrict" from the "fast qualifiers". Now I think its a bad idea to do that. Can someone tell me <br>
<br>>> whats the best way to add a new type quailfier?<br>>> Why are there only 3 fast qualifiers added to the qualtype?<br>>> How can I increase the size of the fast qualifiers, I mean how to add new qualifier to qualtype without actually disturbing the existing fast quals : const, volatile, restrict.<br>
<br>I was looking into :<br><br>enum TQ { // NOTE: These flags must be kept in sync with DeclSpec::TQ.<br> Const = 0x1,<br> Restrict = 0x2,<br> Volatile = 0x4,<br><br>+ new_qualifier = 0x8,<br><br>+ CVRMask = Const | Volatile | Restrict | new_qualifier<br>
<br> };<br clear="all"><br>enum {<br> /// The maximum supported address space number.<br> /// 24 bits should be enough for anyone.<br> MaxAddressSpace = 0xffffffu,<br><br> /// The width of the "fast" qualifier mask.<br>
- FastWidth = 2,<br>+ FastWidth = 3,<br><br> /// The fast qualifier mask.<br> FastMask = (1 << FastWidth) - 1<br>};<br><br>and working on changing the APIs of the Type.h file inside Clang/AST. <br>am I looking in a right direction here? can an expert give a reply.<br>
<br>Thanks.<br>-- <br>Kalyan Ponnala<br>phone: 8163772059<br>
<div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>