mgastner / cartogram-cpp

Cartogram generator in C++
MIT License
8 stars 4 forks source link

Add function parameter names in function prototypes in header files #131

Open adisidev opened 2 years ago

adisidev commented 2 years ago

IDEs use the header files for code completion and for hints. Multiple online resources suggest to include the names of function parameters in prototypes, even if this has no effect on compilation. This practice makes for better documentation and better IDE support. This should be a relatively quick fix.

https://stackoverflow.com/questions/5234169/why-do-function-prototypes-include-parameter-names-when-theyre-not-required

https://rules.sonarsource.com/cpp/RSPEC-926

https://rules.sonarsource.com/c/RSPEC-926