gecko-dev/tools/clang-tidy/test/clang-analyzer-cplusplus.NewDeleteLeaks.cpp
Chris Peterson 557f9a3436 Bug 1475882 - clang-analyzer: Enable clang-analyzer-cplusplus.NewDeleteLeaks check. r=andi
Check for memory leaks. Traces memory managed by new/ delete. There are currently no clang-analyzer-cplusplus.NewDeleteLeaks warnings in mozilla-central!

https://clang-analyzer.llvm.org/available_checks.html

MozReview-Commit-ID: 3tmwR26UB8K

--HG--
extra : rebase_source : 3796cc6b61c03e83ce8b390e3342b870085b2ed2
extra : source : 3389fb54d2e3daee38db38503b37e9d994878bcd
2018-07-14 23:10:39 -07:00

7 lines
105 B
C++

// https://clang-analyzer.llvm.org/available_checks.html
void test()
{
int *p = new int;
} // warning