Merge pull request #34612 from xymus/dont-skip-nested-types

[Sema] Add flag to optimize building swiftmodule files preserving type info for LLDB
This commit is contained in:
Alexis Laferrière
2020-11-12 19:16:21 -08:00
committed by GitHub
9 changed files with 157 additions and 75 deletions

View File

@@ -687,7 +687,10 @@ public:
/// Skip a braced block (e.g. function body). The current token must be '{'.
/// Returns \c true if the parser hit the eof before finding matched '}'.
bool skipBracedBlock();
///
/// Set \c HasNestedTypeDeclarations to true if a token for a type
/// declaration is detected in the skipped block.
bool skipBracedBlock(bool &HasNestedTypeDeclarations);
/// Skip over SIL decls until we encounter the start of a Swift decl or eof.
void skipSILUntilSwiftDecl();