Skip to content

Commit

Permalink
[clang][NFC] Annotate AnalysisBasedWarning.h with preferred_type
Browse files Browse the repository at this point in the history
This helps debuggers to display values in bit-fields in a more helpful way.
  • Loading branch information
Endilll committed Feb 11, 2024
1 parent 07ec9a3 commit c112f96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clang/include/clang/Sema/AnalysisBasedWarnings.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c112f96

Please sign in to comment.