From d147292312ea05eb6b4a28940faffe54093c900e Mon Sep 17 00:00:00 2001 From: Abhin Parekadan Jose Date: Sat, 6 Jan 2024 05:09:36 +0100 Subject: [PATCH 1/9] [clang] move -Wcast-function-type under -Wextra --- clang/include/clang/Basic/DiagnosticGroups.td | 1 + .../Sema/warn-cast-function-type-strict.c | 2 +- clang/test/Sema/warn-cast-function-type.c | 1 + .../warn-extra-cast-function-type-strict.c | 42 +++++++++++++++++++ .../warn-cast-function-type-strict.cpp | 1 + .../test/SemaCXX/warn-cast-function-type.cpp | 1 + 6 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 clang/test/Sema/warn-extra-cast-function-type-strict.c diff --git a/clang/include/clang/Basic/DiagnosticGroups.td b/clang/include/clang/Basic/DiagnosticGroups.td index 6765721ae7002c..d3e57de8ac7a58 100644 --- a/clang/include/clang/Basic/DiagnosticGroups.td +++ b/clang/include/clang/Basic/DiagnosticGroups.td @@ -1026,6 +1026,7 @@ def Extra : DiagGroup<"extra", [ EmptyInitStatement, StringConcatation, FUseLdPath, + CastFunctionType, ]>; def Most : DiagGroup<"most", [ diff --git a/clang/test/Sema/warn-cast-function-type-strict.c b/clang/test/Sema/warn-cast-function-type-strict.c index 5233680796e972..68b49bb0d05d06 100644 --- a/clang/test/Sema/warn-cast-function-type-strict.c +++ b/clang/test/Sema/warn-cast-function-type-strict.c @@ -1,6 +1,6 @@ // RUN: %clang_cc1 %s -fsyntax-only -Wcast-function-type -verify // RUN: %clang_cc1 %s -fsyntax-only -Wcast-function-type-strict -verify - +// RUN: %clang_cc1 %s -fsyntax-only -Wextra -Wno-ignored-qualifiers -verify int t(int array[static 12]); int u(int i); diff --git a/clang/test/Sema/warn-cast-function-type.c b/clang/test/Sema/warn-cast-function-type.c index d7ddcdb73725c0..09d169026b1c86 100644 --- a/clang/test/Sema/warn-cast-function-type.c +++ b/clang/test/Sema/warn-cast-function-type.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -Wcast-function-type -Wno-cast-function-type-strict -verify +// RUN: %clang_cc1 %s -fsyntax-only -Wextra -Wno-cast-function-type-strict -verify int x(long); diff --git a/clang/test/Sema/warn-extra-cast-function-type-strict.c b/clang/test/Sema/warn-extra-cast-function-type-strict.c new file mode 100644 index 00000000000000..ef8853616ba832 --- /dev/null +++ b/clang/test/Sema/warn-extra-cast-function-type-strict.c @@ -0,0 +1,42 @@ +// RUN: %clang_cc1 %s -fsyntax-only -Wextra -verify + + +int t(int array[static 12]); +int u(int i); +const int v(int i); /* expected-warning {{'const' type qualifier on return type has no effec}} */ +int x(long); + +typedef int (f1)(long); +typedef int (f2)(void*); +typedef int (f3)(); +typedef void (f4)(); +typedef void (f5)(void); +typedef int (f6)(long, int); +typedef int (f7)(long,...); +typedef int (f8)(int *); +typedef int (f9)(const int); +typedef int (f10)(int); + +f1 *a; +f2 *b; +f3 *c; +f4 *d; +f5 *e; +f6 *f; +f7 *g; +f8 *h; +f9 *i; +f10 *j; + +void foo(void) { + a = (f1 *)x; + b = (f2 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f2 *' (aka 'int (*)(void *)') converts to incompatible function type}} */ + c = (f3 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f3 *' (aka 'int (*)()') converts to incompatible function type}} */ + d = (f4 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f4 *' (aka 'void (*)()') converts to incompatible function type}} */ + e = (f5 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f5 *' (aka 'void (*)(void)') converts to incompatible function type}} */ + f = (f6 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f6 *' (aka 'int (*)(long, int)') converts to incompatible function type}} */ + g = (f7 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f7 *' (aka 'int (*)(long, ...)') converts to incompatible function type}} */ + h = (f8 *)t; + i = (f9 *)u; + j = (f10 *)v; /* expected-warning {{cast from 'const int (*)(int)' to 'f10 *' (aka 'int (*)(int)') converts to incompatible function type}} */ +} diff --git a/clang/test/SemaCXX/warn-cast-function-type-strict.cpp b/clang/test/SemaCXX/warn-cast-function-type-strict.cpp index f7ee55f84ac280..b3164afde5a0ca 100644 --- a/clang/test/SemaCXX/warn-cast-function-type-strict.cpp +++ b/clang/test/SemaCXX/warn-cast-function-type-strict.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 %s -fblocks -fsyntax-only -Wcast-function-type -verify // RUN: %clang_cc1 %s -fblocks -fsyntax-only -Wcast-function-type-strict -verify +// RUN: %clang_cc1 %s -fblocks -fsyntax-only -Wextra -verify int x(long); diff --git a/clang/test/SemaCXX/warn-cast-function-type.cpp b/clang/test/SemaCXX/warn-cast-function-type.cpp index c613aaea1e33f2..db2ee030fcbfc9 100644 --- a/clang/test/SemaCXX/warn-cast-function-type.cpp +++ b/clang/test/SemaCXX/warn-cast-function-type.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fblocks -fsyntax-only -Wcast-function-type -Wno-cast-function-type-strict -verify +// RUN: %clang_cc1 %s -fblocks -fsyntax-only -Wextra -Wno-cast-function-type-strict -verify int x(long); From 386ea16019fbfb11104417fdebed41cc52681435 Mon Sep 17 00:00:00 2001 From: Abhin Parekadan Jose Date: Sun, 18 Feb 2024 13:44:14 +0100 Subject: [PATCH 2/9] Added fixme comment. Removed the extra testcase. Added release note --- clang/docs/ReleaseNotes.rst | 1 + .../Sema/warn-cast-function-type-strict.c | 1 + .../warn-extra-cast-function-type-strict.c | 42 ------------------- 3 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 clang/test/Sema/warn-extra-cast-function-type-strict.c diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 9b6e00b231216b..c754da55c9ae68 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -284,6 +284,7 @@ Modified Compiler Flags ``rtdcall``. This new default CC only works for M68k and will use the new ``m68k_rtdcc`` CC on every functions that are not variadic. The ``-mrtd`` driver/frontend flag has the same effect when targeting M68k. +* ``-Wextra`` group flag now contains an adittional flag i.e, ``-Wcast-function-type``. Removed Compiler Flags ------------------------- diff --git a/clang/test/Sema/warn-cast-function-type-strict.c b/clang/test/Sema/warn-cast-function-type-strict.c index 68b49bb0d05d06..8c88f275d2b336 100644 --- a/clang/test/Sema/warn-cast-function-type-strict.c +++ b/clang/test/Sema/warn-cast-function-type-strict.c @@ -39,5 +39,6 @@ void foo(void) { g = (f7 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f7 *' (aka 'int (*)(long, ...)') converts to incompatible function type}} */ h = (f8 *)t; i = (f9 *)u; + // FIXME: return type qualifier should not be included in the function type . Warning should be absent after this issue is fixed. https://github.com/llvm/llvm-project/issues/39494 . j = (f10 *)v; /* expected-warning {{cast from 'const int (*)(int)' to 'f10 *' (aka 'int (*)(int)') converts to incompatible function type}} */ } diff --git a/clang/test/Sema/warn-extra-cast-function-type-strict.c b/clang/test/Sema/warn-extra-cast-function-type-strict.c deleted file mode 100644 index ef8853616ba832..00000000000000 --- a/clang/test/Sema/warn-extra-cast-function-type-strict.c +++ /dev/null @@ -1,42 +0,0 @@ -// RUN: %clang_cc1 %s -fsyntax-only -Wextra -verify - - -int t(int array[static 12]); -int u(int i); -const int v(int i); /* expected-warning {{'const' type qualifier on return type has no effec}} */ -int x(long); - -typedef int (f1)(long); -typedef int (f2)(void*); -typedef int (f3)(); -typedef void (f4)(); -typedef void (f5)(void); -typedef int (f6)(long, int); -typedef int (f7)(long,...); -typedef int (f8)(int *); -typedef int (f9)(const int); -typedef int (f10)(int); - -f1 *a; -f2 *b; -f3 *c; -f4 *d; -f5 *e; -f6 *f; -f7 *g; -f8 *h; -f9 *i; -f10 *j; - -void foo(void) { - a = (f1 *)x; - b = (f2 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f2 *' (aka 'int (*)(void *)') converts to incompatible function type}} */ - c = (f3 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f3 *' (aka 'int (*)()') converts to incompatible function type}} */ - d = (f4 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f4 *' (aka 'void (*)()') converts to incompatible function type}} */ - e = (f5 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f5 *' (aka 'void (*)(void)') converts to incompatible function type}} */ - f = (f6 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f6 *' (aka 'int (*)(long, int)') converts to incompatible function type}} */ - g = (f7 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f7 *' (aka 'int (*)(long, ...)') converts to incompatible function type}} */ - h = (f8 *)t; - i = (f9 *)u; - j = (f10 *)v; /* expected-warning {{cast from 'const int (*)(int)' to 'f10 *' (aka 'int (*)(int)') converts to incompatible function type}} */ -} From d14a0dcabd84e8e585b84c41bfdfebda968032d4 Mon Sep 17 00:00:00 2001 From: Abhin Parekadan Jose Date: Sun, 18 Feb 2024 13:47:47 +0100 Subject: [PATCH 3/9] Fixed a typo --- clang/docs/ReleaseNotes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index c754da55c9ae68..410f6ef4fa1f97 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -284,7 +284,7 @@ Modified Compiler Flags ``rtdcall``. This new default CC only works for M68k and will use the new ``m68k_rtdcc`` CC on every functions that are not variadic. The ``-mrtd`` driver/frontend flag has the same effect when targeting M68k. -* ``-Wextra`` group flag now contains an adittional flag i.e, ``-Wcast-function-type``. +* ``-Wextra`` group flag now contains an additional flag i.e, ``-Wcast-function-type``. Removed Compiler Flags ------------------------- From daa462af1735a65f6f05d3011dc8af0b45007351 Mon Sep 17 00:00:00 2001 From: Abhin Parekadan Jose Date: Sun, 18 Feb 2024 14:17:40 +0100 Subject: [PATCH 4/9] Removed added notes by merge conflict --- clang/docs/ReleaseNotes.rst | 9 --------- 1 file changed, 9 deletions(-) diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 410f6ef4fa1f97..ca161389545bb8 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -275,15 +275,6 @@ Deprecated Compiler Flags Modified Compiler Flags ----------------------- -* ``-Woverriding-t-option`` is renamed to ``-Woverriding-option``. -* ``-Winterrupt-service-routine`` is renamed to ``-Wexcessive-regsave`` as a generalization -* ``-frewrite-includes`` now guards the original #include directives with - ``__CLANG_REWRITTEN_INCLUDES``, and ``__CLANG_REWRITTEN_SYSTEM_INCLUDES`` as - appropriate. -* Introducing a new default calling convention for ``-fdefault-calling-conv``: - ``rtdcall``. This new default CC only works for M68k and will use the new - ``m68k_rtdcc`` CC on every functions that are not variadic. The ``-mrtd`` - driver/frontend flag has the same effect when targeting M68k. * ``-Wextra`` group flag now contains an additional flag i.e, ``-Wcast-function-type``. Removed Compiler Flags From eb8ad4fa61fc9296b5245f0a44b8634e9c13b2ef Mon Sep 17 00:00:00 2001 From: Abhin Parekadan Jose Date: Sat, 6 Jan 2024 05:09:36 +0100 Subject: [PATCH 5/9] [clang] move -Wcast-function-type under -Wextra --- clang/include/clang/Basic/DiagnosticGroups.td | 1 + .../Sema/warn-cast-function-type-strict.c | 2 +- clang/test/Sema/warn-cast-function-type.c | 1 + .../warn-extra-cast-function-type-strict.c | 42 +++++++++++++++++++ .../warn-cast-function-type-strict.cpp | 1 + .../test/SemaCXX/warn-cast-function-type.cpp | 1 + 6 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 clang/test/Sema/warn-extra-cast-function-type-strict.c diff --git a/clang/include/clang/Basic/DiagnosticGroups.td b/clang/include/clang/Basic/DiagnosticGroups.td index e8b4139d7893ce..0fb8888ebc62aa 100644 --- a/clang/include/clang/Basic/DiagnosticGroups.td +++ b/clang/include/clang/Basic/DiagnosticGroups.td @@ -1027,6 +1027,7 @@ def Extra : DiagGroup<"extra", [ EmptyInitStatement, StringConcatation, FUseLdPath, + CastFunctionType, ]>; def Most : DiagGroup<"most", [ diff --git a/clang/test/Sema/warn-cast-function-type-strict.c b/clang/test/Sema/warn-cast-function-type-strict.c index 5233680796e972..68b49bb0d05d06 100644 --- a/clang/test/Sema/warn-cast-function-type-strict.c +++ b/clang/test/Sema/warn-cast-function-type-strict.c @@ -1,6 +1,6 @@ // RUN: %clang_cc1 %s -fsyntax-only -Wcast-function-type -verify // RUN: %clang_cc1 %s -fsyntax-only -Wcast-function-type-strict -verify - +// RUN: %clang_cc1 %s -fsyntax-only -Wextra -Wno-ignored-qualifiers -verify int t(int array[static 12]); int u(int i); diff --git a/clang/test/Sema/warn-cast-function-type.c b/clang/test/Sema/warn-cast-function-type.c index d7ddcdb73725c0..09d169026b1c86 100644 --- a/clang/test/Sema/warn-cast-function-type.c +++ b/clang/test/Sema/warn-cast-function-type.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -Wcast-function-type -Wno-cast-function-type-strict -verify +// RUN: %clang_cc1 %s -fsyntax-only -Wextra -Wno-cast-function-type-strict -verify int x(long); diff --git a/clang/test/Sema/warn-extra-cast-function-type-strict.c b/clang/test/Sema/warn-extra-cast-function-type-strict.c new file mode 100644 index 00000000000000..ef8853616ba832 --- /dev/null +++ b/clang/test/Sema/warn-extra-cast-function-type-strict.c @@ -0,0 +1,42 @@ +// RUN: %clang_cc1 %s -fsyntax-only -Wextra -verify + + +int t(int array[static 12]); +int u(int i); +const int v(int i); /* expected-warning {{'const' type qualifier on return type has no effec}} */ +int x(long); + +typedef int (f1)(long); +typedef int (f2)(void*); +typedef int (f3)(); +typedef void (f4)(); +typedef void (f5)(void); +typedef int (f6)(long, int); +typedef int (f7)(long,...); +typedef int (f8)(int *); +typedef int (f9)(const int); +typedef int (f10)(int); + +f1 *a; +f2 *b; +f3 *c; +f4 *d; +f5 *e; +f6 *f; +f7 *g; +f8 *h; +f9 *i; +f10 *j; + +void foo(void) { + a = (f1 *)x; + b = (f2 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f2 *' (aka 'int (*)(void *)') converts to incompatible function type}} */ + c = (f3 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f3 *' (aka 'int (*)()') converts to incompatible function type}} */ + d = (f4 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f4 *' (aka 'void (*)()') converts to incompatible function type}} */ + e = (f5 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f5 *' (aka 'void (*)(void)') converts to incompatible function type}} */ + f = (f6 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f6 *' (aka 'int (*)(long, int)') converts to incompatible function type}} */ + g = (f7 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f7 *' (aka 'int (*)(long, ...)') converts to incompatible function type}} */ + h = (f8 *)t; + i = (f9 *)u; + j = (f10 *)v; /* expected-warning {{cast from 'const int (*)(int)' to 'f10 *' (aka 'int (*)(int)') converts to incompatible function type}} */ +} diff --git a/clang/test/SemaCXX/warn-cast-function-type-strict.cpp b/clang/test/SemaCXX/warn-cast-function-type-strict.cpp index f7ee55f84ac280..b3164afde5a0ca 100644 --- a/clang/test/SemaCXX/warn-cast-function-type-strict.cpp +++ b/clang/test/SemaCXX/warn-cast-function-type-strict.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 %s -fblocks -fsyntax-only -Wcast-function-type -verify // RUN: %clang_cc1 %s -fblocks -fsyntax-only -Wcast-function-type-strict -verify +// RUN: %clang_cc1 %s -fblocks -fsyntax-only -Wextra -verify int x(long); diff --git a/clang/test/SemaCXX/warn-cast-function-type.cpp b/clang/test/SemaCXX/warn-cast-function-type.cpp index c613aaea1e33f2..db2ee030fcbfc9 100644 --- a/clang/test/SemaCXX/warn-cast-function-type.cpp +++ b/clang/test/SemaCXX/warn-cast-function-type.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fblocks -fsyntax-only -Wcast-function-type -Wno-cast-function-type-strict -verify +// RUN: %clang_cc1 %s -fblocks -fsyntax-only -Wextra -Wno-cast-function-type-strict -verify int x(long); From b2c25693cf507bf3a5cf15fa850f3301a97cd993 Mon Sep 17 00:00:00 2001 From: Abhin Parekadan Jose Date: Sun, 18 Feb 2024 13:44:14 +0100 Subject: [PATCH 6/9] Added fixme comment. Removed the extra testcase. Added release note --- clang/docs/ReleaseNotes.rst | 1 + .../Sema/warn-cast-function-type-strict.c | 1 + .../warn-extra-cast-function-type-strict.c | 42 ------------------- 3 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 clang/test/Sema/warn-extra-cast-function-type-strict.c diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 06c7d57d73ca70..bbbb8551d87601 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -163,6 +163,7 @@ Deprecated Compiler Flags Modified Compiler Flags ----------------------- +* ``-Wextra`` group flag now contains an adittional flag i.e, ``-Wcast-function-type``. Removed Compiler Flags ------------------------- diff --git a/clang/test/Sema/warn-cast-function-type-strict.c b/clang/test/Sema/warn-cast-function-type-strict.c index 68b49bb0d05d06..8c88f275d2b336 100644 --- a/clang/test/Sema/warn-cast-function-type-strict.c +++ b/clang/test/Sema/warn-cast-function-type-strict.c @@ -39,5 +39,6 @@ void foo(void) { g = (f7 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f7 *' (aka 'int (*)(long, ...)') converts to incompatible function type}} */ h = (f8 *)t; i = (f9 *)u; + // FIXME: return type qualifier should not be included in the function type . Warning should be absent after this issue is fixed. https://github.com/llvm/llvm-project/issues/39494 . j = (f10 *)v; /* expected-warning {{cast from 'const int (*)(int)' to 'f10 *' (aka 'int (*)(int)') converts to incompatible function type}} */ } diff --git a/clang/test/Sema/warn-extra-cast-function-type-strict.c b/clang/test/Sema/warn-extra-cast-function-type-strict.c deleted file mode 100644 index ef8853616ba832..00000000000000 --- a/clang/test/Sema/warn-extra-cast-function-type-strict.c +++ /dev/null @@ -1,42 +0,0 @@ -// RUN: %clang_cc1 %s -fsyntax-only -Wextra -verify - - -int t(int array[static 12]); -int u(int i); -const int v(int i); /* expected-warning {{'const' type qualifier on return type has no effec}} */ -int x(long); - -typedef int (f1)(long); -typedef int (f2)(void*); -typedef int (f3)(); -typedef void (f4)(); -typedef void (f5)(void); -typedef int (f6)(long, int); -typedef int (f7)(long,...); -typedef int (f8)(int *); -typedef int (f9)(const int); -typedef int (f10)(int); - -f1 *a; -f2 *b; -f3 *c; -f4 *d; -f5 *e; -f6 *f; -f7 *g; -f8 *h; -f9 *i; -f10 *j; - -void foo(void) { - a = (f1 *)x; - b = (f2 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f2 *' (aka 'int (*)(void *)') converts to incompatible function type}} */ - c = (f3 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f3 *' (aka 'int (*)()') converts to incompatible function type}} */ - d = (f4 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f4 *' (aka 'void (*)()') converts to incompatible function type}} */ - e = (f5 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f5 *' (aka 'void (*)(void)') converts to incompatible function type}} */ - f = (f6 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f6 *' (aka 'int (*)(long, int)') converts to incompatible function type}} */ - g = (f7 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f7 *' (aka 'int (*)(long, ...)') converts to incompatible function type}} */ - h = (f8 *)t; - i = (f9 *)u; - j = (f10 *)v; /* expected-warning {{cast from 'const int (*)(int)' to 'f10 *' (aka 'int (*)(int)') converts to incompatible function type}} */ -} From 377483828954150209a3fe8edb5edaaa122dc1c9 Mon Sep 17 00:00:00 2001 From: Abhin Parekadan Jose Date: Sun, 18 Feb 2024 13:47:47 +0100 Subject: [PATCH 7/9] Fixed a typo --- clang/docs/ReleaseNotes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index bbbb8551d87601..03304af2876816 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -163,8 +163,8 @@ Deprecated Compiler Flags Modified Compiler Flags ----------------------- -* ``-Wextra`` group flag now contains an adittional flag i.e, ``-Wcast-function-type``. +* ``-Wextra`` group flag now contains an adittional flag i.e, ``-Wcast-function-type``. Removed Compiler Flags ------------------------- From f07fb78e4e93b400c43f53d7bb60c94b6d65f2b1 Mon Sep 17 00:00:00 2001 From: Abhin Parekadan Jose Date: Sun, 18 Feb 2024 14:17:40 +0100 Subject: [PATCH 8/9] Removed added notes by merge conflict --- clang/docs/ReleaseNotes.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 03304af2876816..338a8a52a10cad 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -164,7 +164,8 @@ Deprecated Compiler Flags Modified Compiler Flags ----------------------- -* ``-Wextra`` group flag now contains an adittional flag i.e, ``-Wcast-function-type``. +* ``-Wextra`` group flag now contains an additional flag i.e, ``-Wcast-function-type``. + Removed Compiler Flags ------------------------- From ec4c425e26273ac2a552afb9b37ac1a2a81de541 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 20 Mar 2024 08:34:34 -0400 Subject: [PATCH 9/9] Reword release note slightly; NFC --- clang/docs/ReleaseNotes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 338a8a52a10cad..9745b013d3fb42 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -164,7 +164,7 @@ Deprecated Compiler Flags Modified Compiler Flags ----------------------- -* ``-Wextra`` group flag now contains an additional flag i.e, ``-Wcast-function-type``. +- Added ``-Wcast-function-type`` as a warning enabled by ``-Wextra``. #GH76872 Removed Compiler Flags -------------------------