From: Manuel Klimek Date: Tue, 2 Jun 2015 11:52:15 +0000 (+0000) Subject: Remove error message when using the fallback style. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79e3e8702aa22984e782d2ab8e37b106969e8766;p=clang Remove error message when using the fallback style. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@238822 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 10c68f9da6..c725b4bf30 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -1640,8 +1640,6 @@ FormatStyle getStyle(StringRef StyleName, StringRef FileName, return Style; } } - llvm::errs() << "Can't find usable .clang-format, using " << FallbackStyle - << " style\n"; if (!UnsuitableConfigFiles.empty()) { llvm::errs() << "Configuration file(s) do(es) not support " << getLanguageName(Style.Language) << ": " diff --git a/test/Format/style-on-command-line.cpp b/test/Format/style-on-command-line.cpp index 007022e744..69c54b2b63 100644 --- a/test/Format/style-on-command-line.cpp +++ b/test/Format/style-on-command-line.cpp @@ -24,7 +24,6 @@ void f() { // CHECK4: {{^ int \*i;$}} // CHECK5: {{^ int\* i;$}} // CHECK6: {{^Error reading .*\.clang-format: (I|i)nvalid argument}} -// CHECK6: {{^Can't find usable .clang-format, using webkit style$}} // CHECK6: {{^ int\* i;$}} // CHECK7: {{^ int\* i;$}} // CHECK8: {{^ int\* i;$}}