r292141 - [StaticAnalyzer] Fix android build

Pavel Labath via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 16 07:57:08 PST 2017


Author: labath
Date: Mon Jan 16 09:57:07 2017
New Revision: 292141

URL: http://llvm.org/viewvc/llvm-project?rev=292141&view=rev
Log:
[StaticAnalyzer] Fix android build

std::to_string is not available in the android NDK. Use llvm::to_string instead.

Committing as obvious.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp?rev=292141&r1=292140&r2=292141&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp Mon Jan 16 09:57:07 2017
@@ -13,6 +13,7 @@
 #include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
 #include "clang/StaticAnalyzer/Checkers/SValExplainer.h"
 #include "llvm/ADT/StringSwitch.h"
+#include "llvm/Support/ScopedPrinter.h"
 
 using namespace clang;
 using namespace ento;
@@ -269,7 +270,7 @@ void ExprInspectionChecker::checkEndAnal
     unsigned NumTimesReached = Item.second.NumTimesReached;
     ExplodedNode *N = Item.second.ExampleNode;
 
-    reportBug(std::to_string(NumTimesReached), BR, N);
+    reportBug(llvm::to_string(NumTimesReached), BR, N);
   }
 }
 




More information about the cfe-commits mailing list