Sysprogs forums › Forums › VisualGDB › boost intellisense issue?
- This topic has 6 replies, 2 voices, and was last updated 7 years, 8 months ago by support.
-
AuthorPosts
-
April 7, 2017 at 20:01 #10922thedixonParticipant
My project uses boost. For some reason, clang intellisense finds a couple of problems there, here’s one example:
Severity Code Description Project File Line Suppression State
Error [Clang IntelliSense] Error: ‘days_’ is a protected member of ‘boost::date_time::date<boost::gregorian::date, boost::gregorian::gregorian_calendar, boost::gregorian::date_duration>’ silverstreet c:\users\xxx\appdata\local\visualgdb\remotesourcecache\xxx\0008\include\boost\date_time\date.hpp 146Severity Code Description Project File Line Suppression State
Message [Clang IntelliSense] declared protected here silverstreet c:\users\xxx\appdata\local\visualgdb\remotesourcecache\xxx\0008\include\boost\date_time\date.hpp 196boost is 1.59. Nothing obvious comes to mind as to why would it not like it?
Unless some
April 7, 2017 at 21:43 #10928thedixonParticipantUpdate. This is not just boost. This particular type of template code produces the same complaint about protected member. Compiles just fine with gcc 5.4. Is that due to c++14 changes? If yes – any workaround short of waiting for the updated visual gdb with (hopefully) new clang?
enum BookEnum { f = 1, s = 2 }; template <typename Derived> class CreatorHelper { public: protected: template <BookEnum BOOK_TYPE> void* test(); }; template <typename Derived> class FCreatorHelper : public CreatorHelper<Derived> { protected: Derived* derived() { return static_cast<Derived*>(this); } virtual void* foo(); }; template <typename Derived> void* FCreatorHelper<Derived>::foo() { return derived()->template test<f>(); } template <typename PipelineTraits> class RealCreator : public FCreatorHelper<RealCreator<PipelineTraits> > { }; class Traits { }; void foo1() { RealCreator<Traits> h; }
Severity Code Description Project File Line Suppression State
Error [Clang IntelliSense] Error: ‘test’ is a protected member of ‘CreatorHelper<RealCreator<Traits> >’ Miscellaneous Files Header1.h 32
Message [Clang IntelliSense] declared protected here Miscellaneous Files Header1.h 14
Message [Clang IntelliSense] in instantiation of member function ‘FCreatorHelper<RealCreator<Traits> >::foo’ requested here Miscellaneous Files Header1.h 36- This reply was modified 7 years, 8 months ago by thedixon.
April 7, 2017 at 22:05 #10930thedixonParticipantActually clang 3.4 also compiles it just fine. Are you having an even older version?
April 8, 2017 at 01:23 #10937supportKeymasterHi,
Thanks, this actually looks like a side effect of one of our fixes on top of the original Clang. Please try this build: http://sysprogs.com/files/tmp/VisualGDB-5.2.16.1462.msi
April 10, 2017 at 13:06 #10949thedixonParticipantConfirmed fixed. Incidentally it seemed to fix all the crashes/slowness I was having with intellisense, it’s much faster and haven’t crashed yet. Very impressive work guys, especially considering it was Friday night.
April 10, 2017 at 13:12 #10950thedixonParticipantTake it back on crashes – they are still happening. For some reason I’m having much faster responses here than in the email support, where I sent a couple of crash dumps to…
April 10, 2017 at 21:18 #10954supportKeymasterHi,
We usually respond faster to issues that do not require thorough investigation (like crash dumps). We will follow up on the crash dumps once we have more information about the cause.
-
AuthorPosts
- You must be logged in to reply to this topic.