r264256 - Revert "removed redundant comment in format::getStyle."
Eric Liu via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 24 04:24:50 PDT 2016
Author: ioeric
Date: Thu Mar 24 06:24:49 2016
New Revision: 264256
URL: http://llvm.org/viewvc/llvm-project?rev=264256&view=rev
Log:
Revert "removed redundant comment in format::getStyle."
This reverts commit r264254.
Modified:
cfe/trunk/lib/Format/Format.cpp
Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=264256&r1=264255&r2=264256&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Thu Mar 24 06:24:49 2016
@@ -2144,7 +2144,8 @@ FormatStyle getStyle(StringRef StyleName
llvm::sys::path::append(ConfigFile, ".clang-format");
DEBUG(llvm::dbgs() << "Trying " << ConfigFile << "...\n");
-
+ // Ignore errors from is_regular_file: we only need to know if we can read
+ // the file or not.
Status = FS->status(ConfigFile.str());
bool IsFile =
Status && (Status->getType() == llvm::sys::fs::file_type::regular_file);
More information about the cfe-commits
mailing list