Merge pull request #5059 from geoffw0/mswprintf

C++: Exclude custom vprintf implementations from primitiveVariadicFormatter.
This commit is contained in:
Jonas Jensen
2021-02-02 15:13:25 +01:00
committed by GitHub
4 changed files with 10 additions and 9 deletions

View File

@@ -1,3 +1,3 @@
| printf.cpp:33:31:33:37 | test | This argument should be of type 'char *' but is of type 'char16_t *' |
| printf.cpp:45:29:45:35 | test | This argument should be of type 'char *' but is of type 'char16_t *' |
| printf.cpp:52:29:52:35 | test | This argument should be of type 'char16_t *' but is of type 'wchar_t *' |
| printf.cpp:31:31:31:37 | test | This argument should be of type 'char *' but is of type 'char16_t *' |
| printf.cpp:43:29:43:35 | test | This argument should be of type 'char *' but is of type 'char16_t *' |
| printf.cpp:50:29:50:35 | test | This argument should be of type 'char16_t *' but is of type 'wchar_t *' |

View File

@@ -1,2 +1,2 @@
| printf.cpp:15:5:15:12 | swprintf | char | char16_t | char16_t |
| printf.cpp:26:5:26:11 | sprintf | char | char16_t | char16_t |
| printf.cpp:13:5:13:12 | swprintf | char | char16_t | char16_t |
| printf.cpp:24:5:24:11 | sprintf | char | char16_t | char16_t |

View File

@@ -8,9 +8,7 @@ typedef void *va_list;
#define va_start(va, other)
#define va_end(args)
int vswprintf(WCHAR *dest, WCHAR *format, va_list args) {
return 0;
}
int vswprintf(WCHAR *dest, WCHAR *format, va_list args);
int swprintf(WCHAR *dest, WCHAR *format, ...) {
va_list args;