[Serialization] Serialize the source order of Decls appearing in their original source file.

We used to think the source order is preserved after de-serialization; however, this seems to be
not the case.
This commit is contained in:
Xi Ge
2016-03-08 11:00:00 -08:00
parent 7a3276738b
commit c84f667676
9 changed files with 54 additions and 4 deletions

View File

@@ -140,8 +140,11 @@ public:
Optional<StringRef> getGroupNameForDecl(const Decl *D) const override;
Optional<StringRef> getSourceFileNameForDecl(const Decl *D) const override;
Optional<unsigned> getSourceOrderForDecl(const Decl *D) const override;
void collectAllGroups(std::vector<StringRef> &Names) const override;
virtual void getTopLevelDecls(SmallVectorImpl<Decl*> &results) const override;