... | ... | @@ -1054,8 +1054,8 @@ if (CONSTANT != my_variable) { } // Good |
|
|
|
|
|
if (my_variable != CONSTANT) { } // Bad
|
|
|
```
|
|
|
* Use `const` type qualifier on pointer parameters when applicable (i.e. when the referenced value remains unchanged)
|
|
|
* Do not use this type qualifier on pass-by-value parameters as it is redundant
|
|
|
* Use `const` type qualifier on pointer parameters when applicable (i.e. when the referenced value remains unchanged).
|
|
|
* Do not use this type qualifier on pass-by-value parameters as it is redundant.
|
|
|
```
|
|
|
const char *app__get_log_line(const *module_s); // Good
|
|
|
bool app__is_id_ready(const *module_s, const size_t type_id); // Bad, const type_id is redundant
|
... | ... | |