Fix for adhering to latest clang style guide.

PiperOrigin-RevId: 311197936
Change-Id: I014b041ff03f656587651da9a4977688d501d330
This commit is contained in:
Hye Soo Yang 2020-05-12 14:04:36 -07:00 committed by TensorFlower Gardener
parent 1186e3f209
commit 1638fe218d

View File

@ -16,6 +16,7 @@ limitations under the License.
#define TENSORFLOW_CORE_FRAMEWORK_SHAPE_INFERENCE_TESTUTIL_H_
#include <vector>
#include "tensorflow/core/framework/node_def.pb.h"
#include "tensorflow/core/framework/shape_inference.h"
#include "tensorflow/core/lib/core/status.h"
@ -90,7 +91,7 @@ class ShapeInferenceTestutil {
::tensorflow::shape_inference::ShapeInferenceTestutil::InferShapes( \
op, i, "e") \
.error_message(); \
const std::string& substring = error_substring; \
const std::string substring = error_substring; \
EXPECT_NE("", error_message); \
EXPECT_TRUE(absl::StrContains(error_message, substring)) \
<< "Expected to see '" << substring << "' in '" << error_message \