Comments (1)
This is also going to be required for C11 support. C11 § 6.7 ¶3 says:
a typedef name may be redefined to denote the same type as it currently does, provided that type is not a variably modified type
I'm not sure if "same type" has a formal definition somewhere in the standard, but this notion of equivlance isn't in language-c
yet.
I suppose sameType
might mean given a pair of Type
s:
- if either input is a
TypeDefs
, resolve it and recurse - if it's a
TypeName
compare that everything is identical - if it's an
ArrayType
, orPtrType
check that the base type issameType
and the qualifiers are identical (and array size for arrays is ???) - if it's a
FunctionType
check that the return and arg types (but not param identifiers?) are thesameType
and same variadicity. (and neither function type is incomplete?)
(By "identical" I mean the finest equivalence ignoring NodeInfo and attributes)
from language-c.
Related Issues (20)
- Provide NFData instances for AST data types
- Towards a more complete Analysis.Export
- Support all IEC 60559 types (_Float{32,64,128},_Float{32,64,128}x)
- [Analysis] Trav ought to be a monad transformer HOT 2
- Problem generating function binding with c2hs HOT 7
- language-c-0.8 fails to parse fa.h / stdio.h HOT 2
- Update package on hackage HOT 1
- c2hs fails to parse lzlib.h HOT 2
- Make a hackage release for GHC 8.8
- What are TyAny and TyFloatN supposed to represent? HOT 1
- sizeofType is very broken
- GCC preprocessor output generated in non-ASCII locales cannot be processed HOT 2
- 0-based line number directives generate errors. HOT 1
- Possible __asm__ syntax with trailing colon in parameters HOT 1
- Parse errors when parsing macOS system headers HOT 1
- Build failure with GHC 7.8 HOT 2
- Add support for omitting braces in initializer lists HOT 1
- Missing support for `__uint128_t` on ARM64 (Apple M1) HOT 1
- revise bounds on Hackage to allow latest deepseq HOT 4
- Support putting arbitrary command line options first
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from language-c.