This is an archive of the discontinued LLVM Phabricator instance.

[Concepts] Fix ast dump for immediately declared constraint.
ClosedPublic

Authored by hokein on Jul 23 2020, 1:32 PM.

Diff Detail

Event Timeline

hokein created this revision.Jul 23 2020, 1:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2020, 1:32 PM
nridge added a subscriber: nridge.Jul 24 2020, 11:50 AM
nridge added inline comments.Jul 26 2020, 7:18 PM
clang/test/AST/ast-dump-concepts.cpp
4

nit: perhaps use a more generic name like binary_concept (meaning concept that takes two types)

nridge added inline comments.Jul 26 2020, 7:22 PM
clang/test/AST/ast-dump-concepts.cpp
12

another nit: the requires(true) is not relevant to the testcase.

(Although, perhaps it is another bug that it does not appear in the dump?)

riccibruno added inline comments.
clang/test/AST/ast-dump-concepts.cpp
1

Can you also test for serialization by round-tripping through a PCH (see the other AST dump tests for examples; you just need to add two RUN lines)?

hokein updated this revision to Diff 280890.Jul 27 2020, 6:32 AM
hokein marked 3 inline comments as done.

address review comments.

nridge accepted this revision.Jul 27 2020, 11:27 PM
This revision is now accepted and ready to land.Jul 27 2020, 11:27 PM