]> granicus.if.org Git - clang/commit
From Vassil Vassilev:
authorAxel Naumann <Axel.Naumann@cern.ch>
Fri, 16 Mar 2012 10:40:17 +0000 (10:40 +0000)
committerAxel Naumann <Axel.Naumann@cern.ch>
Fri, 16 Mar 2012 10:40:17 +0000 (10:40 +0000)
commite55329d6834647ba0e06f8a319e5d84c77310035
tree0c6e357ffd543707ccfbc659b7657a74ab64d445
parentc5d3e80c64af9604ad798282cc6861f9cd2afc52
From Vassil Vassilev:
Enable incremental parsing by the Preprocessor,
where more code can be provided after an EOF.
It mainly prevents the tearing down of the topmost lexer.
To be used like this:
PP.enableIncrementalProcessing();
while (getMoreSource()) {
  while (Parser.ParseTopLevelDecl(ADecl)) {...}
}
PP.enableIncrementalProcessing(false);

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152914 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/Preprocessor.h
lib/Lex/PPLexerChange.cpp
lib/Lex/Preprocessor.cpp
lib/Parse/Parser.cpp