bloomberg / clangmetatool

A framework for reusing code in Clang tools
https://bloomberg.github.io/clangmetatool/
Apache License 2.0
119 stars 25 forks source link

Integer constant propagation #18

Closed envp closed 6 years ago

envp commented 6 years ago

TODO

Cases considered

envp commented 6 years ago

Update: Only compound assignment operators remain for this (not sure if clang will allow this because it considers XValues as side-effects that won't be evaluated as RValues)

Alternatively, since the common operations for most numeric types will be the same, shall I modify this PR to cover all numeric types instead of just integral ones?

cc: @ruoso @burz @HaltCatchFire

burz commented 6 years ago

LGTM