[LLVMbugs] [Bug 21979] New: Add Clang C++ warning when non-trivial type parameter is passed by value but not changed in function
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Fri Dec 19 09:48:19 PST 2014
    
    
  
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: unassignedbugs at nondot.org
          Reporter: eugene.zelenko at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141219/f573191c/attachment.html>
    
    
More information about the llvm-bugs
mailing list