#
bb7930c1 |
| 10-Feb-2010 |
Douglas Gregor <dgregor@apple.com> |
Implement basic support for merging function declarations across translation units.
llvm-svn: 95794
|
#
2fbe558c |
| 10-Feb-2010 |
Douglas Gregor <dgregor@apple.com> |
Teach AST merging that variables with incomplete array types can be merged with variables of constant array types. Also, make sure that we call DiagnosticClient's BeginSourceFile/EndSourceFile, so th
Teach AST merging that variables with incomplete array types can be 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
show more ...
|
#
811663eb |
| 10-Feb-2010 |
Douglas Gregor <dgregor@apple.com> |
Implement basic support for importing source locations from one AST into another AST, including their include history. Here's an example error that involves a conflict merging a variable with differe
Implement basic support for importing source locations from one AST 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
show more ...
|
#
6b2a4745 |
| 09-Feb-2010 |
Douglas Gregor <dgregor@apple.com> |
Hook up the diagnostics-argument printer when merging AST files, so that we get readable diagnostics such as:
error: external variable 'x1' declared with incompatible types in different translation
Hook up the diagnostics-argument printer when merging AST files, so that we get readable diagnostics such as:
error: external variable 'x1' declared with incompatible types in different translation units ('double *' vs. 'float **')
However, there is no translation of source locations, yet.
llvm-svn: 95704
show more ...
|
#
62d311fd |
| 09-Feb-2010 |
Douglas Gregor <dgregor@apple.com> |
Introduce a testbed for merging multiple ASTs into a single AST context with the AST importer. WIP, still useless but at least it has a test.
llvm-svn: 95683
|