[clang] 0764254 - [clang][NFC] Annotate `StmtOpenMP.h` with `preferred_type`
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 11 00:04:22 PST 2024
Author: Vlad Serebrennikov
Date: 2024-02-11T11:04:12+03:00
New Revision: 0764254e014db8783a31e84a322636c651bc7d6d
URL: https://github.com/llvm/llvm-project/commit/0764254e014db8783a31e84a322636c651bc7d6d
DIFF: https://github.com/llvm/llvm-project/commit/0764254e014db8783a31e84a322636c651bc7d6d.diff
LOG: [clang][NFC] Annotate `StmtOpenMP.h` with `preferred_type`
This helps debuggers to display values in bit-fields in a more helpful way.
Added:
Modified:
clang/include/clang/AST/StmtOpenMP.h
Removed:
################################################################################
diff --git a/clang/include/clang/AST/StmtOpenMP.h b/clang/include/clang/AST/StmtOpenMP.h
index 62164339153573..3cb3c1014d73b7 100644
--- a/clang/include/clang/AST/StmtOpenMP.h
+++ b/clang/include/clang/AST/StmtOpenMP.h
@@ -2974,6 +2974,7 @@ class OMPAtomicDirective : public OMPExecutableDirective {
/// This field is 1 for the first form of the expression and 0 for the
/// second. Required for correct codegen of non-associative operations (like
/// << or >>).
+ LLVM_PREFERRED_TYPE(bool)
uint8_t IsXLHSInRHSPart : 1;
/// Used for 'atomic update' or 'atomic capture' constructs. They may
/// have atomic expressions of forms:
@@ -2983,9 +2984,11 @@ class OMPAtomicDirective : public OMPExecutableDirective {
/// \endcode
/// This field is 1 for the first(postfix) form of the expression and 0
/// otherwise.
+ LLVM_PREFERRED_TYPE(bool)
uint8_t IsPostfixUpdate : 1;
/// 1 if 'v' is updated only when the condition is false (compare capture
/// only).
+ LLVM_PREFERRED_TYPE(bool)
uint8_t IsFailOnly : 1;
} Flags;
More information about the cfe-commits
mailing list