Files
swift-mirror/lib/AST/RawComment.cpp
Ben Barham 22f59831ab [AST] Fix comment merging
`toRawComment` takes a range of line/block ordinary/doc comments and
converts them into a `RawComment` that should represent the doc comment
for the attached decl.

Fix a bunch of unhandled cases:
  - A prior comment with whitespace in between would cause the first
    line of the next comment to be missed
  - A gyb comment would attach the prior comment, regardless of
    whitespace inbetween

Resolves rdar://82414210
2021-09-02 09:28:53 +10:00

8.2 KiB