<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>do you want the location before or after the macro-expansion?</p>
    <p>Best, Jonas<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Am 21.09.2018 um 07:21 schrieb Xing GUO
      via cfe-dev:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACpMh+A6e-fUh98-x0C5v-4zyB9S22=9AXG5NzFy-FdwZ5LyuQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I'm reading the clang source codes, and a little bit
          confused about why we cannot get the location for end of a
          token that nested in macros.</div>
        <div><br>
        </div>
        <div>e.g.</div>
        <div>```cpp</div>
        <div>#define TEST_MACRO(x) ((void) x)</div>
        <div><br>
        </div>
        <div>... some codes</div>
        <div>TEST_MACRO(a && bbbbbb);<br>
        </div>
        <div>... some codes</div>
        <div>```</div>
        <div><br>
        </div>
        <div>I want a location that points to the end of `bbbbbb[exactly
          here]`.</div>
        <div><br>
        </div>
        <div>Is there any efficient way to achieve this? Thanks!</div>
        <div><br clear="all">
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div dir="ltr">Best Regards,
                          <div>Xing</div>
                          <div>
                            <div><br>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>