[clang] 80c76b9 - Fix NATVIS visualization of ActionResult
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 12 14:00:49 PDT 2023
Author: Aaron Ballman
Date: 2023-09-12T17:00:38-04:00
New Revision: 80c76b9d27966534e133f92f344359688164fb4a
URL: https://github.com/llvm/llvm-project/commit/80c76b9d27966534e133f92f344359688164fb4a
DIFF: https://github.com/llvm/llvm-project/commit/80c76b9d27966534e133f92f344359688164fb4a.diff
LOG: Fix NATVIS visualization of ActionResult
This addresses issues introduced by efe4a54884cb1e5f1d6306f5e831d369c6fd6f54
Added:
Modified:
clang/utils/ClangVisualizers/clang.natvis
Removed:
################################################################################
diff --git a/clang/utils/ClangVisualizers/clang.natvis b/clang/utils/ClangVisualizers/clang.natvis
index 388f6fe444ef909..cbb63dc08de2338 100644
--- a/clang/utils/ClangVisualizers/clang.natvis
+++ b/clang/utils/ClangVisualizers/clang.natvis
@@ -1071,12 +1071,12 @@ For later versions of Visual Studio, no setup is required-->
<DisplayString>{Val}</DisplayString>
</Type>
<Type Name="clang::ActionResult<*, 1>">
- <DisplayString Condition="PtrWithInvalid&1">Invalid</DisplayString>
- <DisplayString Condition="!PtrWithInvalid">Unset</DisplayString>
- <DisplayString>{($T1)(PtrWithInvalid&~1)}</DisplayString>
+ <DisplayString Condition="Value&1">Invalid</DisplayString>
+ <DisplayString Condition="Value==0">Unset</DisplayString>
+ <DisplayString>{($T1)(Value&~1)}</DisplayString>
<Expand>
- <Item Name="Invalid">(bool)(PtrWithInvalid&1)</Item>
- <Item Name="Val">($T1)(PtrWithInvalid&~1)</Item>
+ <Item Name="Invalid">(bool)(Value&1)</Item>
+ <Item Name="Val">($T1)(Value&~1)</Item>
</Expand>
</Type>
</AutoVisualizer>
More information about the cfe-commits
mailing list