[clang] a7789d6 - [clang-format][NFC] Replace SmallVector parameter with ArrayRef
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 15 17:26:29 PDT 2022
Author: owenca
Date: 2022-07-15T17:26:22-07:00
New Revision: a7789d6315ff663fb5e21698264b7b77e89312fe
URL: https://github.com/llvm/llvm-project/commit/a7789d6315ff663fb5e21698264b7b77e89312fe
DIFF: https://github.com/llvm/llvm-project/commit/a7789d6315ff663fb5e21698264b7b77e89312fe.diff
LOG: [clang-format][NFC] Replace SmallVector parameter with ArrayRef
Addresses https://reviews.llvm.org/D129466#3654410.
Added:
Modified:
clang/lib/Format/ContinuationIndenter.cpp
Removed:
################################################################################
diff --git a/clang/lib/Format/ContinuationIndenter.cpp b/clang/lib/Format/ContinuationIndenter.cpp
index 1cd28ab073da4..63214f0aa3d5a 100644
--- a/clang/lib/Format/ContinuationIndenter.cpp
+++ b/clang/lib/Format/ContinuationIndenter.cpp
@@ -37,7 +37,7 @@ static bool shouldIndentWrappedSelectorName(const FormatStyle &Style,
// Returns the length of everything up to the first possible line break after
// the ), ], } or > matching \c Tok.
static unsigned getLengthToMatchingParen(const FormatToken &Tok,
- const SmallVector<ParenState> &Stack) {
+ ArrayRef<ParenState> Stack) {
// Normally whether or not a break before T is possible is calculated and
// stored in T.CanBreakBefore. Braces, array initializers and text proto
// messages like `key: < ... >` are an exception: a break is possible
More information about the cfe-commits
mailing list