From b1b2f87e37774ee61dc5c6ea3aa04a99a1adda66 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Fri, 8 Jan 2016 15:21:40 +0000 Subject: [clang-tidy] Use proper capitalization and punctuation for diagnostic messages. Use diagnostic parameters where possible instead of string concatenation. llvm-svn: 257176 --- clang-tools-extra/clang-tidy/misc/AssertSideEffectCheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang-tools-extra/clang-tidy/misc/AssertSideEffectCheck.cpp') diff --git a/clang-tools-extra/clang-tidy/misc/AssertSideEffectCheck.cpp b/clang-tools-extra/clang-tidy/misc/AssertSideEffectCheck.cpp index 6aedd4f6976..6b93d9c9253 100644 --- a/clang-tools-extra/clang-tidy/misc/AssertSideEffectCheck.cpp +++ b/clang-tools-extra/clang-tidy/misc/AssertSideEffectCheck.cpp @@ -111,7 +111,7 @@ void AssertSideEffectCheck::check(const MatchFinder::MatchResult &Result) { if (AssertMacroName.empty()) return; - diag(Loc, "found " + AssertMacroName.str() + "() with side effect"); + diag(Loc, "found %0() with side effect") << AssertMacroName; } } // namespace tidy -- cgit v1.2.3