This is an archive of the discontinued LLVM Phabricator instance.

[clang] adds `conceptDecl` as an ASTMatcher
ClosedPublic

Authored by cjdb on Jul 17 2023, 11:46 PM.

Diff Detail

Event Timeline

cjdb created this revision.Jul 17 2023, 11:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2023, 11:46 PM
cjdb requested review of this revision.Jul 17 2023, 11:46 PM
cjdb updated this revision to Diff 541338.

adds a header that wasn't a part of the original commit

cjdb edited reviewers, added: ilya-biryukov; removed: klimek.Jul 18 2023, 1:36 PM
cjdb edited reviewers, added: aaron.ballman; removed: ilya-biryukov.Jul 19 2023, 10:10 AM

Apologies for the churn of reviewers, I've been struggling to find the most appropriate reviewer for this CL.

Just some nits, but mostly looks good. Can you also run clang/docs/tools/dump_ast_matchers.py to regenerate the public documentation?

clang/docs/ReleaseNotes.rst
248

You should mention the name of the matcher you've added so there's a bit more context to the release note.

clang/include/clang/ASTMatchers/ASTMatchers.h
1339

This comment isn't quite complete/correct.

cjdb updated this revision to Diff 542260.Jul 19 2023, 5:35 PM
cjdb marked 2 inline comments as done.

applies feedback

cjdb added a comment.Jul 19 2023, 5:36 PM

Just some nits, but mostly looks good. Can you also run clang/docs/tools/dump_ast_matchers.py to regenerate the public documentation?

Currently getting this, but I got quite a few changes nonetheless. Is that a concern?

*** Unparsable: " template <typename NodeType> using AstTypeMatcher = internal::VariadicDynCastAllOfMatcher<Type, NodeType>;" ***
*** Unparsable: " } // namespace ast_matchers } // namespace clang " ***
aaron.ballman accepted this revision.Jul 20 2023, 8:17 AM

Just some nits, but mostly looks good. Can you also run clang/docs/tools/dump_ast_matchers.py to regenerate the public documentation?

Currently getting this, but I got quite a few changes nonetheless. Is that a concern?

*** Unparsable: " template <typename NodeType> using AstTypeMatcher = internal::VariadicDynCastAllOfMatcher<Type, NodeType>;" ***
*** Unparsable: " } // namespace ast_matchers } // namespace clang " ***

Not a concern you need to worry about. LGTM!

This revision is now accepted and ready to land.Jul 20 2023, 8:17 AM
cjdb updated this revision to Diff 542706.Jul 20 2023, 3:33 PM
cjdb edited the summary of this revision. (Show Details)

just trying to get CI close to green :)

Herald added a project: Restricted Project. · View Herald TranscriptJul 20 2023, 3:33 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision was landed with ongoing or failed builds.Jul 20 2023, 4:34 PM
This revision was automatically updated to reflect the committed changes.