You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Struct Member bounds information is currently not serialized into the AST, we believe. We need some tests first to find out, and then we will need to add serialization/deserialization for this data.
The text was updated successfully, but these errors were encountered:
lenary
changed the title
Add tests for struct member bounds checks
Add AST Serialization for Struct Member Bounds Information
Jan 14, 2017
This pull request comprehensively revisits and expands the PCH tests, and adds (de)serialization of the bounds associated with global variables, function returns, and struct member fields.
The only way at the moment to test that bounds declarations on global fields and functions are preserved is to redeclare the same function, which should error if you drop the bounds, and not error if you preserve the right bounds as in the precompiled header.
Bounds expressions on struct members are very hard to test, until we start inferring and solving bounds information. The test for `itype()` should work today, the others will become useful later.
As for serialization/deserialization. I've added the code to do so to the VisitDeclaratorDecl methods, because the bounds information is stored within that class (as opposed to its subclasses). I have switched off abbreviations in the bitcodewriter when a declarator decl has a bounds expression.
Closes#104
Struct Member bounds information is currently not serialized into the AST, we believe. We need some tests first to find out, and then we will need to add serialization/deserialization for this data.
The text was updated successfully, but these errors were encountered: