summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2016-06-11 11:45:08 +0000
committerEric Liu <ioeric@google.com>2016-06-11 11:45:08 +0000
commit43d67b6883974a5abef416d2e4bbd130de071856 (patch)
tree2dc55bb72b7dfe1f118853a6e6036cc7b2658b4a /clang/lib
parentd386941676e0ce42dbdf82b1ff29e6d7bd145fcc (diff)
downloadbcm5719-llvm-43d67b6883974a5abef416d2e4bbd130de071856.tar.gz
bcm5719-llvm-43d67b6883974a5abef416d2e4bbd130de071856.zip
[clang-format] pass Style by reference instead of value.
llvm-svn: 272465
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 7ef9a30e491..c7a7bfe2106 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/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<Environment> Env =
Environment::CreateVirtualEnvironment(Code, FileName, /*Ranges=*/{});
const SourceManager &SourceMgr = Env->getSourceManager();
OpenPOWER on IntegriCloud