aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/Analyses/FormatString.h
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2012-01-12 17:11:12 +0000
committerHans Wennborg <hans@hanshq.net>2012-01-12 17:11:12 +0000
commit37969b7e14d6a4dfd934ef6d3738cc90b832ec1d (patch)
treea00be7b6ba9cfa6a1466d270dbe0c590c90cd564 /include/clang/Analysis/Analyses/FormatString.h
parent1d7049a6eddcc1a4bd33c6a595d4ad2ae8c1cece (diff)
scanf: parse the 'm' length modifier, and check that the right arguments
are used with that and the 'a' length modifier. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/Analyses/FormatString.h')
-rw-r--r--include/clang/Analysis/Analyses/FormatString.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Analysis/Analyses/FormatString.h b/include/clang/Analysis/Analyses/FormatString.h
index 7e34277ad0..bf9406695d 100644
--- a/include/clang/Analysis/Analyses/FormatString.h
+++ b/include/clang/Analysis/Analyses/FormatString.h
@@ -71,7 +71,8 @@ public:
AsSizeT, // 'z'
AsPtrDiff, // 't'
AsLongDouble, // 'L'
- AsAllocate, // for '%as', GNU extension to C90 scanf
+ AsAllocate, // for '%as', GNU extension to C90 scanf
+ AsMAllocate, // for '%ms', GNU extension to scanf
AsWideChar = AsLong // for '%ls', only makes sense for printf
};