IdentifierNamingCheck.cpp: try to fix MSVC build

It was failing to build with:

clang-tidy\readability\IdentifierNamingCheck.cpp(640):
error C2882: 'format' : illegal use of namespace identifier in expression

llvm-svn: 262257
This commit is contained in:
Hans Wennborg 2016-02-29 21:17:39 +00:00
parent a7ad58b61c
commit 53bd9f3d7a
1 changed files with 4 additions and 4 deletions

View File

@ -634,10 +634,10 @@ void IdentifierNamingCheck::check(const MatchFinder::MatchResult &Result) {
std::string Fixup = fixupWithStyle(Name, Style);
if (StringRef(Fixup).equals(Name)) {
if (!IgnoreFailedSplit) {
DEBUG(llvm::dbgs() << Decl->getLocStart().printToString(
*Result.SourceManager)
<< format(": unable to split words for %s '%s'\n",
KindName.c_str(), Name));
DEBUG(llvm::dbgs()
<< Decl->getLocStart().printToString(*Result.SourceManager)
<< llvm::format(": unable to split words for %s '%s'\n",
KindName.c_str(), Name));
}
} else {
NamingCheckFailure &Failure = NamingCheckFailures[Decl];