summaryrefslogtreecommitdiffstats
path: root/clang/test/ASTMerge/Inputs/var2.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed layout of test/ASTMerge.Sean Callanan2016-11-161-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | As outlined in a previous RFC, the test/ASTMerge/Inputs folder is getting full and the tests are starting to become interdependent. This is undesirable because - it makes it harder to write new tests - it makes it harder to figure out at a glance what old tests are doing, and - it adds the risk of breaking one test while changing a different one, because of the interdependencies. To fix this, according to the conversation in the RFC, I have changed the layout from a.c Inputs/a1.c Inputs/a2.c to a/test.c a/Inputs/a1.c a/Inputs/a2.c for all existing tests. I have also eliminated interdependencies by replicating the input files for each test that uses them. https://reviews.llvm.org/D26571 llvm-svn: 287129
* Teach AST merging that variables with incomplete array types can beDouglas Gregor2010-02-101-0/+4
| | | | | | | | 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
* Implement basic support for importing source locations from one ASTDouglas Gregor2010-02-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add in the LIT magic to avoid running AST merge test inputs asDouglas Gregor2010-02-091-1/+0
| | | | | | separate tests. Thanks, Daniel! llvm-svn: 95705
* Introduce a testbed for merging multiple ASTs into a single ASTDouglas Gregor2010-02-091-0/+3
context with the AST importer. WIP, still useless but at least it has a test. llvm-svn: 95683
OpenPOWER on IntegriCloud