Philipp Krones ceea3c6a35
Rollup merge of #5248 - ThibsG:ConstValues, r=flip1995
Add lint on large non scalar const

This PR adds the new lint `non_scalar_const` that aims to warn against `const` declaration of large arrays. For performance, because of inlining, large arrays should be preferably declared as `static`.

Note: i made this one to warn on all const arrays, whether they are in a body function or not. I don't know if this is really necessary, i could just reduce this lint to variables out of function scope.

Fixes: #400

changelog: add new lint for large non-scalar types declared as const
2020-04-15 20:12:28 +02:00
..
2020-04-09 08:08:36 +02:00
2020-04-01 12:15:39 -07:00
2020-04-01 20:14:05 +02:00
2020-03-20 22:52:53 +00:00
2020-04-08 08:37:20 -07:00
2020-03-31 16:13:51 +05:30
2020-04-02 18:31:31 -07:00
2020-04-01 20:12:36 +02:00
2020-04-01 20:12:36 +02:00
2020-03-29 22:22:36 +02:00
2020-03-11 06:35:07 +09:00
2020-03-10 18:00:37 -04:00
2020-03-10 18:00:37 -04:00
2020-03-23 16:45:31 +00:00