none
Does Code Clone Analysis work in C++ projects in vNext? RRS feed

  • Question

  • I have the vNext Developer Preview (Ultimate) and am having trouble getting the Code Clone analysis working.  I select some code and attempt "Find Matching Clones in Solution" but get the message "Please select a valid code snippet within one method body that contains at least one statement."  I do have a for loop selected so clearly it's confused.

    I started a brand new C++ CLR Console app and tried the same thing and get "Code Clone Analysis - Error. No supported project kind." 

    So.... should Clone Analysis even be on the C++ popup menu? or is this another feature not availalbe to the native (and mixed mode) developer?


    • Edited by jschroedl Friday, September 23, 2011 3:45 PM
    Friday, September 23, 2011 3:45 PM

All replies

  • I have the vNext Developer Preview (Ultimate) and am having trouble getting the Code Clone analysis working.  I select some code and attempt "Find Matching Clones in Solution" but get the message "Please select a valid code snippet within one method body that contains at least one statement."  I do have a for loop selected so clearly it's confused.

    I started a brand new C++ CLR Console app and tried the same thing and get "Code Clone Analysis - Error. No supported project kind." 

    I get that error in a native C++ project regardless of what I have
    selected.

    So.... should Clone Analysis even be on the C++ popup menu? or is this another feature not availalbe to the native (and mixed mode) developer?

    I'd hope it is intended to work for native code, but I don't know.

    Code Metrics still don't work for native code either!

    Dave

    Friday, September 23, 2011 4:25 PM
  • Hello,

     

    You can submit this feedback to Microsoft Connect feedback Center in formal format. Microsoft engineers will evaluate them seriously and report to Product Group.

    http://connect.microsoft.com/VisualStudio/

     

    Or you can create a vote for this in

    Visual Studio UserVoice site

     

    Best regards,

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, September 27, 2011 6:49 AM
    Moderator