]> granicus.if.org Git - clang/commitdiff
Enable several checkers under --analyze for general testing.
authorTed Kremenek <kremenek@apple.com>
Thu, 26 Jan 2012 02:27:38 +0000 (02:27 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 26 Jan 2012 02:27:38 +0000 (02:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149016 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index ed3a9eba3f0c7c0f31a04d309ba2da883b2b6cf8..367edfcd18a879965536d246ad383ee709fbfb92 100644 (file)
@@ -1350,6 +1350,15 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
         CmdArgs.push_back("-analyzer-checker=osx");
       
       CmdArgs.push_back("-analyzer-checker=deadcode");
+      
+      // Enable the following experimental checkers for testing. 
+      CmdArgs.push_back("-analyzer-checker=experimental.osx.cocoa.ContainerAPI");
+      CmdArgs.push_back("-analyzer-checker=security.insecureAPI.UncheckedReturn");
+      CmdArgs.push_back("-analyzer-checker=security.insecureAPI.getpw");
+      CmdArgs.push_back("-analyzer-checker=security.insecureAPI.gets");
+      CmdArgs.push_back("-analyzer-checker=security.insecureAPI.mktemp");      
+      CmdArgs.push_back("-analyzer-checker=security.insecureAPI.mkstemp");
+      CmdArgs.push_back("-analyzer-checker=security.insecureAPI.vfork");
     }
 
     // Set the output format. The default is plist, for (lame) historical