[all-commits] [llvm/llvm-project] 4ee70e: [clang-format] Fixed edge-case with SpacesInSquare...
mitchell-stellar via All-commits
all-commits at lists.llvm.org
Thu Nov 14 10:26:17 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 4ee70e00b509fe26bac4196df76dc7c6153f1206
https://github.com/llvm/llvm-project/commit/4ee70e00b509fe26bac4196df76dc7c6153f1206
Author: Mitchell Balan <mitchell at stellarscience.com>
Date: 2019-11-14 (Thu, 14 Nov 2019)
Changed paths:
M clang/lib/Format/TokenAnnotator.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Fixed edge-case with SpacesInSquareBrackets with trailing bare "&" lambda capture.
Summary:
Lambda captures allow for a lone `&` capture, so `&]` needs to be properly handled.
`int foo = [& ]() {}` is fixed to give `int foo = [ & ]() {}`
Reviewers: MyDeveloperDay
Reviewed by: MyDeveloperDay
Subscribers: cfe-commits
Tags: #clang, #clang-format
Differential Revision: https://reviews.llvm.org/D70249
More information about the All-commits
mailing list