Skip to content
Snippets Groups Projects
Commit 17a76edf authored by Mike Spertus's avatar Mike Spertus
Browse files

Use VS2015 Project Support for Natvis to eliminate the need to manually...

Use VS2015 Project Support for Natvis to eliminate the need to manually install clang native visualizer

This is the clang equivalent to llvm commit 264601. When using Visual Studio 2015, cmake now puts the native visualizers in llvm.sln, so the developer automatically sees custom visualizations.
Much thanks to ariccio who provided extensive help on this change. (manual installation still needed on VS2013).



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264603 91177308-0d34-0410-b5e6-96231b3b80d8
parent 492b4fc9
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
# Do this by hand instead of using add_llvm_utilities(), which
# tries to create a corresponding executable, which we don't want.
if (LLVM_ADD_NATIVE_VISUALIZERS_TO_SOLUTION)
set(CLANG_VISUALIZERS clang.natvis)
add_custom_target(ClangVisualizers SOURCES ${CLANG_VISUALIZERS})
set_target_properties(ClangVisualizers PROPERTIES FOLDER "Utils")
endif()
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
<!-- <!--
Visual Studio Native Debugging Visualizers for LLVM Visual Studio Native Debugging Visualizers for LLVM
Put this file into "%USERPROFILE%\Documents\Visual Studio 20xx\Visualizers" For Visual Studio 2013 only, put this file into
or create a symbolic link so it updates automatically. "%USERPROFILE%\Documents\Visual Studio 2013\Visualizers" or create a symbolic link so it updates automatically.
-->
For later versions of Visual Studio, no setup is required-->
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="clang::Type"> <Type Name="clang::Type">
......
...@@ -98,14 +98,16 @@ ...@@ -98,14 +98,16 @@
<!--=====================================================================--> <!--=====================================================================-->
<p>The files <p>The files
<a href="http://llvm.org/svn/llvm-project/llvm/trunk/utils/llvm.natvis"> <a href="http://llvm.org/svn/llvm-project/llvm/trunk/utils/LLVMVisualizers/llvm.natvis">
<tt>utils/llvm.natvis</tt></a> and <tt>utils/LLVMVisualizers/llvm.natvis</tt></a> and
<a href="http://llvm.org/svn/llvm-project/cfe/trunk/utils/clang.natvis"> <a href="http://llvm.org/svn/llvm-project/cfe/trunk/utils/ClangVisualizers/clang.natvis">
<tt>utils/clang.natvis</tt></a> provide debugger visualizers <tt>utils/ClangVisualizers/clang.natvis</tt></a> provide debugger visualizers
that make debugging of more complex data types much easier.</p> that make debugging of more complex data types much easier.</p>
<p>Put the files into <p>For Visual Studio 2013 only, put the files into
<tt>%USERPROFILE%\Documents\Visual Studio 2012\Visualizers</tt> or <tt>%USERPROFILE%\Documents\Visual Studio 2013\Visualizers</tt> or
create a symbolic link so they update automatically.</p> create a symbolic link so they update automatically.</p>
<p>For later versions of Visual Studio, no installation is required.
Note also that later versions of Visual Studio also display better visualizations.</p>
<!--=====================================================================--> <!--=====================================================================-->
<h2 id="testing">Testing</h2> <h2 id="testing">Testing</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment