Add pure
as a function property
#3224
Labels
Component: Core
Issue needs changes to the core
Effort: Low
Issue should take < 1 week
Impact: Medium
Issue is impactful with a bad, or no, workaround
State: Duplicate
Issue is a duplicate of another issue
Type: Enhancement
Issue is a small enhancement to existing functionality
What is the feature you'd like to have?
I want to be able to use Edit Function Properties to mark a function as
pure
. The purpose here would be to allow the call to be optimized out entirely if the return value isn't used.Is your feature request related to a problem?
This could really clean up analysis of things like malware using API hammering. This might also be useful in cases like #2923 (and may even effectively be a duplicate, not entirely sure).
Additional Information:
We should probably never set this attribute automatically, except possibly in the case where the user has supplied a header that has the function marked as such.
The text was updated successfully, but these errors were encountered: