summaryrefslogtreecommitdiff
path: root/third-party/benchmark/src/string_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'third-party/benchmark/src/string_util.h')
-rw-r--r--third-party/benchmark/src/string_util.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/third-party/benchmark/src/string_util.h b/third-party/benchmark/src/string_util.h
index 6bc28b6912a8..ff3b7da47d6c 100644
--- a/third-party/benchmark/src/string_util.h
+++ b/third-party/benchmark/src/string_util.h
@@ -4,6 +4,7 @@
#include <sstream>
#include <string>
#include <utility>
+
#include "internal_macros.h"
namespace benchmark {
@@ -39,6 +40,8 @@ inline std::string StrCat(Args&&... args) {
std::vector<std::string> StrSplit(const std::string& str, char delim);
+// Disable lint checking for this block since it re-implements C functions.
+// NOLINTBEGIN
#ifdef BENCHMARK_STL_ANDROID_GNUSTL
/*
* GNU STL in Android NDK lacks support for some C++11 functions, including
@@ -47,14 +50,15 @@ std::vector<std::string> StrSplit(const std::string& str, char delim);
* namespace, not std:: namespace.
*/
unsigned long stoul(const std::string& str, size_t* pos = nullptr,
- int base = 10);
+ int base = 10);
int stoi(const std::string& str, size_t* pos = nullptr, int base = 10);
double stod(const std::string& str, size_t* pos = nullptr);
#else
-using std::stoul;
-using std::stoi;
-using std::stod;
+using std::stod; // NOLINT(misc-unused-using-decls)
+using std::stoi; // NOLINT(misc-unused-using-decls)
+using std::stoul; // NOLINT(misc-unused-using-decls)
#endif
+// NOLINTEND
} // end namespace benchmark