clang-format atom files

This commit is contained in:
Shelley Vohr 2018-04-17 21:44:10 -04:00
parent 717f55b012
commit 53bdf22c85
No known key found for this signature in database
GPG key ID: F13993A75599653C
128 changed files with 771 additions and 753 deletions

View file

@ -15,7 +15,7 @@
namespace atom {
// Like ES6's WeakMap, but the key is Integer and the value is Weak Pointer.
template<typename K>
template <typename K>
class KeyWeakMap {
public:
// Records the key and self, used by SetWeak.
@ -48,9 +48,7 @@ class KeyWeakMap {
}
// Whethere there is an object with |key| in this WeakMap.
bool Has(const K& key) const {
return map_.find(key) != map_.end();
}
bool Has(const K& key) const { return map_.find(key) != map_.end(); }
// Returns all objects.
std::vector<v8::Local<v8::Object>> Values(v8::Isolate* isolate) const {
@ -79,8 +77,7 @@ class KeyWeakMap {
}
// Map of stored objects.
std::unordered_map<
K, std::pair<KeyObject, v8::Global<v8::Object>>> map_;
std::unordered_map<K, std::pair<KeyObject, v8::Global<v8::Object>>> map_;
DISALLOW_COPY_AND_ASSIGN(KeyWeakMap);
};