Skip to content

Commit

Permalink
clang-format: Add default fallback style.
Browse files Browse the repository at this point in the history
Thanks to Michael Schlottke.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235162 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
djasper-gh committed Apr 17, 2015
1 parent e1907cb commit ab97523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Serialization/ASTReaderDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3364,7 +3364,7 @@ namespace {
searchForID(M, SearchDecls[I]);
// FIXME: If none of the SearchDecls had local IDs in this module, can
// we avoid searching any ancestor module files?
return false;
return Deserialized.empty();
}

ArrayRef<Decl *> getChain() const {
Expand Down
1 change: 1 addition & 0 deletions tools/clang-format/clang-format.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
# a '.clang-format' or '_clang-format' file to indicate the style that should be
# used.
style = 'file'
fallback_style = None
if vim.eval('exists("g:clang_format_fallback_style")') == "1":
fallback_style = vim.eval('g:clang_format_fallback_style')

Expand Down

0 comments on commit ab97523

Please sign in to comment.