[all-commits] [llvm/llvm-project] 52c8f0: [clang] Add -fcheck-new support
Pedro Falcato via All-commits
all-commits at lists.llvm.org
Fri Jun 23 22:45:32 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 52c8f0bb20eb9e7b1b54ffdddf6da77b53caeb3a
https://github.com/llvm/llvm-project/commit/52c8f0bb20eb9e7b1b54ffdddf6da77b53caeb3a
Author: Pedro Falcato <pedro.falcato at gmail.com>
Date: 2023-06-23 (Fri, 23 Jun 2023)
Changed paths:
M clang/include/clang/Basic/LangOptions.def
M clang/include/clang/Basic/LangOptions.h
M clang/include/clang/Driver/Options.td
M clang/lib/AST/ExprCXX.cpp
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/lib/Sema/SemaDecl.cpp
M clang/lib/Sema/SemaExprCXX.cpp
A clang/test/CodeGenCXX/fcheck-new.cpp
M clang/test/Driver/clang_f_opts.c
Log Message:
-----------
[clang] Add -fcheck-new support
Add -fcheck-new and -fno-check-new, from GCC, which make the compiler
not assume pointers returned from operator new are non-null.
Fixes #16931.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D125272
More information about the All-commits
mailing list