Skip to content

Commit c112f96

Browse files
committed
[clang][NFC] Annotate AnalysisBasedWarning.h with preferred_type
This helps debuggers to display values in bit-fields in a more helpful way.
1 parent 07ec9a3 commit c112f96

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/include/clang/Sema/AnalysisBasedWarnings.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ class AnalysisBasedWarnings {
3434
class Policy {
3535
friend class AnalysisBasedWarnings;
3636
// The warnings to run.
37+
LLVM_PREFERRED_TYPE(bool)
3738
unsigned enableCheckFallThrough : 1;
39+
LLVM_PREFERRED_TYPE(bool)
3840
unsigned enableCheckUnreachable : 1;
41+
LLVM_PREFERRED_TYPE(bool)
3942
unsigned enableThreadSafetyAnalysis : 1;
43+
LLVM_PREFERRED_TYPE(bool)
4044
unsigned enableConsumedAnalysis : 1;
4145
public:
4246
Policy();

0 commit comments

Comments
 (0)