History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-49299
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
ReSharper

If two expressions differ only in a constituent constant base (0x10 vs. 16), 'Highlight expression usage' should treat them as the same expression.

Created: 15 Sep 07 11:57   Updated: 23 Jan 08 19:34
Component/s: Code View - Search
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 521


 Description  « Hide
I.e. (x + 16) and (x + 0x10) are the same expression.

 All   Comments   Work Log   Change History      Sort Order:
Ilya Ryzhenkov - 15 Sep 07 16:09
Are there other cases we should handle here? What about commutative operations? Like (a+b) vs (b+a), when operator is not user-defined and known to be commutative.

Vladimir Reshetnikov - 15 Sep 07 20:29
  • Constant expressions with equal compile-time values
  • Redundant parentheses
  • Redundant qualifiers
  • Strictly redundant casts
  • Commutative and associative operators