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:
6eafda0
)
Revert "[clang-format] Allow empty .clang-format file"
author
owenca
<owenpiano@gmail.com>
Tue, 12 Apr 2022 21:28:02 +0000
(14:28 -0700)
committer
owenca
<owenpiano@gmail.com>
Tue, 12 Apr 2022 21:28:02 +0000
(14:28 -0700)
This reverts commit
6eafda0ef0543cad4b190002e9dae93b036a4ded
.
clang/lib/Format/Format.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Format/Format.cpp
b/clang/lib/Format/Format.cpp
index
bce66d1
..
0bbd543
100644
(file)
--- a/
clang/lib/Format/Format.cpp
+++ b/
clang/lib/Format/Format.cpp
@@
-1722,7
+1722,7
@@
std::error_code parseConfiguration(llvm::MemoryBufferRef Config,
FormatStyle::LanguageKind Language = Style->Language;
assert(Language != FormatStyle::LK_None);
if (Config.getBuffer().trim().empty())
- return make_error_code(ParseError::
Success
);
+ return make_error_code(ParseError::
Error
);
Style->StyleSet.Clear();
std::vector<FormatStyle> Styles;
llvm::yaml::Input Input(Config, /*Ctxt=*/nullptr, DiagHandler,