From 3582f4370ed84b0420b57b2ea2bc6ed9ed22c3d5 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 19 Oct 2016 23:39:55 +0000 Subject: Use noexcept instead of LLVM_NOEXCEPT now that all compilers support it git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284667 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Lex/Preprocessor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/clang/Lex/Preprocessor.h') diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 66ff490de1..60add770b5 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -424,10 +424,10 @@ class Preprocessor : public RefCountedBase { public: MacroState() : MacroState(nullptr) {} MacroState(MacroDirective *MD) : State(MD) {} - MacroState(MacroState &&O) LLVM_NOEXCEPT : State(O.State) { + MacroState(MacroState &&O) noexcept : State(O.State) { O.State = (MacroDirective *)nullptr; } - MacroState &operator=(MacroState &&O) LLVM_NOEXCEPT { + MacroState &operator=(MacroState &&O) noexcept { auto S = O.State; O.State = (MacroDirective *)nullptr; State = S; -- cgit v1.2.3