From 166f12f5d4ae7cfc95a56a73bdad70e26668ed16 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Thu, 24 Mar 2016 10:50:26 +0000 Subject: [PATCH] removed redundant comment in format::getStyle. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264254 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/Format.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 6d03b62920..40ff01fa85 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -2144,8 +2144,7 @@ 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.40.0