mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-15 17:45:58 +00:00
tint: Minor, miscellaneous cleanups
• Rename the 'friendly names' for the abstract numeric types so they match the style in the intrinsic table. • Fix a comment so the literal type is correct. Change-Id: Ie8d7363743c8c359340de3bc6db9a3456d299d34 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/91021 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
eee9f88ba2
commit
e9ce8326b7
@ -86,7 +86,7 @@ TEST_F(ResolverVarLetTest, VarDeclWithConstructor) {
|
|||||||
// struct S { i : i32; }
|
// struct S { i : i32; }
|
||||||
// alias A = S;
|
// alias A = S;
|
||||||
// fn F(){
|
// fn F(){
|
||||||
// var i : i32 = 1;
|
// var i : i32 = 1i;
|
||||||
// var u : u32 = 1u;
|
// var u : u32 = 1u;
|
||||||
// var f : f32 = 1.f;
|
// var f : f32 = 1.f;
|
||||||
// var b : bool = true;
|
// var b : bool = true;
|
||||||
|
@ -34,7 +34,7 @@ bool AbstractFloat::Equals(const sem::Type& other) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string AbstractFloat::FriendlyName(const SymbolTable&) const {
|
std::string AbstractFloat::FriendlyName(const SymbolTable&) const {
|
||||||
return "AbstractFloat";
|
return "abstract-float";
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace tint::sem
|
} // namespace tint::sem
|
||||||
|
@ -34,7 +34,7 @@ bool AbstractInt::Equals(const sem::Type& other) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string AbstractInt::FriendlyName(const SymbolTable&) const {
|
std::string AbstractInt::FriendlyName(const SymbolTable&) const {
|
||||||
return "AbstractInt";
|
return "abstract-int";
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace tint::sem
|
} // namespace tint::sem
|
||||||
|
Loading…
x
Reference in New Issue
Block a user