[all-commits] [llvm/llvm-project] b05dc1: [clang-format] Add a space between an overloaded o...
Owen via All-commits
all-commits at lists.llvm.org
Thu Feb 16 20:25:55 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b05dc1b8766a47482cae432011fd2faa04c83a3e
https://github.com/llvm/llvm-project/commit/b05dc1b8766a47482cae432011fd2faa04c83a3e
Author: Owen Pan <owenpiano at gmail.com>
Date: 2023-02-16 (Thu, 16 Feb 2023)
Changed paths:
M clang/lib/Format/FormatToken.h
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:
-----------
[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