This is an archive of the discontinued LLVM Phabricator instance.

Add a PragmaHandler Registry for plugins to add PragmaHandlers to
ClosedPublic

Authored by john.brawn on Mar 21 2016, 9:31 AM.

Details

Summary

This allows plugins which add AST passes to also define pragmas to do things like only enable certain behaviour of the AST pass in files where a certain pragma is used.

Diff Detail

Repository
rL LLVM

Event Timeline

john.brawn updated this revision to Diff 51168.Mar 21 2016, 9:31 AM
john.brawn retitled this revision from to Add a PragmaHandler Registry for plugins to add PragmaHandlers to.
john.brawn updated this object.
john.brawn added reviewers: bkramer, rsmith, rnk.
john.brawn set the repository for this revision to rL LLVM.
john.brawn added a subscriber: cfe-commits.
rnk edited edge metadata.Mar 21 2016, 9:40 AM

This seems reasonable.

In D18319#379337, @rnk wrote:

This seems reasonable.

OK to commit then?

bkramer accepted this revision.Apr 4 2016, 4:10 AM
bkramer edited edge metadata.

OK to commit then?

Yeah, looks good.

This revision is now accepted and ready to land.Apr 4 2016, 4:10 AM
This revision was automatically updated to reflect the committed changes.