[all-commits] [llvm/llvm-project] 3f3620: [clang-format] Correctly annotate */&/&& in operat...
Owen via All-commits
all-commits at lists.llvm.org
Mon Jul 3 17:49:28 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3f3620e5c9ee0f7b64afc39e5a26c6f4cc5e7b37
https://github.com/llvm/llvm-project/commit/3f3620e5c9ee0f7b64afc39e5a26c6f4cc5e7b37
Author: Owen Pan <owenpiano at gmail.com>
Date: 2023-07-03 (Mon, 03 Jul 2023)
Changed paths:
M clang/lib/Format/TokenAnnotator.cpp
M clang/unittests/Format/FormatTest.cpp
M clang/unittests/Format/TokenAnnotatorTest.cpp
Log Message:
-----------
[clang-format] Correctly annotate */&/&& in operator function calls
Reverts 4986f3f2f220 (but keeps its unit tests) and fixes #49973
differently.
Also fixes bugs that incorrectly annotate the operator keyword as
TT_FunctionDeclarationName in function calls and as TT_Unknown in function
declarations and definitions.
Differential Revision: https://reviews.llvm.org/D154184
More information about the All-commits
mailing list