From b38a9e16bbb084334b109da934b60d2ed2605a2d Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Thu, 24 Mar 2016 11:24:49 +0000 Subject: [PATCH] Revert "removed redundant comment in format::getStyle." This reverts commit r264254. llvm-svn: 264256 --- clang/lib/Format/Format.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 40ff01f..6d03b62 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/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); -- 2.7.4