This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Added highlighting for constructor initializers.
ClosedPublic

Authored by jvikstrom on Aug 9 2019, 3:28 AM.

Details

Summary

Constructor initializers were not being highlighted. This adds highlighting for them by using TraverseConstructorInitializer. Uses the Traverse* because there is no visit for CXXCtorInitializer.

Diff Detail

Repository
rL LLVM

Event Timeline

jvikstrom created this revision.Aug 9 2019, 3:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2019, 3:28 AM
jvikstrom updated this revision to Diff 214346.Aug 9 2019, 3:43 AM

Fixed case where initializer was base class initializer which would cause crash.

hokein accepted this revision.Aug 9 2019, 4:29 AM
This revision is now accepted and ready to land.Aug 9 2019, 4:29 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2019, 5:18 AM