summaryrefslogtreecommitdiffstats
path: root/src/clparser.cc
diff options
context:
space:
mode:
authorTakuto Ikuta <tikuta@chromium.org>2017-05-09 04:34:31 (GMT)
committerTakuto Ikuta <tikuta@chromium.org>2017-05-09 05:20:03 (GMT)
commit75b338506197921f14e3ce0eb9a04d2787ae1750 (patch)
tree812229300ad3518d471e16c3a05f8398eaa67aeb /src/clparser.cc
parent3b320023276f98b978054c14c65d3888b989ff4a (diff)
downloadNinja-75b338506197921f14e3ce0eb9a04d2787ae1750.zip
Ninja-75b338506197921f14e3ce0eb9a04d2787ae1750.tar.gz
Ninja-75b338506197921f14e3ce0eb9a04d2787ae1750.tar.bz2
Fix for review
Diffstat (limited to 'src/clparser.cc')
-rw-r--r--src/clparser.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/clparser.cc b/src/clparser.cc
index c993e36..7994c06 100644
--- a/src/clparser.cc
+++ b/src/clparser.cc
@@ -19,6 +19,7 @@
#include <string.h>
#include "metrics.h"
+#include "string_piece_util.h"
#ifdef _WIN32
#include "includes_normalize.h"
@@ -56,7 +57,7 @@ string CLParser::FilterShowIncludes(const string& line,
// static
bool CLParser::IsSystemInclude(string path) {
- transform(path.begin(), path.end(), path.begin(), ::tolower);
+ transform(path.begin(), path.end(), path.begin(), ToLowerASCII);
// TODO: this is a heuristic, perhaps there's a better way?
return (path.find("program files") != string::npos ||
path.find("microsoft visual studio") != string::npos);
@@ -64,7 +65,7 @@ bool CLParser::IsSystemInclude(string path) {
// static
bool CLParser::FilterInputFilename(string line) {
- transform(line.begin(), line.end(), line.begin(), ::tolower);
+ transform(line.begin(), line.end(), line.begin(), ToLowerASCII);
// TODO: other extensions, like .asm?
return EndsWith(line, ".c") ||
EndsWith(line, ".cc") ||