<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 17/02/15 02:02, Sterling Augustine
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAEG7qUy_qFgcdyE27DDb+4LPMwf7e=b_azCdPmTc3LuC4YNpNg@mail.gmail.com"
      type="cite">
      <pre wrap="">Hello,

I'm working on a change that will enable a client to build an AST from
an input file, and then, based on the contents of that AST, add
additional tokens to be parsed. Richard Smith recommended adding a
feature to the parser to do this, but it turns out that there is
something quite close already: the IncrementalProcessing option, added
in r152914.</pre>
    </blockquote>
    <blockquote
cite="mid:CAEG7qUy_qFgcdyE27DDb+4LPMwf7e=b_azCdPmTc3LuC4YNpNg@mail.gmail.com"
      type="cite">
      <pre wrap="">

The enclosed patch moves the IncrementalProcessing from a Preprocessor
field--which is only accessible once the preprocessor is actually
built--into the PreprocessorOptions which is available to other
interfaces which don't expose the preprocessor itself, such as the
compiler invocation.</pre>
    </blockquote>
    The patch LGTM.<br>
    <blockquote
cite="mid:CAEG7qUy_qFgcdyE27DDb+4LPMwf7e=b_azCdPmTc3LuC4YNpNg@mail.gmail.com"
      type="cite">
      <pre wrap="">

There is only minimal testing of this feature inside
FrontendActionTest.cpp, but I have updated that as well. I will add
tests to exercise it more thoroughly once I know that this direction
is acceptable. The test itself uses two terms, calling it both
"IncrementalParsing" and "IncrementalProcessing". Not sure if that is
intentional or not.</pre>
    </blockquote>
    The reason we went for IncrementalProcessing is that it does more
    than just parsing, it allows clang to be able to continue working
    even upon seeing an EOF token.<br>
    Could you also add a test case maybe closer to your planned
    use-case?<br>
    Thanks,<br>
    Vassil<br>
    <blockquote
cite="mid:CAEG7qUy_qFgcdyE27DDb+4LPMwf7e=b_azCdPmTc3LuC4YNpNg@mail.gmail.com"
      type="cite">
      <pre wrap="">

Sterling

[with cc's to original contributor of the IncrmentalProcessing Axel Naumann]
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
cfe-commits mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
--------------------------------------------
Q: Why is this email five sentences or less?
A: <a class="moz-txt-link-freetext" href="http://five.sentenc.es">http://five.sentenc.es</a>
</pre>
  </body>
</html>