This is an archive of the discontinued LLVM Phabricator instance.

trivial patch, improve constness
ClosedPublic

Authored by danielmarjamaki on Jul 8 2015, 8:06 AM.

Details

Reviewers
aaron.ballman
Summary

this trivial patch improves constness. it makes it possible to use these utility functions for constant expressions also.

Diff Detail

Event Timeline

danielmarjamaki retitled this revision from to trivial patch, improve constness.
danielmarjamaki updated this object.
danielmarjamaki added a subscriber: cfe-commits.

Overall this looks reasonable to me and consistent with the style for the rest of this file (which uses const when possible also). One minor comment inline.

lib/Sema/SemaChecking.cpp
6048

Seems like all these casts would be better of with const auto?

minor update, use auto instead of explicit type

ping. can somebody review?

ping.. can somebody review.

danielmarjamaki marked an inline comment as done.Jan 21 2016, 5:20 AM
aaron.ballman accepted this revision.Jan 21 2016, 5:21 AM
aaron.ballman added a reviewer: aaron.ballman.
aaron.ballman added a subscriber: aaron.ballman.

LGTM!

This revision is now accepted and ready to land.Jan 21 2016, 5:21 AM

Thanks! Committed with r258673