From: Eric Liu Date: Sat, 11 Jun 2016 11:45:08 +0000 (+0000) Subject: [clang-format] pass Style by reference instead of value. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6be67f651aaf0c85f0adbbd53a5765f63de05429;p=clang [clang-format] pass Style by reference instead of value. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272465 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 7ef9a30e49..c7a7bfe210 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -1457,7 +1457,7 @@ bool checkAndConsumeDirectiveWithName(Lexer &Lex, StringRef Name, Token &Tok) { unsigned getOffsetAfterHeaderGuardsAndComments(StringRef FileName, StringRef Code, - FormatStyle Style) { + const FormatStyle &Style) { std::unique_ptr Env = Environment::CreateVirtualEnvironment(Code, FileName, /*Ranges=*/{}); const SourceManager &SourceMgr = Env->getSourceManager();