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)
llvm-svn: 268103

clang/include/clang/Analysis/Analyses/FormatString.h

index a593e98..74803a2 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; }