[PATCH] D123259: [clang][ExtractAPI] Fix appendSpace in DeclarationFragments

Zixu Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 6 14:47:00 PDT 2022


zixuw created this revision.
Herald added a reviewer: dang.
Herald added a project: All.
zixuw requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

There is a bug in `DeclarationFragments::appendSpace` where the space
character is added to a local copy of the last fragment.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123259

Files:
  clang/lib/ExtractAPI/DeclarationFragments.cpp
  clang/test/ExtractAPI/global_record.c
  clang/test/ExtractAPI/global_record_multifile.c
  clang/test/ExtractAPI/macro_undefined.c
  clang/test/ExtractAPI/objc_category.m
  clang/test/ExtractAPI/objc_interface.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123259.421018.patch
Type: text/x-patch
Size: 4491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220406/c588ac76/attachment-0001.bin>


More information about the cfe-commits mailing list