xiaoyeli / superlu

Supernodal sparse direct solver. https://portal.nersc.gov/project/sparse/superlu/
Other
272 stars 95 forks source link

Wherever possible declared parameter as pointer to const #151

Open gruenich opened 1 month ago

gruenich commented 1 month ago

Found by Cppcheck (constParameterPointer).

More details why this is a good idea: https://wiki.sei.cmu.edu/confluence/display/c/DCL13-C.+Declare+function+parameters+that+are+pointers+to+values+not+changed+by+the+function+as+const

gruenich commented 1 month ago

This pull request is not complete, there are still plenty of places where Cppcheck complains constParameterPointer.