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

Unified Diff: src/IceGlobalContext.h

Issue 1343843003: Refactor all instances of `typedef y x` to the C++11 `using x = y` syntax. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 3 months 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 | « src/IceFixups.h ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceGlobalContext.h
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h
index e07e577e98616ccc8b462c5e11b3dda8b3bb281d..8a747f8afa11809362beb33aade4ac137801568c 100644
--- a/src/IceGlobalContext.h
+++ b/src/IceGlobalContext.h
@@ -447,7 +447,7 @@ private:
ICE_CACHELINE_BOUNDARY;
// Managed by getDestructors()
- typedef std::vector<std::function<void()>> DestructorArray;
+ using DestructorArray = std::vector<std::function<void()>>;
GlobalLockType DestructorsLock;
DestructorArray Destructors;
@@ -478,7 +478,7 @@ private:
ICE_CACHELINE_BOUNDARY;
/// StrLock is a global lock on the dump and emit output streams.
- typedef std::mutex StrLockType;
+ using StrLockType = std::mutex;
StrLockType StrLock;
Ostream *StrDump; /// Stream for dumping / diagnostics
Ostream *StrEmit; /// Stream for code emission
@@ -545,7 +545,7 @@ private:
ICE_TLS_DECLARE_FIELD(ThreadContext *, TLS);
// Private helpers for mangleName()
- typedef llvm::SmallVector<char, 32> ManglerVector;
+ using ManglerVector = llvm::SmallVector<char, 32>;
void incrementSubstitutions(ManglerVector &OldName) const;
public:
« no previous file with comments | « src/IceFixups.h ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698