Skip to content

Commit 0764254

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/include/clang/AST/StmtOpenMP.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2974,6 +2974,7 @@ class OMPAtomicDirective : public OMPExecutableDirective {
29742974
/// This field is 1 for the first form of the expression and 0 for the
29752975
/// second. Required for correct codegen of non-associative operations (like
29762976
/// << or >>).
2977+
LLVM_PREFERRED_TYPE(bool)
29772978
uint8_t IsXLHSInRHSPart : 1;
29782979
/// Used for 'atomic update' or 'atomic capture' constructs. They may
29792980
/// have atomic expressions of forms:
@@ -2983,9 +2984,11 @@ class OMPAtomicDirective : public OMPExecutableDirective {
29832984
/// \endcode
29842985
/// This field is 1 for the first(postfix) form of the expression and 0
29852986
/// otherwise.
2987+
LLVM_PREFERRED_TYPE(bool)
29862988
uint8_t IsPostfixUpdate : 1;
29872989
/// 1 if 'v' is updated only when the condition is false (compare capture
29882990
/// only).
2991+
LLVM_PREFERRED_TYPE(bool)
29892992
uint8_t IsFailOnly : 1;
29902993
} Flags;
29912994

0 commit comments

Comments
 (0)