This is an archive of the discontinued LLVM Phabricator instance.

[c++20][clangd] Simplify code using the new `ConceptReference` nodes.
ClosedPublic

Authored by massberg on Aug 31 2023, 4:25 AM.

Details

Summary

Directly traverse ConceptReferences in FindTarget.cpp.

There is no need for the extra logic for AutoTypeLocs in SemanticHightlighting.cpp as the concept information is stored in a ConceptReference which is now traversed.

Diff Detail

Event Timeline

massberg created this revision.Aug 31 2023, 4:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 31 2023, 4:25 AM
massberg requested review of this revision.Aug 31 2023, 4:25 AM
sammccall accepted this revision.Aug 31 2023, 4:36 AM
sammccall added inline comments.
clang-tools-extra/clangd/FindTarget.cpp
1059

I think this can just be VisitConceptReference, then no need to call into base

This revision is now accepted and ready to land.Aug 31 2023, 4:36 AM
massberg updated this revision to Diff 554985.Aug 31 2023, 4:53 AM
massberg marked an inline comment as done.

Use VisitConceptReference instead of TraverseConceptReference

This revision was landed with ongoing or failed builds.Aug 31 2023, 4:56 AM
This revision was automatically updated to reflect the committed changes.