This is an archive of the discontinued LLVM Phabricator instance.

[pseudo] Fix the incorrect parameters-and-qualifiers rule.
ClosedPublic

Authored by hokein on May 12 2022, 10:34 AM.

Details

Summary

The parenthese body should be parameter-declaration-clause, rather
than parameter-declaration-list.

Diff Detail

Event Timeline

hokein created this revision.May 12 2022, 10:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2022, 10:34 AM
hokein requested review of this revision.May 12 2022, 10:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2022, 10:34 AM
hokein added a comment.Jun 3 2022, 3:42 AM

friendly ping.

clang-tools-extra/pseudo/test/glr.cpp
37 ↗(On Diff #429001)

since we have the builtin pseudoCXX library now, we could use it to write a cxx unittest, so that we can get rid of this cxx lit test. what do you think? (I have a feeling we might add more in the future, I just discovered a new oversight in our cxx.bnf grammar).

sammccall accepted this revision.Jun 3 2022, 4:20 AM
sammccall added inline comments.
clang-tools-extra/pseudo/test/glr.cpp
37 ↗(On Diff #429001)

For detailed coverage of particular parts, t's not obvious to me whether a unit test or these tests will be more readable. (Consider writing a bunch of matchers and dealing with the messages from those, vs textual diffs here).

37 ↗(On Diff #429001)

can we place this test in another file? (glr/varargs.cpp or so)
I missed this with operator< but that should probably be its own file too.

One of the things that feels painful with clang's lit tests is having to reduce a failure in a huge file with many related tests.

This revision is now accepted and ready to land.Jun 3 2022, 4:20 AM
hokein updated this revision to Diff 434733.Jun 7 2022, 1:46 AM

pull out a separate test file.

This revision was landed with ongoing or failed builds.Jun 7 2022, 1:47 AM
This revision was automatically updated to reflect the committed changes.