[PATCH] D155273: [clang-format] Add TypeNames option to disambiguate types/objects
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 14 01:41:37 PDT 2023
owenpan created this revision.
Herald added projects: All, clang, clang-format.
Herald added a subscriber: cfe-commits.
Herald added reviewers: rymiel, HazardyKnusperkeks, MyDeveloperDay.
owenpan requested review of this revision.
If a non-keyword identifier is found in `TypeNames`, then a `*`, `&`, or `&&` that follows it is annotated as `TT_PointerOrReference`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D155273
Files:
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/FormatToken.h
clang/lib/Format/FormatTokenLexer.cpp
clang/lib/Format/FormatTokenLexer.h
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/TokenAnnotatorTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155273.540319.patch
Type: text/x-patch
Size: 7706 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230714/42d2da86/attachment-0001.bin>
More information about the cfe-commits
mailing list