summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra
diff options
context:
space:
mode:
authorJonas Toth <jonas.toth@gmail.com>2019-02-26 18:15:17 +0000
committerJonas Toth <jonas.toth@gmail.com>2019-02-26 18:15:17 +0000
commitc1e8cbd5c3f0ed33ab4fb8df98645ebea0018fe8 (patch)
treefd70801576667e5a3e99e999f814fce86d71dbb7 /clang-tools-extra
parent7821f892bfd64b98b1397bd71582b4b4f5574e37 (diff)
downloadbcm5719-llvm-c1e8cbd5c3f0ed33ab4fb8df98645ebea0018fe8.tar.gz
bcm5719-llvm-c1e8cbd5c3f0ed33ab4fb8df98645ebea0018fe8.zip
[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
Diffstat (limited to 'clang-tools-extra')
-rw-r--r--clang-tools-extra/clang-tidy/utils/ExceptionAnalyzer.h6
1 files 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 ac1969763b1..5902e5afecf 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;
OpenPOWER on IntegriCloud