]> granicus.if.org Git - clang/commitdiff
Add the ability to determine whether a format string argument is of a double type...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 29 Apr 2016 21:05:55 +0000 (21:05 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 29 Apr 2016 21:05:55 +0000 (21:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268103 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/Analyses/FormatString.h

index a593e9853e6d65acef51fbe71e1ef3946f290de8..74803a295d71238d956a04f0c24a596f378d7cf9 100644 (file)
@@ -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; }