ModulePrinter: Print decls from the same source file near each other.

This commit is contained in:
Xi Ge
2016-03-07 18:31:36 -08:00
parent 739c409140
commit a5c9072344
9 changed files with 79 additions and 10 deletions

View File

@@ -618,7 +618,10 @@ public:
uint64_t contextData) override;
Optional<StringRef> getGroupNameById(unsigned Id) const;
Optional<StringRef> getSourceFileNameById(unsigned Id) const;
Optional<StringRef> getGroupNameForDecl(const Decl *D) const;
Optional<StringRef> getSourceFileNameForDecl(const Decl *D) const;
void collectAllGroups(std::vector<StringRef> &Names) const;
Optional<CommentInfo> getCommentForDecl(const Decl *D) const;
Optional<CommentInfo> getCommentForDeclByUSR(StringRef USR) const;