diff options
author | Daniel Jasper <djasper@google.com> | 2017-03-31 13:30:24 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2017-03-31 13:30:24 +0000 |
commit | 1dbc2105dca5612096d47b10e4cfe3711ac23cec (patch) | |
tree | 5d82a5261b699e950ee49ba95b1bdbbaa8e93b6f /clang/lib/Format/Format.cpp | |
parent | 56bb0857e92c9f578916e83adf692e85f04ee428 (diff) | |
download | llvm-1dbc2105dca5612096d47b10e4cfe3711ac23cec.zip llvm-1dbc2105dca5612096d47b10e4cfe3711ac23cec.tar.gz llvm-1dbc2105dca5612096d47b10e4cfe3711ac23cec.tar.bz2 |
clang-format: Fix post-commit review comment of r299204, use Style.isCpp().
Also, while at it, s/IsCpp/isCpp/ so that it follows LLVM style.
llvm-svn: 299214
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 9bb2a97..27f5849 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -1671,7 +1671,7 @@ bool isDeletedHeader(llvm::StringRef HeaderName, tooling::Replacements fixCppIncludeInsertions(StringRef Code, const tooling::Replacements &Replaces, const FormatStyle &Style) { - if (!Style.IsCpp()) + if (!Style.isCpp()) return Replaces; tooling::Replacements HeaderInsertions; @@ -1895,7 +1895,7 @@ LangOptions getFormattingLangOpts(const FormatStyle &Style) { LangOpts.CPlusPlus11 = Style.Standard == FormatStyle::LS_Cpp03 ? 0 : 1; LangOpts.CPlusPlus14 = Style.Standard == FormatStyle::LS_Cpp03 ? 0 : 1; LangOpts.LineComment = 1; - bool AlternativeOperators = Style.IsCpp(); + bool AlternativeOperators = Style.isCpp(); LangOpts.CXXOperatorNames = AlternativeOperators ? 1 : 0; LangOpts.Bool = 1; LangOpts.ObjC1 = 1; |