[clang-tidy] undo bitfields in ExceptionAnalyzer

Scoped enums do induce some problems with some MSVC and GCC versions
if used as bitfields. Therefor this is deactivated for now.

llvm-svn: 354903
This commit is contained in:
Jonas Toth 2019-02-26 18:15:17 +00:00
parent 7821f892bf
commit c1e8cbd5c3
1 changed files with 2 additions and 4 deletions

View File

@ -109,19 +109,17 @@ public:
/// Keep track if the entity related to this 'ExceptionInfo' can in princple /// Keep track if the entity related to this 'ExceptionInfo' can in princple
/// throw, if it's unknown or if it won't throw. /// throw, if it's unknown or if it won't throw.
State Behaviour : 2; State Behaviour;
/// Keep track if the entity contains any unknown elements to keep track /// Keep track if the entity contains any unknown elements to keep track
/// of the certainty of decisions and/or correct 'Behaviour' transition /// of the certainty of decisions and/or correct 'Behaviour' transition
/// after filtering. /// after filtering.
bool ContainsUnknown : 1; bool ContainsUnknown;
/// 'ThrownException' is empty if the 'Behaviour' is either 'NotThrowing' or /// 'ThrownException' is empty if the 'Behaviour' is either 'NotThrowing' or
/// 'Unknown'. /// 'Unknown'.
Throwables ThrownExceptions; Throwables ThrownExceptions;
}; };
static_assert(sizeof(ExceptionInfo) <= 64u,
"size of exceptioninfo shall be at max one cache line");
ExceptionAnalyzer() = default; ExceptionAnalyzer() = default;