From 3867ed86eb267e19b06eb0dad7e2c1be0a6403e8 Mon Sep 17 00:00:00 2001 From: Mahesh Ravishankar Date: Tue, 30 Jul 2019 16:11:14 -0700 Subject: [PATCH] Add missing include file to StringExtrasTest.cpp Use of std::isupper and std::islower need 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 | 2 ++ mlir/unittests/IR/StringExtrasTest.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mlir/include/mlir/Support/StringExtras.h b/mlir/include/mlir/Support/StringExtras.h index a5ec73275ff6..9948d15011a7 100644 --- a/mlir/include/mlir/Support/StringExtras.h +++ b/mlir/include/mlir/Support/StringExtras.h @@ -24,6 +24,8 @@ #include "llvm/ADT/StringExtras.h" +#include + 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 diff --git a/mlir/unittests/IR/StringExtrasTest.cpp b/mlir/unittests/IR/StringExtrasTest.cpp index 6d18633dd9c3..def659503653 100644 --- a/mlir/unittests/IR/StringExtrasTest.cpp +++ b/mlir/unittests/IR/StringExtrasTest.cpp @@ -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. //