Skip to content

Commit

Permalink
Add test for qca clazy false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1701c committed Sep 10, 2024
1 parent d25e2b4 commit 54c7dee
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/rule-of-three/bug_qca.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
template<typename T> class MemoryRegion
{
public:
MemoryRegion<T> &operator=(const MemoryRegion<T> &)
{
return (*this);
}

~MemoryRegion()
{
}

MemoryRegion()
{
}
MemoryRegion(const MemoryRegion<T> &)
{
}
};

Empty file.
3 changes: 3 additions & 0 deletions tests/rule-of-three/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
},
{
"filename" : "bug403193.cpp"
},
{
"filename" : "bug_qca.cpp"
}
]
}

0 comments on commit 54c7dee

Please sign in to comment.