[PATCH] D131686: [clang-tidy] Add test to cert-dcl58-cpp (NFC).
Balázs Kéri via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 25 01:12:24 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGab9ee471dfda: [clang-tidy] Add test to cert-dcl58-cpp (NFC). (authored by balazske).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131686/new/
https://reviews.llvm.org/D131686
Files:
clang-tools-extra/test/clang-tidy/checkers/cert/dcl58-cpp.cpp
Index: clang-tools-extra/test/clang-tidy/checkers/cert/dcl58-cpp.cpp
===================================================================
--- clang-tools-extra/test/clang-tidy/checkers/cert/dcl58-cpp.cpp
+++ clang-tools-extra/test/clang-tidy/checkers/cert/dcl58-cpp.cpp
@@ -268,3 +268,16 @@
inline constexpr bool numeric_limits<::ranges::detail::LongT>::is_signed;
inline constexpr bool numeric_limits<::ranges::detail::LongT>::is_integer;
} // namespace std
+
+namespace no_crash {
+struct A
+{
+ friend struct B;
+};
+
+struct B;
+
+template<typename> struct T {};
+
+T<B> b;
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131686.455498.patch
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220825/d02113b9/attachment.bin>
More information about the cfe-commits
mailing list