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

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

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 years, 11 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 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) WTF_ATTRIBUTE_PRINTF(1, 0 ); 40 WTF_EXPORT void dataLogFV(const char* format, va_list)
41 WTF_ATTRIBUTE_PRINTF(1, 0);
41 WTF_EXPORT void dataLogF(const char* format, ...) WTF_ATTRIBUTE_PRINTF(1, 2); 42 WTF_EXPORT void dataLogF(const char* format, ...) WTF_ATTRIBUTE_PRINTF(1, 2);
42 WTF_EXPORT void dataLogFString(const char*); 43 WTF_EXPORT void dataLogFString(const char*);
43 44
44 template<typename... T> 45 template <typename... T>
45 void dataLog(const T&... values) 46 void dataLog(const T&... values) {
46 { 47 dataFile().print(values...);
47 dataFile().print(values...);
48 } 48 }
49 49
50 } // namespace WTF 50 } // namespace WTF
51 51
52 using WTF::dataLog; 52 using WTF::dataLog;
53 using WTF::dataLogF; 53 using WTF::dataLogF;
54 using WTF::dataLogFString; 54 using WTF::dataLogFString;
55 55
56 #endif // DataLog_h 56 #endif // DataLog_h
57
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/CurrentTime.cpp ('k') | third_party/WebKit/Source/wtf/DataLog.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698