Skip to content
  1. Feb 10, 2010
    • Douglas Gregor's avatar
      Implement AST importing and merging for typedefs. As part of this, provide a... · fa7a0e51
      Douglas Gregor authored
      Implement AST importing and merging for typedefs. As part of this, provide a lame implementation for importing TypeSourceInfos.
      
      llvm-svn: 95783
      fa7a0e51
    • Douglas Gregor's avatar
      Teach AST merging that variables with incomplete array types can be · 2fbe558c
      Douglas Gregor authored
      merged with variables of constant array types. Also, make sure that we
      call DiagnosticClient's BeginSourceFile/EndSourceFile, so that it has
      a LangOptions to work with.
      
      llvm-svn: 95782
      2fbe558c
    • Douglas Gregor's avatar
      Implement basic support for importing source locations from one AST · 811663eb
      Douglas Gregor authored
      into another AST, including their include history. Here's an example
      error that involves a conflict merging a variable with different types
      in two translation units (diagnosed in the third AST context into
      which everything is merged).
      
      /Volumes/Data/dgregor/Projects/llvm/tools/clang/test/ASTMerge/Inputs/var2.c:3:5:
      error: external variable 'x2' declared with incompatible types in
      different translation units ('int' vs. 'double')
      int x2;
          ^
      In file included from
      /Volumes/Data/dgregor/Projects/llvm/tools/clang/test/ASTMerge/Inputs/var1.c:3:
      /Volumes/Data/dgregor/Projects/llvm/tools/clang/test/ASTMerge/Inputs/var1.h:1:8:
      note: declared here with type 'double'
      double x2;
             ^
      
      Although we maintain include history, we do not maintain macro
      instantiation history across a merge. Instead, we map down to the
      spelling location (for now!).
      
      llvm-svn: 95732
      811663eb
  2. Feb 09, 2010
  3. Feb 08, 2010
  4. Feb 05, 2010
Loading