diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-01-28 01:18:22 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-01-28 01:18:22 +0000 |
| commit | c70ee8610d96e0a6c493a9522bd568442d675470 (patch) | |
| tree | 685e62450c9b5a84757cd033dbb2239613d0c787 /clang/lib/Sema/Sema.h | |
| parent | 0830b9709d35a3ba780615e38d8d4c458872a08a (diff) | |
| download | bcm5719-llvm-c70ee8610d96e0a6c493a9522bd568442d675470.tar.gz bcm5719-llvm-c70ee8610d96e0a6c493a9522bd568442d675470.zip | |
Add placeholder function in Sema for new format string checking logic.
This function will use the format string parsing logic in libAnalysis,
and once it is shown to be better than the current implementation it
will replace AlternateCheckPrintfString() entirely.
llvm-svn: 94721
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 4fbc42cb0f5..fb3ca1c4654 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -4047,6 +4047,13 @@ private: bool SemaCheckStringLiteral(const Expr *E, const CallExpr *TheCall, bool HasVAListArg, unsigned format_idx, unsigned firstDataArg); + // FIXME: This function is placeholder for transitioning the printf + // format string checking to a new codepath. It will eventually + // replace CheckPrintfString(). + void AlternateCheckPrintfString(const StringLiteral *FExpr, + const Expr *OrigFormatExpr, + const CallExpr *TheCall, bool HasVAListArg, + unsigned format_idx, unsigned firstDataArg); void CheckPrintfString(const StringLiteral *FExpr, const Expr *OrigFormatExpr, const CallExpr *TheCall, bool HasVAListArg, unsigned format_idx, unsigned firstDataArg); |

