Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » U++ 2019.1.rc4 released
Re: U++ 2019.1.rc4 released [message #51612 is a reply to message #51601] Fri, 19 April 2019 16:43 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1371
Registered: December 2006
Ultimate Contributor
mirek wrote on Fri, 19 April 2019 06:27

Did it trigger any valgrind errors? If so, which ones?

Yes, they did. Please check the attached file.

mirek wrote on Fri, 19 April 2019 06:27

Quote:

(I fixed/added two constructors)
	CppItem() : access(), kind(), at(), virt(), decla(), lvalue(), isptr(), filetype(), impl(), file(), line(), qualify(true) {}

struct PPItem {
	PPItem() : type(), segment_id() {}

These changes won't make TheIDE any slower.


Probably not noticeably, but it is matter of principle: Do I need from now on to initialize variables that are not used in particular branch of code?

Well, valgrind and sanitizers is very often the only way to figure out an origin of a problem because sometimes this can be a bug with a compiler but the code itself. An when I see a lot of garbage in the output I just want to stop using the code because it is unprofessional. It is not that hard to fix all errors reported by valgrind and sanitizers.

In the second case both members are used, I believe.
In the first case I initialized everything because I didn't have time to figure out which one exactly is used uninitialized.

mirek wrote on Fri, 19 April 2019 06:27

Quote:

This is C++98 initialization style. I didn't do that C++11 way for compatibility reason.


Why? Smile

Old habit.
  • Attachment: vg.log.02
    (Size: 366.17KB, Downloaded 189 times)


Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dark theme support changes
Next Topic: U++ 2019.1.rc1 released
Goto Forum:
  


Current Time: Sat Sep 21 03:03:27 CEST 2024

Total time taken to generate the page: 0.04321 seconds