From bf35f041bd46093cc5865b2bb3c0d9efd767db33 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 29 Apr 2016 21:05:55 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268103 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Analysis/Analyses/FormatString.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/clang/Analysis/Analyses/FormatString.h b/include/clang/Analysis/Analyses/FormatString.h index a593e9853e..74803a295d 100644 --- a/include/clang/Analysis/Analyses/FormatString.h +++ b/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; } -- 2.40.0