<div dir="ltr">Hi<div><br></div><div>I am wondering how one can teach his/her clang tool to consider compilation on certain architectures?<br><br>For example, my tool gets a certain declaration's Type size like this:</div><div><font size="1"><br></font></div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";line-height:19px;white-space:pre"><div><font size="1">sizeof_type_in_byte = ast_context.<span style="color:rgb(220,220,170)">getTypeInfo</span>(some_decl-><span style="color:rgb(220,220,170)">getType</span>()).<span style="color:rgb(156,220,254)">Width</span>/<span style="color:rgb(181,206,168)">8</span>;</font></div></div></div><div><br></div><div>I can't find a way to tell my ClangTool instance what architecture to consider when building the ASTs.</div><div>I looked at the argumentAdjusters, specifically tried out:</div><div><font size="1"><br></font></div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";line-height:19px;white-space:pre"><div><font size="1">Tool.<span style="color:rgb(220,220,170)">appendArgumentsAdjuster</span>(<span style="color:rgb(220,220,170)">clang::tooling::getInsertArgumentAdjuster</span>(<span style="color:rgb(206,145,120)">"-m32"</span>));</font></div></div></div><div><br></div><div>yet, this has no effect.</div><div><br></div><div>Could someone elaborate on this?</div><div>Thanks!</div><div><br></div><div><div><br></div>-- <br><div dir="ltr" class="m_-4148807797647945118m_6735699418395997919gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Mit freundlichen Grüßen,</div><div>Julian Müller<div><br></div></div></div></div></div></div></div></div>