[clang-tidy] undo bitfields in ExceptionAnalyzer
authorJonas Toth <jonas.toth@gmail.com>
Tue, 26 Feb 2019 18:15:17 +0000 (18:15 +0000)
committerJonas Toth <jonas.toth@gmail.com>
Tue, 26 Feb 2019 18:15:17 +0000 (18:15 +0000)
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

index ac19697..5902e5a 100644 (file)
@@ -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;