diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-01-30 15:49:20 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-01-30 15:49:20 +0000 |
commit | 19b70bd46c0e599366718050ad8cd73acbbb2e5a (patch) | |
tree | 94ea8b5d5c792a120f7d3f4939558979717dd7c9 /clang/lib/Analysis/PrintfFormatString.cpp | |
parent | 842bf1736671be31378c445422662f267d366426 (diff) | |
download | bcm5719-llvm-19b70bd46c0e599366718050ad8cd73acbbb2e5a.tar.gz bcm5719-llvm-19b70bd46c0e599366718050ad8cd73acbbb2e5a.zip |
Recognize 'q' as a format length modifier (from BSD).
llvm-svn: 94894
Diffstat (limited to 'clang/lib/Analysis/PrintfFormatString.cpp')
-rw-r--r-- | clang/lib/Analysis/PrintfFormatString.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Analysis/PrintfFormatString.cpp b/clang/lib/Analysis/PrintfFormatString.cpp index 05b5d9cceba..d2bcbb04f9d 100644 --- a/clang/lib/Analysis/PrintfFormatString.cpp +++ b/clang/lib/Analysis/PrintfFormatString.cpp @@ -185,6 +185,7 @@ static FormatSpecifierResult ParseFormatSpecifier(FormatStringHandler &H, case 'z': lm = AsSizeT; ++I; break; case 't': lm = AsPtrDiff; ++I; break; case 'L': lm = AsLongDouble; ++I; break; + case 'q': lm = AsLongLong; ++I; break; } FS.setLengthModifier(lm); |