[clang] c112f96 - [clang][NFC] Annotate `AnalysisBasedWarning.h` with `preferred_type`
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 11 00:00:39 PST 2024
Author: Vlad Serebrennikov
Date: 2024-02-11T11:00:28+03:00
New Revision: c112f963ce2b2efc8da765a1161402cebfa379b8
URL: https://github.com/llvm/llvm-project/commit/c112f963ce2b2efc8da765a1161402cebfa379b8
DIFF: https://github.com/llvm/llvm-project/commit/c112f963ce2b2efc8da765a1161402cebfa379b8.diff
LOG: [clang][NFC] Annotate `AnalysisBasedWarning.h` with `preferred_type`
This helps debuggers to display values in bit-fields in a more helpful way.
Added:
Modified:
clang/include/clang/Sema/AnalysisBasedWarnings.h
Removed:
################################################################################
diff --git a/clang/include/clang/Sema/AnalysisBasedWarnings.h b/clang/include/clang/Sema/AnalysisBasedWarnings.h
index 020ddd36cf73ee..aafe227b84084c 100644
--- a/clang/include/clang/Sema/AnalysisBasedWarnings.h
+++ b/clang/include/clang/Sema/AnalysisBasedWarnings.h
@@ -34,9 +34,13 @@ class AnalysisBasedWarnings {
class Policy {
friend class AnalysisBasedWarnings;
// The warnings to run.
+ LLVM_PREFERRED_TYPE(bool)
unsigned enableCheckFallThrough : 1;
+ LLVM_PREFERRED_TYPE(bool)
unsigned enableCheckUnreachable : 1;
+ LLVM_PREFERRED_TYPE(bool)
unsigned enableThreadSafetyAnalysis : 1;
+ LLVM_PREFERRED_TYPE(bool)
unsigned enableConsumedAnalysis : 1;
public:
Policy();
More information about the cfe-commits
mailing list