Changeset 285188 in webkit
- Timestamp:
- Nov 2, 2021, 3:19:22 PM (5 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
wtf/Assertions.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r285187 r285188 1 2021-11-02 David Kilzer <ddkilzer@apple.com> 2 3 [WTF] Minor clean-up for format-related functions 4 <https://webkit.org/b/232514> 5 6 Reviewed by Yusuke Suzuki. 7 8 * wtf/Assertions.cpp: 9 (WTF::createWithFormatAndArguments): 10 - Put WTF_ATTRIBUTE_PRINTF() on its own line to match other 11 functions. 12 (WTF::vprintf_stderr_with_prefix): 13 (WTF::vprintf_stderr_with_trailing_newline): 14 - Move ALLOW_NONLITERAL_FORMAT_{BEGIN,END} around specific 15 function calls that need them. 16 1 17 2021-11-02 Michael Catanzaro <mcatanzaro@gnome.org> 2 18 -
trunk/Source/WTF/wtf/Assertions.cpp
r284673 r285188 70 70 namespace WTF { 71 71 72 WTF_ATTRIBUTE_PRINTF(1, 0) static String createWithFormatAndArguments(const char* format, va_list args) 72 WTF_ATTRIBUTE_PRINTF(1, 0) 73 static String createWithFormatAndArguments(const char* format, va_list args) 73 74 { 74 75 va_list argsCopy; … … 183 184 } 184 185 185 ALLOW_NONLITERAL_FORMAT_BEGIN186 187 186 WTF_ATTRIBUTE_PRINTF(2, 0) 188 187 static void vprintf_stderr_with_prefix(const char* prefix, const char* format, va_list args) … … 195 194 formatWithPrefix[prefixLength + formatLength] = 0; 196 195 196 ALLOW_NONLITERAL_FORMAT_BEGIN 197 197 vprintf_stderr_common(formatWithPrefix.data(), args); 198 ALLOW_NONLITERAL_FORMAT_END 198 199 } 199 200 … … 212 213 formatWithNewline[formatLength + 1] = 0; 213 214 215 ALLOW_NONLITERAL_FORMAT_BEGIN 214 216 vprintf_stderr_common(formatWithNewline.data(), args); 215 } 216 217 ALLOW_NONLITERAL_FORMAT_END 217 ALLOW_NONLITERAL_FORMAT_END 218 } 218 219 219 220 WTF_ATTRIBUTE_PRINTF(1, 2)
Note:
See TracChangeset
for help on using the changeset viewer.