From c1e8cbd5c3f0ed33ab4fb8df98645ebea0018fe8 Mon Sep 17 00:00:00 2001 From: Jonas Toth Date: Tue, 26 Feb 2019 18:15:17 +0000 Subject: [PATCH] [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 --- clang-tools-extra/clang-tidy/utils/ExceptionAnalyzer.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/clang-tools-extra/clang-tidy/utils/ExceptionAnalyzer.h b/clang-tools-extra/clang-tidy/utils/ExceptionAnalyzer.h index ac19697..5902e5a 100644 --- a/clang-tools-extra/clang-tidy/utils/ExceptionAnalyzer.h +++ b/clang-tools-extra/clang-tidy/utils/ExceptionAnalyzer.h @@ -109,19 +109,17 @@ public: /// Keep track if the entity related to this 'ExceptionInfo' can in princple /// 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 /// of the certainty of decisions and/or correct 'Behaviour' transition /// after filtering. - bool ContainsUnknown : 1; + bool ContainsUnknown; /// 'ThrownException' is empty if the 'Behaviour' is either 'NotThrowing' or /// 'Unknown'. Throwables ThrownExceptions; }; - static_assert(sizeof(ExceptionInfo) <= 64u, - "size of exceptioninfo shall be at max one cache line"); ExceptionAnalyzer() = default; -- 2.7.4