Lines Matching full:exception
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
27 // __exception_guard is a helper class for writing code with the strong exception guarantee.
29 // When writing code that can throw an exception, one can store rollback instructions in an
30 // exception guard so that if an exception is thrown at any point during the lifetime of the
31 // exception guard, it will be rolled back automatically. When the exception guard is done, one
32 // must mark it as being complete so it isn't rolled back when the exception guard is destroyed.
34 // Exception guards are not default constructible, they can't be copied or assigned to, but
38 // that we don't provide the strong exception guarantees. However, Clang doesn't generate cleanup
39 // code with exceptions disabled, so even if we wanted to provide the strong exception guarantees
41 // -fexceptions > -fno-exceptions > -fexceptions code, since the exception can't be caught where
44 // less common, especially one that tries to catch an exception through -fno-exceptions code.