Author: aaronballman
Date: Fri Apr 29 16:05:55 2016
New Revision: 268103
URL: http://llvm.org/viewvc/llvm-project?rev=268103&view=rev
Log:
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.
Modified:
cfe/trunk/include/clang/Analysis/Analyses/FormatString.h
Modified: cfe/trunk/include/clang/Analysis/Analyses/FormatString.h
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Analyses/FormatString.h?rev=268103&r1=268102&r2=268103&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/Analyses/FormatString.h (original)
+++ cfe/trunk/include/clang/Analysis/Analyses/FormatString.h Fri Apr 29
16:05:55 2016
@@ -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; }
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits