CTSRD-CHERI / clang

DO NOT USE. Use llvm-project instead
Other
9 stars 8 forks source link

char * __capability foo = "bar" would be nice. #143

Closed trasz closed 6 years ago

trasz commented 7 years ago

It would be nice if the compiler could accept code like this:

char * __capability foo = "bar";

Not only it looks better without explicit type casting, but the compiler could also set the right bounds automatically.

davidchisnall commented 6 years ago

This seems to have been implemented.