MartinBonner

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: C++11 Intellisense in Visual Studio 2015 #7449
    MartinBonner
    Participant

    Clang intellisense is (I believe) the preferred solution.  If Clang intellisense is crashing in your project, I am pretty sure Sysprogs would like to know about it – raise a separate issue for it though.  (I do have a formatting problem with Clang Intellisense, for which they have send me a test fix – but I haven’t tried it yet.  I must.)

    in reply to: formatting with visualGDB 5 is REALLY crap! (sorry..) #7163
    MartinBonner
    Participant

    Sorry, nope.  Auto-match brackets is set to “True”.

    in reply to: C++11 Intellisense in Visual Studio 2015 #7162
    MartinBonner
    Participant

    Sorry, I don’t understand your workround Bazis.  What changes do I need to make to debug.mak/release.mak?

    Notes:

    1. The workround that ivas suggests seems to work completely.
    2. The Clang engine is completely unacceptable until the formatting problem is fixed (see other thread).  (I’d rather just switch off Intellisense entirely.)
    in reply to: formatting with visualGDB 5 is REALLY crap! (sorry..) #7153
    MartinBonner
    Participant

    Yes it is clear.  The Visual Studio information is appended to this message.

    The problem appears to be that when I type

    if (a)<ENTER>

    it is formatted as:

    if (a)
        <caret here>

    (whichever Intellisense is active).  If I then type “{“, the native Intellisense undoes the indent, but Clang doesn’t (both insert the trailing “}”.  So I get either

    if (a)
    {}

    or

    if (a)
        {}

    If I then start typing new lines of code, I get another level of indentation from the {, so Clang looks like:

    if (a)
        {
            b;
        }

    (Any differences between this report and the previous one, boil down to me actually looking at what is on the screen, rather than mis-remembering.  Sorry!)

     

    in reply to: Error while loading shared libraries #7149
    MartinBonner
    Participant

    What it means by “File not found” is not that it can’t find your .so, it means that it can’t find the loader to load an ARMv7 library on an ARMv6 kernel.  You can get the same problem when you try and run a 32-bit exe on a 64 bit Linux – the exe is there, but the exec call fails with “File not found”.

    in reply to: formatting with visualGDB 5 is REALLY crap! (sorry..) #7147
    MartinBonner
    Participant

    As an example of the sort of problem I am getting, my usual style of formatting is:

        if (test)
        {
            foo();
        }
    

    However, with Clang intellisense, as soon as I hit “{” on a new line, it gets indented to:

        if (test)
            {
    

    I know there are some people that like that style of indenting, but I AM NOT ONE OF THEM!

    in reply to: formatting with visualGDB 5 is REALLY crap! (sorry..) #7124
    MartinBonner
    Participant

    Ah!  I had wondered what was breaking my formatting.  Mixing formatting up with IntelliSense is a mistake anyway, and not allowing people to control it is really poor.

    in reply to: C++11 Intellisense in Visual Studio 2015 #7123
    MartinBonner
    Participant

    Hmm.  That workround only seems to work sometimes 🙁

    Anyone have any better solutions?

    in reply to: C++11 Intellisense in Visual Studio 2015 #7119
    MartinBonner
    Participant

    Woo hoo!  Found a workround:  Go to “IntelliSense Settings” tab on the VisualGDB Project Properties, and change IntelliSense engine to “Enable advance Clang-base IntelliSense engine”.

    (Of course, this does mean you have to go round fixing all the undefined behaviour that Clang doesn’t like in your code!)

Viewing 9 posts - 1 through 9 (of 9 total)