Go to file
Kp 7fdce88558 Add parentheses around target of simple casts
C casts do not require parentheses.  C++ casts require grouping around
the target.  Prepare for conversion to C++ casts by adding otherwise
unnecessary parentheses around the target of simple C casts.

This pass does not attempt to process expressions that involve
any subexpression that can nest arbitrarily, such as parentheses or
brackets.  It also works only on commonly used standard types.

	(int) a->b;	// changed
	(int) a[b];	// not changed

s/\((\s*\(\(un\)\?signed\|int\|char\|short\|long\|float\|double\|s\?size_t\|\(u\?int[[:digit:]]\+_t\)\)\s*\**\s*)\s*\)\([&+-]\?\)\([[:alnum:]_.]\+\s*->\s*\)*\([[:alnum:]_.]\+\)\(\s*\([];+>)*\/^%,|&<>]\)\|$\|\(\s*-\s*[^>]\)\)/\1(\5\6\7)\8/g
2016-06-05 01:04:25 +00:00
common Add parentheses around target of simple casts 2016-06-05 01:04:25 +00:00
contrib Update Xcode project file listing (for editing purposes) 2016-03-06 13:05:37 +08:00
d1x-rebirth Add parentheses around target of simple casts 2016-06-05 01:04:25 +00:00
d2x-rebirth Add parentheses around target of simple casts 2016-06-05 01:04:25 +00:00
Documentation Add TODO item for namespace changes 2015-12-18 04:08:24 +00:00
similar Add parentheses around target of simple casts 2016-06-05 01:04:25 +00:00
.gitignore ignore XCode user data 2014-12-06 22:43:12 -08:00
COPYING.txt corrected typo in COPYING.txt (it's to its) 2014-06-06 13:18:52 +02:00
GPL-3.txt
INSTALL.markdown Add basic instructions on building Rebirth 2015-09-26 21:17:14 +00:00
SConstruct Describe git tag in banner output 2016-06-01 01:52:45 +00:00