diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2016-04-29 21:05:55 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2016-04-29 21:05:55 +0000 |
| commit | 00c750cd12e7670136ae3bbddcd27ef4b8561feb (patch) | |
| tree | 04dccd33996376fe70dd386b6c3c3b73a31bf631 | |
| parent | 2c15956749372c17d525606bc917be7feda71fdf (diff) | |
| download | bcm5719-llvm-00c750cd12e7670136ae3bbddcd27ef4b8561feb.tar.gz bcm5719-llvm-00c750cd12e7670136ae3bbddcd27ef4b8561feb.zip | |
Add the ability to determine whether a format string argument is of a double type or not. This change is tested by clang-tidy in r268100.
llvm-svn: 268103
| -rw-r--r-- | clang/include/clang/Analysis/Analyses/FormatString.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang/Analysis/Analyses/FormatString.h b/clang/include/clang/Analysis/Analyses/FormatString.h index a593e9853e6..74803a295d7 100644 --- a/clang/include/clang/Analysis/Analyses/FormatString.h +++ b/clang/include/clang/Analysis/Analyses/FormatString.h @@ -216,6 +216,10 @@ public: kind == FreeBSDrArg || kind == FreeBSDyArg; } bool isUIntArg() const { return kind >= UIntArgBeg && kind <= UIntArgEnd; } bool isAnyIntArg() const { return kind >= IntArgBeg && kind <= UIntArgEnd; } + bool isDoubleArg() const { + return kind >= DoubleArgBeg && kind <= DoubleArgEnd; + } + const char *toString() const; bool isPrintfKind() const { return IsPrintf; } |

