kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #27704
Re: [PATCH] common.h tidyups
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxx>
-
Date:
Thu, 9 Feb 2017 08:56:29 -0500
-
In-reply-to:
<CAG1r56Lx8JDSjdj1Bcbw-z1vt91=+qRs5PgM=kMbA-3WrAXYMg@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
John,
I like this idea. Anything that prevents unnecessary compiling is a
good thing. Looking at this repo, I'm guessing that everything from
commit 8f192fe12eb52efd6d024c82d1416db5e62b345f on is what needs to be
merged. I'll try to take a look at it over the weekend. Keep up the
great work.
Thanks,
Wayne
On 2/9/2017 8:44 AM, John Beard wrote:
> Hi,
>
> I have a big set of patches on a branch that are mostly to do with
> stripping seldom-used functions out of common.h into more targeted
> headers:
>
> https://code.launchpad.net/~john-j-beard/kicad/+git/kicad/+ref/tidy_ups
>
> The idea here is to reduce the visibility of these functions from
> almost every file in KiCad to just those that need them. This also
> means that changing the signatures (or even just adding comments)
> doesn't force a huge recompile of the whole codebase, just the files
> that use them. It also makes common.h less of a "dumping ground" for
> random stuff.
>
> There were several old functions or variables that weren't used,
> weren't defined, or weren't declared too, and these were tidied up.
>
> I have used std::unique_ptr in a couple of places, at one was leaking
> an object before.
>
> I only meant to do a few, but since any big work in common.h is as bad
> as small work, I did quite a few.
>
> The patches should mostly be cherry-pickable in case not all of them are wanted.
>
> Cheers,
>
> John
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References