ASTPrinter: Pass the bracket options to pre and post printing callbacks.

Need this for rdar://24912860
This commit is contained in:
Xi Ge
2016-03-22 11:34:15 -07:00
parent f79a741a7d
commit 33c53a12eb
9 changed files with 69 additions and 51 deletions

View File

@@ -91,7 +91,7 @@ public:
assert(EntitiesStack.empty());
}
void printDeclPre(const Decl *D) override {
void printDeclPre(const Decl *D, Optional<BracketOptions> Bracket) override {
if (isa<ParamDecl>(D))
return; // Parameters are handled specially in addParameters().
unsigned StartOffset = OS.tell();
@@ -105,7 +105,7 @@ public:
}
}
void printDeclPost(const Decl *D) override {
void printDeclPost(const Decl *D, Optional<BracketOptions> Bracket) override {
if (isa<ParamDecl>(D))
return; // Parameters are handled specially in addParameters().