| Index: src/ast/prettyprinter.h
|
| diff --git a/src/ast/prettyprinter.h b/src/ast/prettyprinter.h
|
| index 0186203d27d99a702d22e7ec26d7fb3333b0d2fa..4e90294ca987a9d4b707fb8519608671613219ae 100644
|
| --- a/src/ast/prettyprinter.h
|
| +++ b/src/ast/prettyprinter.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "src/allocation.h"
|
| #include "src/ast/ast.h"
|
| +#include "src/base/compiler-specific.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
| @@ -20,7 +21,7 @@ class CallPrinter : public AstVisitor {
|
| // string. The result string is alive as long as the CallPrinter is alive.
|
| const char* Print(FunctionLiteral* program, int position);
|
|
|
| - void Print(const char* format, ...);
|
| + void PRINTF_FORMAT(2, 3) Print(const char* format, ...);
|
|
|
| void Find(AstNode* node, bool print = false);
|
|
|
| @@ -62,7 +63,7 @@ class PrettyPrinter: public AstVisitor {
|
| const char* PrintExpression(FunctionLiteral* program);
|
| const char* PrintProgram(FunctionLiteral* program);
|
|
|
| - void Print(const char* format, ...);
|
| + void PRINTF_FORMAT(2, 3) Print(const char* format, ...);
|
|
|
| // Print a node to stdout.
|
| static void PrintOut(Isolate* isolate, AstNode* node);
|
|
|