Add missing include file to StringExtrasTest.cpp
authorMahesh Ravishankar <ravishankarm@google.com>
Tue, 30 Jul 2019 23:11:14 +0000 (16:11 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 30 Jul 2019 23:11:40 +0000 (16:11 -0700)
Use of std::isupper and std::islower need <cctype> header file. Fix
that and also fix the header of a file to match the file name.

PiperOrigin-RevId: 260816852

mlir/include/mlir/Support/StringExtras.h
mlir/unittests/IR/StringExtrasTest.cpp

index a5ec732..9948d15 100644 (file)
@@ -24,6 +24,8 @@
 
 #include "llvm/ADT/StringExtras.h"
 
+#include <cctype>
+
 namespace mlir {
 /// Converts a string to snake-case from camel-case by replacing all uppercase
 /// letters with '_' followed by the letter in lowercase, except if the
index 6d18633..def6595 100644 (file)
@@ -1,4 +1,4 @@
-//===- StringExtras.cpp - Tests for utility methods in StringExtras.h -----===//
+//===- StringExtrasTest.cpp - Tests for utility methods in StringExtras.h -===//
 //
 // Copyright 2019 The MLIR Authors.
 //