Forum Replies Created
-
AuthorPosts
-
MartinBonnerParticipant
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.)
MartinBonnerParticipantSorry, nope. Auto-match brackets is set to “True”.
MartinBonnerParticipantSorry, I don’t understand your workround Bazis. What changes do I need to make to debug.mak/release.mak?
Notes:
- The workround that ivas suggests seems to work completely.
- The Clang engine is completely unacceptable until the formatting problem is fixed (see other thread). (I’d rather just switch off Intellisense entirely.)
MartinBonnerParticipantYes 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!)
- This reply was modified 9 years, 1 month ago by MartinBonner.
- This reply was modified 9 years, 1 month ago by MartinBonner.
MartinBonnerParticipantWhat 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”.
MartinBonnerParticipantAs 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!
MartinBonnerParticipantAh! 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.
MartinBonnerParticipantHmm. That workround only seems to work sometimes 🙁
Anyone have any better solutions?
MartinBonnerParticipantWoo 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!)
-
AuthorPosts