Last change
on this file since 7e1dbd7 was
f02f546,
checked in by Michael Brooks <mlbrooks@…>, 13 months ago
|
Implement new rules for array dimension expression matching.
Core changes:
src/ResolvExpr/Unify.cc: add sense of "these two expressions unify"
src/InitTweak/GenInit.cc: make hoisting happen more often
tests/array-container/*: reconfigure the array-dimension test to use non-"classic" expectation rules
Misc contributors and noise:
libcfa/src/parseargs.cfa: ,ake a parameter, that's used as a length expression, constant (example of an array user following new rules)
src/ResolvExpr/ResolveTypeof.h: make fixArrayType public
src/Validate/GenericParameter.cpp: do the array-type desugaring in both AST corners that forall-variables can be found (not just in one of them)
tests/.expect/typedefRedef-ERR1.txt: old one was "expecting" a bug, that new array rules handle correctly
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[a32b204] | 1 | // |
---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo |
---|
| 3 | // |
---|
| 4 | // The contents of this file are covered under the licence agreement in the |
---|
| 5 | // file "LICENCE" distributed with Cforall. |
---|
| 6 | // |
---|
[94fa946] | 7 | // ResolveTypeof.h -- |
---|
[a32b204] | 8 | // |
---|
| 9 | // Author : Richard C. Bilson |
---|
| 10 | // Created On : Sun May 17 12:14:53 2015 |
---|
[39d8950] | 11 | // Last Modified By : Andrew Beach |
---|
| 12 | // Last Modified On : Wed Mar 16 11:33:00 2022 |
---|
| 13 | // Update Count : 4 |
---|
[a32b204] | 14 | // |
---|
| 15 | |
---|
[6b0b624] | 16 | #pragma once |
---|
[51b7345] | 17 | |
---|
[ea6332d] | 18 | class Type; |
---|
| 19 | namespace SymTab { |
---|
| 20 | class Indexer; |
---|
| 21 | } // namespace SymTab |
---|
[c8e4d2f8] | 22 | namespace ast { |
---|
| 23 | class Type; |
---|
[16ba4a6] | 24 | class ObjectDecl; |
---|
[c8e4d2f8] | 25 | } |
---|
[51b7345] | 26 | |
---|
| 27 | namespace ResolvExpr { |
---|
[39d8950] | 28 | struct ResolveContext; |
---|
| 29 | |
---|
[a32b204] | 30 | Type *resolveTypeof( Type*, const SymTab::Indexer &indexer ); |
---|
[39d8950] | 31 | const ast::Type * resolveTypeof( const ast::Type *, const ResolveContext & ); |
---|
[f02f546] | 32 | const ast::Type * fixArrayType( const ast::Type *, const ResolveContext & ); |
---|
[39d8950] | 33 | const ast::ObjectDecl * fixObjectType( const ast::ObjectDecl * decl , const ResolveContext & ); |
---|
[51b7345] | 34 | } // namespace ResolvExpr |
---|
| 35 | |
---|
[a32b204] | 36 | // Local Variables: // |
---|
| 37 | // tab-width: 4 // |
---|
| 38 | // mode: c++ // |
---|
| 39 | // compile-command: "make install" // |
---|
| 40 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.