Resharper C++ compatibility guide

Sysprogs forums Forums VisualGDB Resharper C++ compatibility guide

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7944
    Char
    Participant

    I try last EAP of resharper ++  with VisualGDB.

    out of box smple project:

    unknown int types ambiguous  size_t, and some other problems on real project – STL issue and some others.

    1. First of all you need to change IntelliSense to VS from clang
    2. Create new header file for RS++ and add it to nmake forced includes (in project properties)

    My header file comtents

    #if defined(_MSC_VER)
    #define _GLIBCXX_ABI_TAG_CXX11
    #define __size_t__
    #if defined(__cplusplus)
    #undef __cplusplus
    #define __cplusplus 201402L
    #endif

    #ifndef __builtin_expect
    #define __builtin_expect(x,y) (x)
    #endif
    #ifndef __ASSERT_FUNCTION
    #define __ASSERT_FUNCTION
    #endif
    #ifndef __builtin_memset
    #define __builtin_memset(x,y)
    #endif
    #ifndef uint16_t
    typedef unsigned __int16 uint16_t;
    #endif //uint16_t
    #ifndef uint32_t
    typedef unsigned __int32 uint32_t;
    #endif //uint32_t
    #ifndef uint64_t
    typedef unsigned __int64 uint64_t;
    #endif //uint64_t
    #endif

     

    Voila:

    Voila

     

    #7947
    support
    Keymaster

    Hi,

    Thanks for sharing this!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.