http://llvm.org/bugs/show_bug.cgi?id=21979
Bug ID: 21979
Summary: Add Clang C++ warning when non-trivial type parameter
is passed by value but not changed in function
Product: new-bugs
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Hi!
I think will be good idea to introduce warnings for situations when non-trivial
type (of big size or with non-default copy constructor, for example, STL
container) parameter is passed by value but not changed in function (only const
methods are called), so in this case const reference should be used instead.
Eugene.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs