diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-01-28 23:39:18 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-01-28 23:39:18 +0000 |
| commit | ab278de2d172e1954adc803e33ff5bb0694a47fe (patch) | |
| tree | 935b8301dffbd2dfd6c90282b3a948fdc1b5464a /clang/lib/Sema/Sema.h | |
| parent | 7bfc596fcfb7d68969f7b0d68a9e275e5822c2be (diff) | |
| download | bcm5719-llvm-ab278de2d172e1954adc803e33ff5bb0694a47fe.tar.gz bcm5719-llvm-ab278de2d172e1954adc803e33ff5bb0694a47fe.zip | |
Start fleshing out Sema::AlternateCheckPrintfString():
- Add an anonymous class 'CheckPrintfHandler' which will do the
checking of specific format specifiers
- Add checking for using the '@' conversion specifier outside
an ObjC string literal
- Add checking for null characters within the string
llvm-svn: 94761
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 8768828365e..7d87297f676 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -4020,12 +4020,15 @@ public: //===--------------------------------------------------------------------===// // Extra semantic analysis beyond the C type system + +public: + SourceLocation getLocationOfStringLiteralByte(const StringLiteral *SL, + unsigned ByteNo) const; + private: bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall); bool CheckBlockCall(NamedDecl *NDecl, CallExpr *TheCall); - SourceLocation getLocationOfStringLiteralByte(const StringLiteral *SL, - unsigned ByteNo) const; bool CheckablePrintfAttr(const FormatAttr *Format, CallExpr *TheCall); bool CheckObjCString(Expr *Arg); |

