Easy way find uninitialized member variables

后端 未结 11 936
时光说笑
时光说笑 2020-11-29 22:20

I am looking for an easy way to find uninitialized class member variables.

Finding them in either runtime or compile time is OK.

Currently

11条回答
  •  旧巷少年郎
    2020-11-29 22:52

    cppcheck will find this, e.g.:

    cppcheck my_src_dir --output-file=check.txt --inconclusive --enable=warning
    

提交回复
热议问题