[clang] bc1d61c - [clang][NFC] Annotate `SourceManagerTest.cpp` with `preferred_type`
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 11 04:27:34 PST 2024
Author: Vlad Serebrennikov
Date: 2024-02-11T15:27:21+03:00
New Revision: bc1d61cbf8759f5144217af50d2309b5dddd5538
URL: https://github.com/llvm/llvm-project/commit/bc1d61cbf8759f5144217af50d2309b5dddd5538
DIFF: https://github.com/llvm/llvm-project/commit/bc1d61cbf8759f5144217af50d2309b5dddd5538.diff
LOG: [clang][NFC] Annotate `SourceManagerTest.cpp` with `preferred_type`
This helps debuggers to display values in bit-fields in a more helpful way.
Added:
Modified:
clang/unittests/Basic/SourceManagerTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Basic/SourceManagerTest.cpp b/clang/unittests/Basic/SourceManagerTest.cpp
index 557281499998ae..45840f5188cdcd 100644
--- a/clang/unittests/Basic/SourceManagerTest.cpp
+++ b/clang/unittests/Basic/SourceManagerTest.cpp
@@ -530,6 +530,7 @@ struct MacroAction {
SourceLocation Loc;
std::string Name;
+ LLVM_PREFERRED_TYPE(Kind)
unsigned MAKind : 3;
MacroAction(SourceLocation Loc, StringRef Name, unsigned K)
More information about the cfe-commits
mailing list