[all-commits] [llvm/llvm-project] 4f395d: adds more checks to -Wfree-nonheap-object
Christopher Di Bella via All-commits
all-commits at lists.llvm.org
Thu Feb 25 11:26:40 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4f395db86b5cc11bb56853323d3cb1d4b6db5a0b
https://github.com/llvm/llvm-project/commit/4f395db86b5cc11bb56853323d3cb1d4b6db5a0b
Author: Christopher Di Bella <cjdb at google.com>
Date: 2021-02-25 (Thu, 25 Feb 2021)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaChecking.cpp
M clang/test/Analysis/free.c
A clang/test/Analysis/free.cpp
M clang/test/Analysis/malloc-fnptr-plist.c
M clang/test/Analysis/malloc.c
M clang/test/Analysis/weak-functions.c
Log Message:
-----------
adds more checks to -Wfree-nonheap-object
This commit adds checks for the following:
* labels
* block expressions
* random integers cast to `void*`
* function pointers cast to `void*`
Differential Revision: https://reviews.llvm.org/D94640
More information about the All-commits
mailing list