For vs2015, the files still need to be in the project right?  (In the vcxproj with a <natvis> tag)<br><div class="gmail_quote"><div dir="ltr">On Sun, Mar 27, 2016 at 9:09 AM Mike Spertus <<a href="mailto:mike@spertus.com">mike@spertus.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">mspertus updated this revision to Diff 51741.<br>
mspertus added a comment.<br>
<br>
Apply whitespace comments from <a href="http://reviews.llvm.org/D18497" rel="noreferrer" target="_blank">http://reviews.llvm.org/D18497</a> mutatis mutandis to this change<br>
<br>
<br>
<a href="http://reviews.llvm.org/D18498" rel="noreferrer" target="_blank">http://reviews.llvm.org/D18498</a><br>
<br>
Files:<br>
  CMakeLists.txt<br>
  utils/clang.natvis<br>
  www/hacking.html<br>
<br>
Index: www/hacking.html<br>
===================================================================<br>
--- www/hacking.html<br>
+++ www/hacking.html<br>
@@ -103,9 +103,11 @@<br>
     <a href="<a href="http://llvm.org/svn/llvm-project/cfe/trunk/utils/clang.natvis" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-project/cfe/trunk/utils/clang.natvis</a>"><br>
       <tt>utils/clang.natvis</tt></a> provide debugger visualizers<br>
       that make debugging of more complex data types much easier.</p><br>
-  <p>Put the files into<br>
-    <tt>%USERPROFILE%\Documents\Visual Studio 2012\Visualizers</tt> or<br>
+  <p>For Visual Studio 2013 only, put the files into<br>
+    <tt>%USERPROFILE%\Documents\Visual Studio 2013\Visualizers</tt> or<br>
     create a symbolic link so they update automatically.</p><br>
+  <p>For later versions of Visual Studio, no installation is required.<br>
+    Note also that later versions of Visual Studio also display better visualizations.</p><br>
<br>
   <!--=====================================================================--><br>
   <h2 id="testing">Testing</h2><br>
Index: utils/clang.natvis<br>
===================================================================<br>
--- utils/clang.natvis<br>
+++ utils/clang.natvis<br>
@@ -2,9 +2,10 @@<br>
 <!--<br>
 Visual Studio Native Debugging Visualizers for LLVM<br>
<br>
-Put this file into "%USERPROFILE%\Documents\Visual Studio 20xx\Visualizers"<br>
-or create a symbolic link so it updates automatically.<br>
---><br>
+For Visual Studio 2013 only, put this file into<br>
+"%USERPROFILE%\Documents\Visual Studio 2013\Visualizers" or create a symbolic link so it updates automatically.<br>
+<br>
+For later versions of Visual Studio, no setup is required--><br>
 <AutoVisualizer xmlns="<a href="http://schemas.microsoft.com/vstudio/debugger/natvis/2010" rel="noreferrer" target="_blank">http://schemas.microsoft.com/vstudio/debugger/natvis/2010</a>"><br>
<br>
   <Type Name="clang::Type"><br>
Index: CMakeLists.txt<br>
===================================================================<br>
--- CMakeLists.txt<br>
+++ CMakeLists.txt<br>
@@ -817,3 +817,11 @@<br>
     ExternalProject_Add_StepTargets(${NEXT_CLANG_STAGE} ${target})<br>
   endforeach()<br>
 endif()<br>
+<br>
+# Do this by hand instead of using add_llvm_utilities(), which<br>
+# tries to create a corresponding executable, which we don't want<br>
+if (LLVM_ADD_NATIVE_VISUALIZERS_TO_SOLUTION)<br>
+  set(CLANG_VISUALIZERS utils/clang.natvis)<br>
+  add_custom_target(ClangVisualizers SOURCES ${CLANG_VISUALIZERS})<br>
+  set_target_properties(ClangVisualizers PROPERTIES FOLDER "Utils")<br>
+endif()<br>
\ No newline at end of file<br>
<br>
<br>
</blockquote></div>