Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Unified Diff: runtime/vm/il_printer.h

Issue 10869063: Add attributions so printf like functions can have their arguments checked. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/heap_profiler.cc ('k') | runtime/vm/il_printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/il_printer.h
diff --git a/runtime/vm/il_printer.h b/runtime/vm/il_printer.h
index 347865b613faac358b707ea04bc5eb1cafffa5ed..a6e310c319b9e305f8382809a79a77b52962e30f 100644
--- a/runtime/vm/il_printer.h
+++ b/runtime/vm/il_printer.h
@@ -18,7 +18,7 @@ class BufferFormatter : public ValueObject {
size_(size) { }
void VPrint(const char* format, va_list args);
- void Print(const char* format, ...);
+ void Print(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
private:
intptr_t position_;
@@ -72,7 +72,7 @@ class FlowGraphVisualizer : public ValueObject {
private:
// Helpers for printing.
void PrintInstruction(Instruction* instr);
- void Print(const char* format, ...);
+ void Print(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
const Function& function_;
const GrowableArray<BlockEntryInstr*>& block_order_;
« no previous file with comments | « runtime/vm/heap_profiler.cc ('k') | runtime/vm/il_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698