Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added a simple check for unused variables. | Bernhard Schommer | 2017-02-17 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | The check test whether the identifier is used at all in the function and if not issue a warning. It is not tested whether the usage is reachable at all, so int i; if (0) i; would not generate a warning. This is the same as gcc/clang does. The warning is disabled per default, but is active if -Wall is given. Bug 19872 | ||||
* | Checks can be applied add several places. | Bernhard Schommer | 2017-02-17 | 1 | -1/+1 |
| | | | | | | There should not be a single check place, since for example unknonw attributes should be check after elaboration and other simplifications. | ||||
* | Added new module for checks on elaborated C code | Bernhard Schommer | 2017-02-17 | 1 | -0/+16 |
The new module adds a function which is called during parse after all C transformation have taken place for adding additional checks. Currently only unknown attribute are checked. Bug 19872 |