[clang] ab2cef5 - [clang][NFC] Annotate `Analysis/CFG.h` with `preferred_type`
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 11 00:17:10 PST 2024
Author: Vlad Serebrennikov
Date: 2024-02-11T11:16:58+03:00
New Revision: ab2cef5391cc3434bc54b755810c51b55e9a04fc
URL: https://github.com/llvm/llvm-project/commit/ab2cef5391cc3434bc54b755810c51b55e9a04fc
DIFF: https://github.com/llvm/llvm-project/commit/ab2cef5391cc3434bc54b755810c51b55e9a04fc.diff
LOG: [clang][NFC] Annotate `Analysis/CFG.h` with `preferred_type`
This helps debuggers to display values in bit-fields in a more helpful way.
Added:
Modified:
clang/include/clang/Analysis/CFG.h
Removed:
################################################################################
diff --git a/clang/include/clang/Analysis/CFG.h b/clang/include/clang/Analysis/CFG.h
index 9f776ca6cc260d..a7ff38c786a8fe 100644
--- a/clang/include/clang/Analysis/CFG.h
+++ b/clang/include/clang/Analysis/CFG.h
@@ -879,6 +879,7 @@ class CFGBlock {
///
/// Optimization Note: This bit could be profitably folded with Terminator's
/// storage if the memory usage of CFGBlock becomes an issue.
+ LLVM_PREFERRED_TYPE(bool)
unsigned HasNoReturnElement : 1;
/// The parent CFG that owns this CFGBlock.
@@ -1007,7 +1008,9 @@ class CFGBlock {
class FilterOptions {
public:
+ LLVM_PREFERRED_TYPE(bool)
unsigned IgnoreNullPredecessors : 1;
+ LLVM_PREFERRED_TYPE(bool)
unsigned IgnoreDefaultsWithCoveredEnums : 1;
FilterOptions()
More information about the cfe-commits
mailing list