Opened 4 years ago
Closed 4 years ago
#217 closed defect (fixed)
Typedef Attributes Not Expanded In Functions
Reported by: | ajbeach | Owned by: | |
---|---|---|---|
Priority: | major | Component: | cfa-cc |
Version: | 1.0 | Keywords: | |
Cc: |
Description ¶
Currently we remove all attributes from typedef uses when they are put into a function type. There appears to be an explicate filter that removes them in the ReplaceTypedef? pass. However some attributes actually need to be copied over - even if some of them must not which is probably why they were removed in the first place.
A better solution is just to remove the ones that cannot be copied over. The default probably should be to copy them over as that seems like it will be the solution more often and so far extra attributes have raised much more noticeable errors then missing attributes.
So far aligned appears to be the only one that should be removed.
I just opened it while I was waiting for tests to finish. They did and passed.