aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-11-08 13:10:34 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-11-08 13:10:34 +0000
commit28a109f63506d8c96e3fbf1b959b603ccec2f586 (patch)
treea0a86281ea6f8db57caf30fee0797bf0cfcd7a93 /include/clang/Frontend
parent9770ef0eea1dbebb9cad93b8a564bff789568e62 (diff)
Add a checker for CWE-467: Use of sizeof() on a Pointer Type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend')
-rw-r--r--include/clang/Frontend/Analyses.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Frontend/Analyses.def b/include/clang/Frontend/Analyses.def
index d5e408020a..7d55673a61 100644
--- a/include/clang/Frontend/Analyses.def
+++ b/include/clang/Frontend/Analyses.def
@@ -48,6 +48,9 @@ ANALYSIS(WarnObjCUnusedIvars, "warn-objc-unused-ivars",
ANALYSIS(CheckerCFRef, "checker-cfref",
"Run the [Core] Foundation reference count checker", Code)
+ANALYSIS(WarnSizeofPointer, "warn-sizeof-pointer",
+ "Warn about unintended use of sizeof() on pointer expressions", Code)
+
ANALYSIS(InlineCall, "inline-call",
"Experimental transfer function inling callees when its definition"
" is available.", TranslationUnit)