Skip to content

C++ interop: Add support for C++ Primitive Types #5263

Open
0 of 1 issue completed
Open
0 of 1 issue completed
@ivanaivanovska

Description

@ivanaivanovska

Use Carbon: C++ Interop - Primitive Types doc as a reference for the type mappings.

  • Signed integer types
Carbon type C++ type Status PRs
i8 signed char / int8_t TODO
i16 short / int16_t DONE #5393
i32 int / int32_t DONE #5197; #5392
Core.Cpp.long long TODO
Core.Cpp.long_long long long TODO
i64 int64_t TODO
  • Unsigned integer types
Carbon type C++ type Status
u8 unsigned char / uint8_t TODO
u16 unsigned short / uint16_t TODO
u32 unsigned int / uint32_t TODO
Core.Cpp.unsigned_long unsigned long TODO
Core.Cpp.unsigned_long_long unsigned long long TODO
u64 uint64_t TODO
  • Floating-point types
Carbon type C++ type Status
f32 float TODO
f64 double TODO
TBD  long double TODO


Sub-issues

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions