Skip to content
  1. Dec 02, 2007
  2. Dec 01, 2007
  3. Nov 30, 2007
  4. Nov 29, 2007
  5. Nov 28, 2007
    • Steve Naroff's avatar
      · 197616c3
      Steve Naroff authored
      Several fixes/simplifications surrounding how we stream top-level decl AST's.
      
      The following code...
      
      typedef struct cssm_data {} CSSM_DATA, *CSSM_DATA_PTR;
      
      struct Y { int A; };
      
      struct X { int A; } D; 
      
      struct X E, F;
      
      ...now produces the following output...
      
      > ../../Debug/bin/clang xx.c -ast-print
      Read top-level tag decl: 'cssm_data'
      typedef struct cssm_data CSSM_DATA;
      typedef struct cssm_data *CSSM_DATA_PTR;
      Read top-level tag decl: 'Y'
      Read top-level tag decl: 'X'
      Read top-level variable decl: 'D'
      Read top-level variable decl: 'E'
      Read top-level variable decl: 'F'
      
      ...which is much more accurate than the previous -ast-print output...
      
      typedef struct cssm_data CSSM_DATA;
      typedef struct cssm_data CSSM_DATA;
      Read top-level variable decl: 'D'
      Read top-level variable decl: 'E'
      Read top-level variable decl: 'E'
      
      llvm-svn: 44421
      197616c3
    • Ted Kremenek's avatar
      Converted AST Pretty-Printer to use iostreams instead of FILE*. This fixes · 5933768b
      Ted Kremenek authored
      a bug where the statement pretty-printer used iostreams but the AST printer
      did not.  This was an issue when dumping ASTs to something other than stderr.
      
      Updated SerializationTest to use the new iostreams interface for the AST printer.
      
      llvm-svn: 44417
      5933768b
    • Ted Kremenek's avatar
    • Ted Kremenek's avatar
      Added the "Serialization" test directory to the set of tests executed. · 31540ed8
      Ted Kremenek authored
      Introduced a few line breaks to make the Makefile easier to read.
      
      llvm-svn: 44413
      31540ed8
    • Ted Kremenek's avatar
      Added initial test case for testing serialization of ASTs. This test · 46cfdb96
      Ted Kremenek authored
      case simply performs --test-pickling on the code found in Sema/stmt_exprs.c.
      
      llvm-svn: 44412
      46cfdb96
    • Ted Kremenek's avatar
      Modified --test-pickling to perform an actual cross-check of serialized ASTs: · ac76a417
      Ted Kremenek authored
      (1) Parsed ASTs are pretty-printed to a text file.
      (2) The ASTs are serialized to disk.
      (3) The ASTs are deserialized from disk.
      (4) The deserialized ASTs are pretty-printed to a text file.
      (5) The two pretty-printed files are compared. If they are different, the test
          fails.
      
      llvm-svn: 44411
      ac76a417
Loading