diff options
Diffstat (limited to 'clang/Sema/SemaChecking.cpp')
| -rw-r--r-- | clang/Sema/SemaChecking.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/Sema/SemaChecking.cpp b/clang/Sema/SemaChecking.cpp index 863882ec986..ea63b7dc1ca 100644 --- a/clang/Sema/SemaChecking.cpp +++ b/clang/Sema/SemaChecking.cpp @@ -282,11 +282,16 @@ Sema::CheckPrintfArguments(Expr *Fn, // Seen '%'. Now processing a format conversion. switch (Str[StrIdx]) { + // Handle dynamic precision specifier. + case '*': + if (Str[StrIdx-1] == '.') ++numConversions; + break; + // Characters which can terminate a format conversion // (e.g. "%d"). Characters that specify length modifiers or // other flags are handled by the default case below. // - // TODO: additional checks will go into the following cases. + // FIXME: additional checks will go into the following cases. case 'i': case 'd': case 'o': |

