Skip to content
  1. Dec 03, 2006
    • Chris Lattner's avatar
      move void argument checking from the parser to the semantic analysis stage. · c81f079d
      Chris Lattner authored
      This allows us to handle typedefs of void correctly.  This implements
      clang/test/Sema/void_arg.c
      
      llvm-svn: 39236
      c81f079d
    • Chris Lattner's avatar
      Handle void correctly in the argument list for a function. For: · d2e97c1f
      Chris Lattner authored
        X = sizeof(int (void a));
        X = sizeof(int (int, void));
        X = sizeof(int (void, ...));
      
      We now emit:
      
      t.c:6:24: error: void argument may not have a name
        X = sizeof(int (void a));
                             ^
      t.c:7:24: error: 'void' must be the first and only parameter if specified
        X = sizeof(int (int, void));
                             ^
      t.c:8:19: error: 'void' must be the first and only parameter if specified
        X = sizeof(int (void, ...));
                        ^
      
      
      And we pretty print this correctly (even though void isn't stored in the
      arg list of the function type):
        X = sizeof(int (void));
      
      
      However, this approach will have to change to handle typedefs of void.
      
      llvm-svn: 39235
      d2e97c1f
  2. Dec 02, 2006
  3. Nov 28, 2006
  4. Nov 21, 2006
  5. Nov 20, 2006
  6. Nov 19, 2006
  7. Nov 13, 2006
  8. Nov 12, 2006
  9. Nov 11, 2006
  10. Nov 10, 2006
Loading