Skip to content
  1. Sep 03, 2011
    • Benjamin Kramer's avatar
      Make helpers static, remove unused variables. · 2667afa9
      Benjamin Kramer authored
      llvm-svn: 139078
      2667afa9
    • Chandler Carruth's avatar
      Teach -Wdangling-field to warn about temporaries bound to references as · d551d4e1
      Chandler Carruth authored
      well.
      
      Also, clean up the flow of the code a bit, and factor things more
      nicely.
      
      Finally, add the test case that was missing from my previous
      commit (sorry), with new tests added to cover temporaries and other fun
      cases.
      
      llvm-svn: 139077
      d551d4e1
    • Chandler Carruth's avatar
      Add a simple new warning to catch blatantly dangling pointer and · 599deef3
      Chandler Carruth authored
      reference members of classes. We've had several bugs reported because of
      this, and there's no reason not to flag it right away in the compiler.
      
      Comments especially welcome on the strategy for implementing this
      warning (IE, what should trigger this?) and on the text of the warning
      itself.
      
      I'm going to extend this to cover obvious cases with temporaries and
      beef up the test cases some in subsequent patches. I'll then run it over
      a large codebase and make sure its not misbehaving before I add it to
      -Wall or turn it on by default. I think this one might be a good
      candidate for on by default.
      
      llvm-svn: 139075
      599deef3
  2. Sep 02, 2011
  3. Sep 01, 2011
Loading