Module Name: src Committed By: rillig Date: Tue Jan 5 17:37:57 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: make check_precedence_confusion simpler In C, only binary operators have possibly confusing precedence. All binary operators have lower precedence than an explicit cast. When an expression is parsed, the parentheses are associated with the innermost possible node. This means that as soon as a cast operator is parenthesized, its contained expression can no longer have confusing precedence. This allows the code to be written more succinct since the local variables are no longer necessary. To generate a diff of this commit: cvs rdiff -u -r1.134 -r1.135 src/usr.bin/xlint/lint1/tree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.