[clang] Improve clarity of the implicit declaration diagnostic (PR #149314)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 17 07:03:54 PDT 2025
================
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -fsyntax-only -Wno-strict-prototypes -verify %s
void f() {
- int *ptr = malloc(sizeof(int) * 10); // expected-error{{call to undeclared library function 'malloc' with type}} \
+ int *ptr = malloc(sizeof(int) * 10); // expected-error{{call to undeclared library function 'malloc'}} \
----------------
AaronBallman wrote:
Same thing happening here as above.
https://github.com/llvm/llvm-project/pull/149314
More information about the cfe-commits
mailing list