From: Eric Liu Date: Thu, 24 Mar 2016 11:24:49 +0000 (+0000) Subject: Revert "removed redundant comment in format::getStyle." X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b78c1ce4720378f4ff56389714bdee75fbd7fe5f;p=clang Revert "removed redundant comment in format::getStyle." This reverts commit r264254. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264256 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 40ff01fa85..6d03b62920 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -2144,7 +2144,8 @@ FormatStyle getStyle(StringRef StyleName, StringRef FileName, 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);