In C and its family of languages, the ``++^++`` operator performs the _exclusive or_ (xor) operation. This can be misleading, since ``++^++`` is also commonly used to designate the exponentiation operation, for instance in BASIC, R or (La)TeX.
This rule will flag uses of ``++^++`` in places where an exponentiation is suspected to be the intended operation, i.e on expressions that attempt to _xor_ 2 or 10 with a constant expression.
uint32_t max_uint16 = 1 << 16; // Compliant, using left shift to generate a power of 2
uint32_t one_billion = pow(10, 9); // Compliant, using the math pow function
----
== Exceptions
No issue will be raised when at least one of the operands is expressed as a binary, octal or hexadecimal literal. In such cases, the assumption is that _xor_ operation is intended.