Skip to content

Commit ab2cef5

Browse files
committed
[clang][NFC] Annotate Analysis/CFG.h with preferred_type
This helps debuggers to display values in bit-fields in a more helpful way.
1 parent c8a12ed commit ab2cef5

File tree

1 file changed

+3
-0
lines changed
  • clang/include/clang/Analysis

1 file changed

+3
-0
lines changed

clang/include/clang/Analysis/CFG.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,7 @@ class CFGBlock {
879879
///
880880
/// Optimization Note: This bit could be profitably folded with Terminator's
881881
/// storage if the memory usage of CFGBlock becomes an issue.
882+
LLVM_PREFERRED_TYPE(bool)
882883
unsigned HasNoReturnElement : 1;
883884

884885
/// The parent CFG that owns this CFGBlock.
@@ -1007,7 +1008,9 @@ class CFGBlock {
10071008

10081009
class FilterOptions {
10091010
public:
1011+
LLVM_PREFERRED_TYPE(bool)
10101012
unsigned IgnoreNullPredecessors : 1;
1013+
LLVM_PREFERRED_TYPE(bool)
10111014
unsigned IgnoreDefaultsWithCoveredEnums : 1;
10121015

10131016
FilterOptions()

0 commit comments

Comments
 (0)