[PATCH] D86930: [clang-format] Handle typename macros inside cast expressions
Alexander Richardson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 2 03:12:04 PDT 2020
arichardson added a comment.
In D86930#2251144 <https://reviews.llvm.org/D86930#2251144>, @dougpuob wrote:
> I am a beginner to compiler, interesting in how to write Unit Test case for change so I ran it, but found difference with my expection.
>
> You mentioned
> Before: x = (STACK_OF(uint64_t)) & a;
> After: x = (STACK_OF(uint64_t))&a;
>
> Your input test data is identical with the expected data. Does this exactly you need? Attach with a screenshot for your reference.
> F12833965: 2020-09-02_081105.png <https://reviews.llvm.org/F12833965>
It previously would have reformatted that input to add the spaces, so using the expected value as an input works fine. This is what almost all tests in this file do.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86930/new/
https://reviews.llvm.org/D86930
More information about the cfe-commits
mailing list