mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-23 20:42:41 +00:00
Abbreviate Integer and FloatingPoint (#3435)
I was suggesting this because `FloatingPoint` is pretty long. `int` and `float` should be familiar abbreviations. `unsigned` should be familiar to developers too, but `UnsignedInt` still feels usefully clearer for the additional chars.
This commit is contained in:
1 parent
0d618b1278
commit
0db63ff17a
143 files changed
+540
-560
No files matched your search
@@ -226,7 +226,7 @@ static auto ExpandUnicodeEscapeSequence(LexerDiagnosticEmitter& emitter,
|
||||
llvm::StringRef digits,
|
||||
char*& buffer_cursor) -> bool {
|
||||
unsigned code_point;
|
||||
if (!CanLexInteger(emitter, digits)) {
|
||||
if (!CanLexInt(emitter, digits)) {
|
||||
return false;
|
||||
}
|
||||
if (digits.getAsInteger(16, code_point) || code_point > 0x10FFFF) {
|
||||
|
||||
Reference in new issue
Block a user