Skip to content
  1. Apr 18, 2009
    • Chris Lattner's avatar
      rename test · 974e1f40
      Chris Lattner authored
      llvm-svn: 69424
      974e1f40
    • Chris Lattner's avatar
      tweak redefinition of a typedef a bit to fix a couple of problems: · 2581fc3f
      Chris Lattner authored
      1. We had logic in sema to decide whether or not to emit the error
         based on manually checking whether in a system header file.
      2. we were allowing redefinitions of typedefs in class scope in C++
         if in header file.
      3. there was no way to force typedef redefinitions to be accepted
         by the C compiler, which annoys me when stripping linemarkers out
         of .i files.
      
      The fix is to split the C++ class typedef redefinition path from the
      C path, and change the C path to be a warning that normally maps to
      error.  This causes it to properly be ignored in system headers, 
      etc. and gives us a way to control it.  Passing 
      -Wtypedef-redefinition now turns the error into a warning.
      
      One behavior change is that we now diagnose cases where you redefine
      a typedef in your .c file that was defined in a header file.  This
      seems like reasonable behavior, and the diagnostic now indicates that
      it can be controlled with -Wtypedef-redefinition.
      
      llvm-svn: 69391
      2581fc3f
  2. Apr 17, 2009
  3. Apr 16, 2009
  4. Apr 15, 2009
  5. Apr 14, 2009
  6. Apr 13, 2009
  7. Apr 12, 2009
  8. Apr 11, 2009
  9. Apr 08, 2009
  10. Apr 07, 2009
  11. Apr 06, 2009
  12. Apr 05, 2009
  13. Apr 02, 2009
  14. Apr 01, 2009
Loading