[incrParse] Support incremental parsing for edited files

This commit is contained in:
Alex Hoppen
2018-05-03 16:07:48 -07:00
parent ea5e4e224a
commit de9737c946
15 changed files with 230 additions and 7 deletions

View File

@@ -521,6 +521,13 @@ public:
/// \brief Skip until the next '#else', '#endif' or until eof.
void skipUntilConditionalBlockClose();
/// If the parser is generating only a syntax tree, try loading the current
/// node from a previously generated syntax tree.
/// Returns \c true if the node has been loaded and inserted into the current
/// syntax tree. In this case the parser should behave as if the node has
/// successfully been created.
bool loadCurrentSyntaxNodeFromCache();
/// Parse an #endif.
bool parseEndIfDirective(SourceLoc &Loc);