[Serialization] Preparation for giving swiftdoc its own version

The functionality change in this commit is that the control block in a
swiftdoc file is validated rather than just being ignored. Tests in
following commit.
This commit is contained in:
Jordan Rose
2018-09-20 15:59:24 -07:00
parent 81c24cded6
commit f3ea8bdd55
9 changed files with 201 additions and 133 deletions

View File

@@ -548,6 +548,11 @@ private:
/// Returns false if there was an error.
bool readCommentBlock(llvm::BitstreamCursor &cursor);
/// Loads data from #ModuleDocInputBuffer.
///
/// Returns false if there was an error.
bool readModuleDocIfPresent();
/// Recursively reads a pattern from \c DeclTypeCursor.
llvm::Expected<Pattern *> readPattern(DeclContext *owningDC);