Marking variables as const when they won't be modified after initialization helps programmers trying to understand a codebase to manage the cognative load. This pull request uses a clang-tidy fixit (Hard to automate, since the code needs to be temporarily compiled as C++ for it to work) to try to mechanically apply the const keyword to code where the automated tool can determine that the variable won't be modified. I then follow this up with a manual improvement pass to turnutils_uclient, where I address const correctness of local variables, as well as do some adjustments to loops and scoping to help with reducing complexity. Co-authored-by: redraincatching <redraincatching@disroot.org> Co-authored-by: Pavel Punsky <eakraly@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| win | ||
| apputils.c | ||
| apputils.h | ||
| CMakeLists.txt | ||
| ns_turn_openssl.h | ||
| ns_turn_utils.c | ||
| ns_turn_utils.h | ||
| stun_buffer.c | ||
| stun_buffer.h | ||