[PATCH] D35729: [Frontend] - Mark some ASTUnit methods as const

Hamza Sood via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 21 10:48:01 PDT 2017

hamzasood created this revision.

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.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35729.107689.patch
Type: text/x-patch
Size: 4471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170721/df132528/attachment.bin>

More information about the cfe-commits mailing list