diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-06-16 18:00:42 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-06-16 18:00:42 +0000 |
commit | 7ff22b259d4d4729f701679e3a7f0e242365e07f (patch) | |
tree | 4fee7cc47ff424b120402f3e8495b8847ebce675 /lib/Sema/ParseAST.cpp | |
parent | 9e800e3dd80d77f6c47054738177bf824089f55a (diff) |
Introduce preliminary support for NSString format-string checking.
Patch by Nikita Zhuk!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52336 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/ParseAST.cpp')
-rw-r--r-- | lib/Sema/ParseAST.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/ParseAST.cpp b/lib/Sema/ParseAST.cpp index 67b6546637..dce577bc4c 100644 --- a/lib/Sema/ParseAST.cpp +++ b/lib/Sema/ParseAST.cpp @@ -39,6 +39,8 @@ void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, bool PrintStats) { PP.getIdentifierTable(), PP.getSelectorTable()); TranslationUnit TU(Context); + TU.SetOwnsDecls(false); + Sema S(PP, Context, *Consumer); Parser P(PP, S); |