This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Remove clang classes from lldb-forward.h
ClosedPublic

Authored by xiaobai on Feb 3 2020, 3:59 PM.

Details

Reviewers
JDevlieghere
labath
Group Reviewers
Restricted Project
Commits
rG7c9ebdd3d6ae: [lldb] Remove clang classes from lldb-forward.h
Summary

lldb-forward.h is convenient in many ways, but having clang-based
class forward declarations in there makes it easy to proliferate uses of clang
outside of plugins. Removing them makes you much more conscious of when
you're using something from clang and marks where we're using things
from clang in non-plugins.

Diff Detail

Event Timeline

xiaobai created this revision.Feb 3 2020, 3:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2020, 3:59 PM
JDevlieghere accepted this revision.Feb 3 2020, 4:04 PM
This revision is now accepted and ready to land.Feb 3 2020, 4:04 PM
labath accepted this revision.Feb 3 2020, 5:26 PM
labath added a subscriber: labath.

This is right. I would even go so far as to say that no plugin forward-declarations should be in that file. Based on a quick glance, I think this is mostly true already..

This revision was automatically updated to reflect the committed changes.