Ignore:
Timestamp:
Jun 21, 2023, 1:28:09 PM (12 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
6065281f
Parents:
2de175ce
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/array-container/dimexpr-match.hfa

    r2de175ce rf02f546  
    145145#define EXPAND_AND_QUOTE(str) QUOTE(str)
    146146#define TRY_COMPAT_E EXPAND_AND_QUOTE(TRY_COMPAT(__L__,__R__))
    147 
    148 // Temporary: CFA is classic by default
    149 #if defined CFA_IS_PREVIEW && defined CFA_IS_CLASSIC
    150 #error Must not define both CFA_IS_CLASSIC, CFA_IS_PREVIEW
    151 #endif
    152 #if ! defined CFA_IS_PREVIEW && ! defined CFA_IS_CLASSIC
    153 #define CFA_IS_CLASSIC
    154 #endif
    155147
    156148#if ! defined __cforall
Note: See TracChangeset for help on using the changeset viewer.