[PATCH] D145262: [clang-format] Treat AttributeMacros more like attribute macros
Jared Grubb via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 12 16:42:27 PDT 2023
jaredgrubb updated this revision to Diff 504486.
jaredgrubb added a comment.
- Fixed an issue in `TokenAnnotator` about it not breaking between macros properly (it was catching in an ObjC selector-check too early)
- Add more ObjC tests, covering method and property declarations too. There are still some quirks about reflowing multiple attributes, but those quirks exist in C++ too, so I think those are best left for another patch. I added checks for existing behavior so that patch can improve the ObjC version too.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145262/new/
https://reviews.llvm.org/D145262
Files:
clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/ContinuationIndenter.h
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTestObjC.cpp
clang/unittests/Format/TokenAnnotatorTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145262.504486.patch
Type: text/x-patch
Size: 18348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230312/978f063a/attachment-0001.bin>
More information about the cfe-commits
mailing list