Skip to content

[NFC] Add release notes for -Wunsafe-buffer-usage-in-libc-call #126975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

ziqingluo-90
Copy link
Contributor

-Wunsafe-buffer-usage-in-libc-call is a subgroup of -Wunsafe-buffer-usage that warns about unsafe libc function calls.

`-Wunsafe-buffer-usage-in-libc-call` is a subgroup of
`-Wunsafe-buffer-usage` that warns about unsafe libc function calls.
@llvmbot llvmbot added the clang Clang issues not falling into any other category label Feb 12, 2025
@llvmbot
Copy link
Member

llvmbot commented Feb 12, 2025

@llvm/pr-subscribers-clang

Author: Ziqing Luo (ziqingluo-90)

Changes

-Wunsafe-buffer-usage-in-libc-call is a subgroup of -Wunsafe-buffer-usage that warns about unsafe libc function calls.


Full diff: https://github.com/llvm/llvm-project/pull/126975.diff

1 Files Affected:

  • (modified) clang/docs/ReleaseNotes.rst (+3)
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 6344c4b36e357..0e1cacaa76a35 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -135,6 +135,9 @@ Improvements to Clang's diagnostics
 - Fixed a bug where Clang's Analysis did not correctly model the destructor behavior of ``union`` members (#GH119415).
 - A statement attribute applied to a ``case`` label no longer suppresses
   'bypassing variable initialization' diagnostics (#84072).
+- The ``-Wunsafe-buffer-usage`` warning has been updated to warn
+  about unsafe libc function calls.  Those new warnings are emitted
+  under the subgroup ``-Wunsafe-buffer-usage-in-libc-call``.
 
 Improvements to Clang's time-trace
 ----------------------------------

@ziqingluo-90 ziqingluo-90 merged commit 2a7d3f0 into llvm:main Feb 20, 2025
11 checks passed
@ziqingluo-90 ziqingluo-90 deleted the dev/ziqing/rel-notes-update branch February 25, 2025 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants