I started to define C++-classes for junctions, edges, cells, network for my traffic simulation.
Using CLion and esp. Clang-Tidy help me a lot to learn and write better C++ code.
#C++ #CLion #clang-tidy
https://clang.llvm.org/extra/clang-tidy/
Using CLion and esp. Clang-Tidy help me a lot to learn and write better C++ code.
#C++ #CLion #clang-tidy
https://clang.llvm.org/extra/clang-tidy/
Comments
For instance the getter functions should be marked in this way because their return values should not be ignored.
Do you use the attribute [[nodiscard]]?
#C++ #clang-tidy
But I barely noticed its usage in other people's code. :D