SamrudhNelli wrote:

> Can you determine if this is an issue w/ the template input or something 
> else? These should be fine to be on a single line.
>
If i change the test to :
`// HTML-INDEX-NEXT:                 <td> Comment 1</td>`
This error message is encountered..
```
# | // HTML-INDEX-NEXT: <td> Comment 1</td>
# |                     ^
# | <stdin>:128:12: note: scanning from here
# |  <td>0</td>
# |            ^
# | Input was:
# | <<<<<<
# |           127:  <td>Red</td>
# |           128:  <td>0</td>
# | next:55'0                 X error: no match found
# |           129:  <td> Comment 1
# | next:55'0      ~~~~~~~~~~~~~~~~
# | next:55'1       ?               possible intended match
# |           130:  </td>
```
We can see that a newline is added after the comment. I tried removing the 
trailing spaces with `rtrim()` for `CK_TEXT_COMMENT`, but that did not work. It 
seems that comment-template.moustache adds a newline after printing every 
comment.
Would love to hear your ideas on tackling this..

https://github.com/llvm/llvm-project/pull/183085
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to