aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Checkers/InterCheckerAPI.h
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-02-17 22:35:31 +0000
committerAnna Zaks <ganna@apple.com>2012-02-17 22:35:31 +0000
commitf0dfc9c0f29fd82552896558c04043731d30b851 (patch)
tree43add3fa200ed381ebfbfb7cd1d5a1d649060e7f /lib/StaticAnalyzer/Checkers/InterCheckerAPI.h
parent998e2754281b19bb1db19299ae16c2fd5947bcc0 (diff)
[analyzer] Fix another false positive in the Malloc Checker, by making
it aware of CString APIs that return the input parameter. Malloc Checker needs to know how the 'strcpy' function is evaluated. Introduce the dependency on CStringChecker for that. CStringChecker knows all about these APIs. Addresses radar://10864450 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/InterCheckerAPI.h')
-rw-r--r--lib/StaticAnalyzer/Checkers/InterCheckerAPI.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/StaticAnalyzer/Checkers/InterCheckerAPI.h b/lib/StaticAnalyzer/Checkers/InterCheckerAPI.h
new file mode 100644
index 0000000000..e35557f24b
--- /dev/null
+++ b/lib/StaticAnalyzer/Checkers/InterCheckerAPI.h
@@ -0,0 +1,22 @@
+//==--- InterCheckerAPI.h ---------------------------------------*- C++ -*-==//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+// This file allows introduction of checker dependencies. It contains APIs for
+// inter-checker communications.
+//===----------------------------------------------------------------------===//
+
+#ifndef INTERCHECKERAPI_H_
+#define INTERCHECKERAPI_H_
+namespace clang {
+namespace ento {
+
+/// Register the checker which evaluates CString API calls.
+void registerCStringCheckerBasic(CheckerManager &Mgr);
+
+}}
+#endif /* INTERCHECKERAPI_H_ */