This is an archive of the discontinued LLVM Phabricator instance.

[Frontend] - Mark some ASTUnit methods as const
ClosedPublic

Authored by hamzasood on Jul 21 2017, 10:47 AM.

Details

Summary

While using the libtooling API, I ran into problems when using a const ASTUnit. There were a few functions I needed to use that don't seem to modify anything, but they weren't marked as const so I couldn't use them.

This patch marks those methods (and a few others) as const.

Diff Detail

Repository
rL LLVM

Event Timeline

hamzasood created this revision.Jul 21 2017, 10:47 AM
vsk accepted this revision.Jul 21 2017, 3:26 PM
vsk added a subscriber: vsk.

LGTM.

This revision is now accepted and ready to land.Jul 21 2017, 3:26 PM

Could someone commit this for me? I don't have access.

This revision was automatically updated to reflect the committed changes.