[PATCH] D42525: [clangd] Replace Optional in ScopeExitGuard (fix after r322838)

2018-01-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. r323443 removed ScopeExitGuard altogether. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42525 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D42525: [clangd] Replace Optional in ScopeExitGuard (fix after r322838)

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/Function.h:141 namespace detail { +/// Optional-like type that sets its value to llvm::None when it was moved +/// constructed from. sammccall wrote: > As noted in the thread I don't think this pulls its

[PATCH] D42525: [clangd] Replace Optional in ScopeExitGuard (fix after r322838)

2018-01-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/Function.h:141 namespace detail { +/// Optional-like type that sets its value to llvm::None when it was moved +/// constructed from. As noted in the thread I don't think this pulls its weight for us. Swapping

[PATCH] D42525: [clangd] Replace Optional in ScopeExitGuard (fix after r322838)

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added a reviewer: sammccall. Herald added subscribers: ioeric, jkorous-apple, klimek. r322838 changed semantics for llvm::Optional that removes the guarantee of setting the value to empty after move. This change creates a wrapper around Optional