Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Unified Diff: runtime/vm/type_table.h

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/token_position.cc ('k') | runtime/vm/unibrow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/type_table.h
diff --git a/runtime/vm/type_table.h b/runtime/vm/type_table.h
index 6e3818cdfff753697e30c58f5cf11491602acd8b..6541d20183fe9665cdb1a2146627165a141eba47 100644
--- a/runtime/vm/type_table.h
+++ b/runtime/vm/type_table.h
@@ -13,14 +13,9 @@ namespace dart {
class CanonicalTypeKey {
public:
- explicit CanonicalTypeKey(const Type& key) : key_(key) {
- }
- bool Matches(const Type& arg) const {
- return key_.Equals(arg);
- }
- uword Hash() const {
- return key_.Hash();
- }
+ explicit CanonicalTypeKey(const Type& key) : key_(key) {}
+ bool Matches(const Type& arg) const { return key_.Equals(arg); }
+ uword Hash() const { return key_.Hash(); }
const Type& key_;
private:
@@ -49,26 +44,21 @@ class CanonicalTypeTraits {
ASSERT(key.IsType());
return Type::Cast(key).Hash();
}
- static uword Hash(const CanonicalTypeKey& key) {
- return key.Hash();
- }
+ static uword Hash(const CanonicalTypeKey& key) { return key.Hash(); }
static RawObject* NewKey(const CanonicalTypeKey& obj) {
return obj.key_.raw();
}
};
-typedef UnorderedHashSet <CanonicalTypeTraits> CanonicalTypeSet;
+typedef UnorderedHashSet<CanonicalTypeTraits> CanonicalTypeSet;
class CanonicalTypeArgumentsKey {
public:
- explicit CanonicalTypeArgumentsKey(const TypeArguments& key) : key_(key) {
- }
+ explicit CanonicalTypeArgumentsKey(const TypeArguments& key) : key_(key) {}
bool Matches(const TypeArguments& arg) const {
return key_.Equals(arg) && (key_.Hash() == arg.Hash());
}
- uword Hash() const {
- return key_.Hash();
- }
+ uword Hash() const { return key_.Hash(); }
const TypeArguments& key_;
private:
@@ -97,9 +87,7 @@ class CanonicalTypeArgumentsTraits {
ASSERT(key.IsTypeArguments());
return TypeArguments::Cast(key).Hash();
}
- static uword Hash(const CanonicalTypeArgumentsKey& key) {
- return key.Hash();
- }
+ static uword Hash(const CanonicalTypeArgumentsKey& key) { return key.Hash(); }
static RawObject* NewKey(const CanonicalTypeArgumentsKey& obj) {
return obj.key_.raw();
}
« no previous file with comments | « runtime/vm/token_position.cc ('k') | runtime/vm/unibrow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698