projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b72f609
)
removed redundant comment in format::getStyle.
author
Eric Liu
<ioeric@google.com>
Thu, 24 Mar 2016 10:50:26 +0000
(10:50 +0000)
committer
Eric Liu
<ioeric@google.com>
Thu, 24 Mar 2016 10:50:26 +0000
(10:50 +0000)
llvm-svn: 264254
clang/lib/Format/Format.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Format/Format.cpp
b/clang/lib/Format/Format.cpp
index
6d03b62
..
40ff01f
100644
(file)
--- a/
clang/lib/Format/Format.cpp
+++ b/
clang/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);