[clang-tools-extra] [clang-tidy] Warn on use of std::get_temporary_buffer (PR #176191)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 15 09:40:03 PST 2026
================
@@ -0,0 +1,20 @@
+// RUN: %check_clang_tidy -std=c++17 %s bugprone-unsafe-functions %t --
----------------
localspook wrote:
```suggestion
// RUN: %check_clang_tidy -std=c++11-or-later %s bugprone-unsafe-functions %t --
```
(although it was only deprecated in C++17, I believe we still want to warn in earlier language versions?)
https://github.com/llvm/llvm-project/pull/176191
More information about the cfe-commits
mailing list