From: Jonas Toth Date: Tue, 26 Feb 2019 18:15:17 +0000 (+0000) Subject: [clang-tidy] undo bitfields in ExceptionAnalyzer X-Git-Tag: llvmorg-10-init~11181 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1e8cbd5c3f0ed33ab4fb8df98645ebea0018fe8;p=platform%2Fupstream%2Fllvm.git [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 --- 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;