[all-commits] [llvm/llvm-project] 682808: Reland [clang-format] Add a space between an overl...
Owen via All-commits
all-commits at lists.llvm.org
Mon Mar 20 03:01:40 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 682808d9c9c81306c0a08a1fdb496b4f572566b4
https://github.com/llvm/llvm-project/commit/682808d9c9c81306c0a08a1fdb496b4f572566b4
Author: Owen Pan <owenpiano at gmail.com>
Date: 2023-03-20 (Mon, 20 Mar 2023)
Changed paths:
M clang/lib/Format/FormatTokenLexer.cpp
M clang/lib/Format/FormatTokenLexer.h
M clang/lib/Format/TokenAnnotator.cpp
M clang/unittests/Format/FormatTest.cpp
M clang/unittests/Format/TokenAnnotatorTest.cpp
Log Message:
-----------
Reland [clang-format] Add a space between an overloaded operator and '>'
The token annotator doesn't annotate the template opener and closer
as such if they enclose an overloaded operator. This causes the
space between the operator and the closer to be removed, resulting
in invalid C++ code.
Fixes #58602.
Differential Revision: https://reviews.llvm.org/D143755
More information about the All-commits
mailing list