Permalink
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (25 sloc) 749 Bytes

RCS1195: Use ^ operator

Property Value
Id RCS1195
Category Simplification
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

if ((x && !y) || (!x && y)) // RCS1195
{
}

Code with Fix

if (x ^ y)
{
}

See Also

(Generated with DotMarkdown)