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

Side by Side Diff: third_party/WebKit/Source/wtf/DataLog.h

Issue 2513363002: Remove WTF_ATTRIBUTE_PRINTF. (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 19 matching lines...) Expand all
30 #include "wtf/FilePrintStream.h" 30 #include "wtf/FilePrintStream.h"
31 #include "wtf/WTFExport.h" 31 #include "wtf/WTFExport.h"
32 32
33 #include <stdarg.h> 33 #include <stdarg.h>
34 #include <stdio.h> 34 #include <stdio.h>
35 35
36 namespace WTF { 36 namespace WTF {
37 37
38 FilePrintStream& dataFile(); 38 FilePrintStream& dataFile();
39 39
40 WTF_EXPORT void dataLogFV(const char* format, va_list) 40 WTF_EXPORT PRINTF_FORMAT(1, 0) void dataLogFV(const char* format, va_list);
41 WTF_ATTRIBUTE_PRINTF(1, 0); 41 WTF_EXPORT PRINTF_FORMAT(1, 2) void dataLogF(const char* format, ...);
42 WTF_EXPORT void dataLogF(const char* format, ...) WTF_ATTRIBUTE_PRINTF(1, 2);
43 42
44 template <typename... T> 43 template <typename... T>
45 void dataLog(const T&... values) { 44 void dataLog(const T&... values) {
46 dataFile().print(values...); 45 dataFile().print(values...);
47 } 46 }
48 47
49 } // namespace WTF 48 } // namespace WTF
50 49
51 using WTF::dataLog; 50 using WTF::dataLog;
52 using WTF::dataLogF; 51 using WTF::dataLogF;
53 52
54 #endif // DataLog_h 53 #endif // DataLog_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698