[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cppcheck reports
From: |
Julien Nabet |
Subject: |
Cppcheck reports |
Date: |
Thu, 17 May 2012 21:01:21 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
>
> I'm not top posting.
Hello,
I just git clone Lilypond project and launched cppcheck (git updated today).
I thought it could interest you, here are some examples :
[lily/tuplet-bracket.cc:594] -> [lily/tuplet-bracket.cc:594]: (style) Same
expression on both sides of '-'
592 if (!follow_beam)
593 {
594 points.push_back (Offset (x0 - x0, staff[dir]));
595 points.push_back (Offset (x1 - x0, staff[dir]));
596 }
[lily/tie-engraver.cc:240]: (performance) Prefer prefix ++/-- operators for
non-primitive types
240 for (; it < heads_to_tie_.end (); it++)
241 report_unterminated_tie (*it);
(+ it's safer to use it != heads_to_tie_.end ())
[lily/paper-book.cc:346]: (performance) Possible inefficient checking for 'cols'
emptiness
346 if (cols.size ())
347 {
348 Paper_column *col = dynamic_cast<Paper_column *> (cols.back
());
349 col->set_property (symbol, permission);
350 col->find_prebroken_piece (LEFT)->set_property (symbol,
permission);
351 }
If you're interested, I can send you the full report (since there's no
possibility of attachment), just tell me where I can send it.
Julien.
- Cppcheck reports,
Julien Nabet <=
- Re: Cppcheck reports, Marek Klein, 2012/05/18
- Re: Cppcheck reports, Carl Sorensen, 2012/05/18
- Re: Cppcheck reports, Julien Nabet, 2012/05/20
- Re: Cppcheck reports, Carl Sorensen, 2012/05/18
- Re: Cppcheck reports patch for 2546, Julien Nabet, 2012/05/20
- Re: Cppcheck reports patch for 2546, Graham Percival, 2012/05/20
- Re: Cppcheck reports patch for 2546, Carl Sorensen, 2012/05/21
- Re: Cppcheck reports, Mark Mathias, 2012/05/26
- Re: Cppcheck reports, Colin Hall, 2012/05/27