Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(115)

Issue 269000043: Issue 4550: Avoid "using namespace std;" in included files (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 7 months ago by Dan Eble
Modified:
4 years, 3 months ago
Reviewers:
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Issue 4550 (1/2) Avoid "using namespace std;" in included files These are manual changes in preparation for an automated removal of "using namespace std;". Mostly these are additions of using-declarations for commonly used types and containers (e.g. std::string, std::vector) to *.cc files so that they will continue to build after the big removal. ~~~ Issue 4550 (2/2) Avoid "using namespace std;" in included files These changes are produced by a rather long shell script that is posted in the code review for this issue. Summary: * remove "using namespace std;" everywhere * add "std::" in *.hh and other included files * add "std::" to functions and lesser-used types in *.cc files ~~~~ Find the script in the review comments.

Patch Set 1 : manual prep #

Patch Set 2 : run the script #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1382 lines, -902 lines) Patch
M flower/file-cookie.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M flower/file-name.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M flower/file-path.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M flower/getopt-long.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M flower/include/cpu-timer.hh View 1 1 chunk +0 lines, -1 line 0 comments Download
M flower/include/direction.hh View 1 1 chunk +2 lines, -2 lines 0 comments Download
M flower/include/file-cookie.hh View 1 1 chunk +0 lines, -1 line 0 comments Download
M flower/include/file-name.hh View 1 1 chunk +8 lines, -8 lines 0 comments Download
M flower/include/file-path.hh View 1 1 chunk +11 lines, -11 lines 0 comments Download
M flower/include/flower-proto.hh View 1 1 chunk +0 lines, -1 line 0 comments Download
M flower/include/getopt-long.hh View 1 1 chunk +3 lines, -3 lines 0 comments Download
M flower/include/international.hh View 1 1 chunk +4 lines, -4 lines 0 comments Download
M flower/include/interval.hh View 1 3 chunks +4 lines, -4 lines 0 comments Download
M flower/include/interval.tcc View 1 3 chunks +8 lines, -9 lines 0 comments Download
M flower/include/interval-set.hh View 1 1 chunk +4 lines, -4 lines 0 comments Download
M flower/include/libc-extension.hh View 1 1 chunk +0 lines, -1 line 0 comments Download
M flower/include/matrix.hh View 1 2 chunks +2 lines, -2 lines 0 comments Download
M flower/include/memory-stream.hh View 1 1 chunk +0 lines, -1 line 0 comments Download
M flower/include/offset.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M flower/include/parray.hh View 1 1 chunk +1 line, -2 lines 0 comments Download
M flower/include/polynomial.hh View 1 3 chunks +7 lines, -7 lines 0 comments Download
M flower/include/pqueue.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M flower/include/rational.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M flower/include/real.hh View 1 1 chunk +0 lines, -1 line 0 comments Download
M flower/include/std-string.hh View 1 1 chunk +15 lines, -16 lines 0 comments Download
M flower/include/std-vector.hh View 1 10 chunks +20 lines, -21 lines 0 comments Download
M flower/include/string-convert.hh View 1 1 chunk +30 lines, -31 lines 0 comments Download
M flower/include/virtual-methods.hh View 1 1 chunk +0 lines, -1 line 0 comments Download
M flower/include/warn.hh View 1 1 chunk +11 lines, -11 lines 0 comments Download
M flower/international.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M flower/interval.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M flower/interval-set.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M flower/libc-extension.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M flower/memory-stream.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M flower/offset.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M flower/polynomial.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M flower/rational.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M flower/real.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M flower/std-string.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M flower/string-convert.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M flower/test-file-name.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M flower/test-file-path.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M flower/test-interval-set.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M flower/test-std.cc View 1 4 chunks +6 lines, -6 lines 0 comments Download
M flower/test-string.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M flower/warn.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M lily/accidental.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/accidental-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/accidental-placement.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/align-interface.cc View 1 3 chunks +8 lines, -6 lines 0 comments Download
M lily/all-font-metrics.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/all-font-metrics-scheme.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/articulations.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/audio-element-info.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/audio-item.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/auto-beam-engraver.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/auto-change-iterator.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/axis-group-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/axis-group-interface.cc View 1 5 chunks +10 lines, -5 lines 0 comments Download
M lily/axis-group-interface-scheme.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/balloon-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/bar-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/bar-number-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/beam.cc View 1 12 chunks +15 lines, -11 lines 0 comments Download
M lily/beam-collision-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/beam-engraver.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/beam-quanting.cc View 1 12 chunks +16 lines, -13 lines 0 comments Download
M lily/beaming-pattern.cc View 1 6 chunks +7 lines, -5 lines 0 comments Download
M lily/bezier.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/book.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/break-alignment-interface.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M lily/break-substitution.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M lily/change-iterator.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/change-sequence-iterator.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/chord-name-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/chord-tremolo-engraver.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M lily/clef.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/clef-engraver.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/clef-modifier.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/cluster.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/cluster-engraver.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M lily/coherent-ligature-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/collision-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/completion-note-heads-engraver.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M lily/completion-rest-engraver.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M lily/concurrent-hairpin-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/constrained-breaking.cc View 1 3 chunks +4 lines, -2 lines 0 comments Download
M lily/context.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/context-def.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M lily/context-specced-music-iterator.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/control-track-performer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/cue-clef-engraver.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/custos.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/custos-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/dot-column.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/dot-configuration.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/dot-formatting-problem.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/dots.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/drum-note-engraver.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/drum-note-performer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/duration.cc View 1 chunk +1 line, -0 lines 0 comments Download
M lily/dynamic-align-engraver.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/dynamic-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/episema-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/figured-bass-engraver.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/figured-bass-position-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/file-name-map.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M lily/fingering-column.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/fingering-column-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/fingering-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/flag.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/font-config.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/font-config-scheme.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/font-metric.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M lily/footnote-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/freetype-error.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/fretboard-engraver.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/function-documentation.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/general-scheme.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/glissando-engraver.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/global-context.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/global-ctor.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/global-vars.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/gregorian-ligature.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/gregorian-ligature-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/grid-line-span-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/grob.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/grob-array.cc View 1 chunk +1 line, -0 lines 0 comments Download
M lily/grob-info.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/grob-interface.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M lily/grob-pq-engraver.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/guile-init.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/hairpin.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/hara-kiri-group-spanner.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/horizontal-bracket.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/horizontal-bracket-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/includable-lexer.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/include/accidental-placement.hh View 1 1 chunk +3 lines, -3 lines 0 comments Download
M lily/include/align-interface.hh View 1 2 chunks +4 lines, -4 lines 0 comments Download
M lily/include/all-font-metrics.hh View 1 1 chunk +5 lines, -5 lines 0 comments Download
M lily/include/articulations.hh View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lily/include/audio-column.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/audio-element-info.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/audio-item.hh View 1 5 chunks +7 lines, -7 lines 0 comments Download
M lily/include/audio-staff.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/axis-group-interface.hh View 1 2 chunks +4 lines, -4 lines 0 comments Download
M lily/include/beam.hh View 1 2 chunks +2 lines, -2 lines 0 comments Download
M lily/include/beam-scoring-problem.hh View 1 5 chunks +14 lines, -14 lines 0 comments Download
M lily/include/beaming-pattern.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/bezier.hh View 1 2 chunks +7 lines, -7 lines 0 comments Download
M lily/include/break-align-interface.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/change-iterator.hh View 1 1 chunk +3 lines, -3 lines 0 comments Download
M lily/include/change-sequence-iterator.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/coherent-ligature-engraver.hh View 1 1 chunk +3 lines, -3 lines 0 comments Download
M lily/include/column-x-positions.hh View 1 1 chunk +3 lines, -3 lines 0 comments Download
M lily/include/constrained-breaking.hh View 1 3 chunks +11 lines, -11 lines 0 comments Download
M lily/include/context.hh View 1 5 chunks +10 lines, -10 lines 0 comments Download
M lily/include/context-def.hh View 1 1 chunk +3 lines, -3 lines 0 comments Download
M lily/include/dimensions.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/dot-configuration.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/dot-formatting-problem.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/duration.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/engraver-group.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/file-name-map.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/font-metric.hh View 1 1 chunk +7 lines, -7 lines 0 comments Download
M lily/include/freetype.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/global-context.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/gregorian-ligature.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/gregorian-ligature-engraver.hh View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lily/include/grob.hh View 1 3 chunks +6 lines, -6 lines 0 comments Download
M lily/include/grob-array.hh View 1 3 chunks +5 lines, -5 lines 0 comments Download
M lily/include/grob-info.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/horizontal-bracket.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/includable-lexer.hh View 1 1 chunk +7 lines, -7 lines 0 comments Download
M lily/include/input.hh View 1 2 chunks +11 lines, -11 lines 0 comments Download
M lily/include/interval-minefield.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/keyword.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/least-squares.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/ligature-engraver.hh View 1 2 chunks +3 lines, -3 lines 0 comments Download
M lily/include/lily-guile.hh View 1 5 chunks +14 lines, -14 lines 0 comments Download
M lily/include/lily-guile-macros.hh View 1 5 chunks +9 lines, -9 lines 0 comments Download
M lily/include/lily-lexer.hh View 1 2 chunks +7 lines, -7 lines 0 comments Download
M lily/include/lily-parser.hh View 1 2 chunks +8 lines, -8 lines 0 comments Download
M lily/include/lily-version.hh View 1 1 chunk +3 lines, -3 lines 0 comments Download
M lily/include/lilypond-version.hh View 1 1 chunk +3 lines, -3 lines 0 comments Download
M lily/include/lookup.hh View 1 2 chunks +2 lines, -2 lines 0 comments Download
M lily/include/main.hh View 1 1 chunk +12 lines, -12 lines 0 comments Download
M lily/include/midi-chunk.hh View 1 3 chunks +9 lines, -9 lines 0 comments Download
M lily/include/midi-item.hh View 1 13 chunks +13 lines, -13 lines 0 comments Download
M lily/include/midi-stream.hh View 1 2 chunks +3 lines, -4 lines 0 comments Download
M lily/include/midi-walker.hh View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lily/include/misc.hh View 1 2 chunks +1 line, -2 lines 0 comments Download
M lily/include/modified-font-metric.hh View 1 2 chunks +4 lines, -4 lines 0 comments Download
M lily/include/moment.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/music-iterator.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/note-collision.hh View 1 1 chunk +3 lines, -3 lines 0 comments Download
M lily/include/note-head.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/open-type-font.hh View 1 1 chunk +7 lines, -7 lines 0 comments Download
M lily/include/output-def.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/page-breaking.hh View 1 6 chunks +16 lines, -16 lines 0 comments Download
M lily/include/page-layout-problem.hh View 1 3 chunks +10 lines, -10 lines 0 comments Download
M lily/include/page-spacing.hh View 1 2 chunks +3 lines, -3 lines 0 comments Download
M lily/include/page-spacing-result.hh View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lily/include/page-turn-page-breaking.hh View 1 3 chunks +4 lines, -4 lines 0 comments Download
M lily/include/pango-font.hh View 1 2 chunks +4 lines, -4 lines 0 comments Download
M lily/include/paper-column-engraver.hh View 1 1 chunk +3 lines, -3 lines 0 comments Download
M lily/include/paper-outputter.hh View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lily/include/paper-score.hh View 1 2 chunks +7 lines, -7 lines 0 comments Download
M lily/include/performance.hh View 1 1 chunk +4 lines, -4 lines 0 comments Download
M lily/include/performer-group.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/pitch.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/pointer-group-interface.hh View 1 2 chunks +4 lines, -4 lines 0 comments Download
M lily/include/prob.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/program-option.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/relocate.hh View 1 1 chunk +4 lines, -4 lines 0 comments Download
M lily/include/rest.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/scale.hh View 1 2 chunks +2 lines, -2 lines 0 comments Download
M lily/include/score.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/score-engraver.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/script-column.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/separation-item.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/simple-spacer.hh View 1 3 chunks +4 lines, -4 lines 0 comments Download
M lily/include/skyline.hh View 1 2 chunks +8 lines, -8 lines 0 comments Download
M lily/include/skyline-pair.hh View 1 1 chunk +3 lines, -3 lines 0 comments Download
M lily/include/slur.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/slur-configuration.hh View 1 2 chunks +4 lines, -4 lines 0 comments Download
M lily/include/slur-proto-engraver.hh View 1 2 chunks +7 lines, -7 lines 0 comments Download
M lily/include/slur-scoring.hh View 1 2 chunks +7 lines, -7 lines 0 comments Download
M lily/include/smobs.hh View 1 4 chunks +5 lines, -5 lines 0 comments Download
M lily/include/smobs.tcc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M lily/include/source-file.hh View 1 3 chunks +12 lines, -13 lines 0 comments Download
M lily/include/sources.hh View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lily/include/spacing-interface.hh View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lily/include/spacing-spanner.hh View 1 1 chunk +6 lines, -6 lines 0 comments Download
M lily/include/spanner.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/spring.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/staff-symbol.hh View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lily/include/stem.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/stencil.hh View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/include/system.hh View 1 2 chunks +7 lines, -7 lines 0 comments Download
M lily/include/tie-configuration.hh View 1 4 chunks +12 lines, -12 lines 0 comments Download
M lily/include/tie-formatting-problem.hh View 1 5 chunks +16 lines, -16 lines 0 comments Download
M lily/include/translator.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/translator.icc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M lily/include/translator-dispatch-list.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/translator-group.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/tuplet-bracket.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/include/tuplet-number.hh View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/input.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/input-scheme.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/input-smob.cc View 1 chunk +1 line, -0 lines 0 comments Download
M lily/instrument-name-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/keep-alive-together-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/key-signature-interface.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/keyword.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/kievan-ligature-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/laissez-vibrer-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/least-squares.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/ledger-line-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/ledger-line-spanner.cc View 1 6 chunks +7 lines, -5 lines 0 comments Download
M lily/lexer.ll View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/lily-guile.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/lily-lexer.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/lily-parser.cc View 1 chunk +1 line, -0 lines 0 comments Download
M lily/lily-parser-scheme.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/lily-version.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/lilypond-version.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/line-interface.cc View 1 4 chunks +6 lines, -4 lines 0 comments Download
M lily/lookup.cc View 1 4 chunks +5 lines, -4 lines 0 comments Download
M lily/lyric-combine-music-iterator.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/lyric-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/lyric-extender.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M lily/lyric-hyphen.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M lily/lyric-performer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/main.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M lily/mark-engraver.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/melody-spanner.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/mensural-ligature.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/mensural-ligature-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/metronome-engraver.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/midi-chunk.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/midi-control-function-performer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/midi-item.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/midi-stream.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/misc.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M lily/modified-font-metric.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/moment.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/multi-measure-rest.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M lily/multi-measure-rest-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/music-iterator.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/music-sequence.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M lily/new-fingering-engraver.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/note-collision.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M lily/note-column.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/note-head.cc View 1 3 chunks +5 lines, -4 lines 0 comments Download
M lily/note-heads-engraver.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/note-name-engraver.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/note-performer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/note-spacing.cc View 1 4 chunks +6 lines, -4 lines 0 comments Download
M lily/note-spacing-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/one-line-page-breaking.cc View 1 3 chunks +4 lines, -2 lines 0 comments Download
M lily/open-type-font.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/open-type-font-scheme.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/ottava-bracket.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/output-def.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/output-property-engraver.cc View 1 chunk +1 line, -0 lines 0 comments Download
M lily/page-breaking.cc View 1 10 chunks +19 lines, -16 lines 0 comments Download
M lily/page-layout-problem.cc View 1 4 chunks +5 lines, -3 lines 0 comments Download
M lily/page-spacing.cc View 1 3 chunks +4 lines, -2 lines 0 comments Download
M lily/page-turn-engraver.cc View 1 4 chunks +7 lines, -4 lines 0 comments Download
M lily/page-turn-page-breaking.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M lily/pango-font.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/pango-select.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/paper-book.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/paper-column.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M lily/paper-column-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/paper-outputter.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M lily/paper-outputter-scheme.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/paper-score.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/parse-scm.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/parser.yy View 1 3 chunks +2 lines, -2 lines 0 comments Download
M lily/part-combine-iterator.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/part-combine-part-iterator.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/pdf-scheme.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/percent-repeat-iterator.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/performance.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M lily/pfb.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/pfb-scheme.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/piano-pedal-align-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/piano-pedal-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/piano-pedal-performer.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/pitch.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/pitched-trill-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/pointer-group-interface.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/prob.cc View 1 chunk +1 line, -0 lines 0 comments Download
M lily/program-option.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/program-option-scheme.cc View 1 3 chunks +4 lines, -2 lines 0 comments Download
M lily/pure-from-neighbor-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/pure-from-neighbor-interface.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/quote-iterator.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lily/relative-octave-check.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/relocate.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/repeat-acknowledge-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/repeat-tie-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/rest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/rest-collision.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M lily/rest-collision-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/rhythmic-column-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/scale.cc View 1 chunk +1 line, -0 lines 0 comments Download
M lily/scm-hash.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/score.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M lily/script-column.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/script-column-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/script-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/script-row-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/semi-tie-column.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/separating-line-group-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/separation-item.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/side-position-interface.cc View 1 4 chunks +6 lines, -3 lines 0 comments Download
M lily/simple-spacer.cc View 1 5 chunks +7 lines, -5 lines 0 comments Download
M lily/simple-spacer-scheme.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/simultaneous-music-iterator.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/skyline.cc View 1 6 chunks +11 lines, -7 lines 0 comments Download
M lily/skyline-pair.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M lily/slur.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M lily/slur-configuration.cc View 1 11 chunks +15 lines, -12 lines 0 comments Download
M lily/slur-proto-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/slur-scoring.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M lily/source-file.cc View 1 4 chunks +14 lines, -6 lines 0 comments Download
M lily/sources.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/spacing-basic.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M lily/spacing-determine-loose-columns.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M lily/spacing-engraver.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M lily/spacing-interface.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/spacing-loose-columns.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M lily/spacing-spanner.cc View 1 8 chunks +9 lines, -7 lines 0 comments Download
M lily/span-arpeggio-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/span-bar-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/span-bar-stub-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/spanner.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/spanner-break-forbid-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/spring.cc View 1 6 chunks +9 lines, -7 lines 0 comments Download
M lily/staff-grouper-interface.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/staff-performer.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M lily/staff-spacing.cc View 1 6 chunks +11 lines, -9 lines 0 comments Download
M lily/staff-symbol.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/stanza-number-align-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/stem.cc View 1 14 chunks +19 lines, -17 lines 0 comments Download
M lily/stem-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/stem-tremolo.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M lily/stencil.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/stencil-integral.cc View 1 4 chunks +7 lines, -5 lines 0 comments Download
M lily/stencil-scheme.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/sustain-pedal.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/system.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/system-start-delimiter.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/system-start-delimiter-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/tab-note-heads-engraver.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/tab-tie-follow-engraver.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/template5.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/text-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/text-interface.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/tie.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/tie-column.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M lily/tie-configuration.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/tie-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/tie-formatting-problem.cc View 1 5 chunks +8 lines, -4 lines 0 comments Download
M lily/tie-performer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/translator.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/translator-group.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/ttf.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/tuplet-bracket.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/tuplet-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/tuplet-iterator.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M lily/tuplet-number.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M lily/undead.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/vaticana-ligature.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M lily/vaticana-ligature-engraver.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M lily/vertical-align-engraver.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M lily/volta-bracket.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lily/volta-repeat-iterator.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/warn-scheme.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 2
Dan Eble
run the script
8 years, 7 months ago (2015-09-26 16:01:30 UTC) #1
Dan Eble
8 years, 7 months ago (2015-09-26 16:05:27 UTC) #2
# This is the script:

# $1 = words to find e.g. '\(foo\|bar\)'
# $2 = file name
function add_std_prefix_to_word () {
    sed -i "/^#/!s/\\(^\\|[^_0-9A-Za-z:\\.]\\)\\($1\\)\\>/\\1std::\\2/g" $2
}

# $1 = types to find
# $2 = file name
function add_std_prefix_to_template () {
    sed -i "/^#/!{
:top
s/\\(^\\|[^_0-9A-Za-z:\\.]\\)\\($1 *<\\)/\\1std::\\2/
ttop
}" $2
}

# remove "using namespace std;" everywhere
for FILE in $(git grep -l "using namespace" flower lily)
do
    case "$FILE" in
	*.cc|*.hh|*.[it]cc|*.ll|*.yy)
	    sed -i "/^ *using namespace std;.*\$/d" "$FILE"
	    ;;
	*)
    esac
done

# add "std::" to these words in included files
TYPES_RE='\(istream\|string\)'
for FILE in $(git grep -l "$TYPES_RE" flower lily)
do
    case "$FILE" in
	*.hh|*.[it]cc)
	    add_std_prefix_to_word "$TYPES_RE" "$FILE"
	    ;;
	*)
    esac
done

# add "std::" to these words in all files
TYPES_RE='\(endl\|ios\|cerr\|cout\)'
for FILE in $(git grep -l "$TYPES_RE" flower lily)
do
    case "$FILE" in
	*.cc|*.hh|*.[it]cc)
	    add_std_prefix_to_word "$TYPES_RE" "$FILE"
	    ;;
	*)
    esac
done

# add "std::" to these templates in included files
TYPES_RE='\(list\|map\|pair\|set\|vector\)'
for FILE in $(git grep -l "$TYPES_RE" flower lily)
do
    case "$FILE" in
	*.hh|*.[it]cc)
	    add_std_prefix_to_template "$TYPES_RE" "$FILE"
	    ;;
	*)
    esac
done

# add "std::" to these templates everywhere
TYPES_RE='\(greater\|less\|numeric_limits\|unary_function\)'
for FILE in $(git grep -l "$TYPES_RE" flower lily)
do
    case "$FILE" in
	*.cc|*.hh|*.[it]cc)
	    add_std_prefix_to_template "$TYPES_RE" "$FILE"
	    ;;
	*)
    esac
done

FUNCS_RE='\(make_pair\|max\|min\|swap\)'
for FILE in $(git grep -l "$FUNCS_RE" flower lily)
do
    case "$FILE" in
	*.cc|*.hh|*.[it]cc)
	    # add "std::" to function name
	    sed -i "/^ *using std::$FUNCS_RE;.*\$/d
/^#/!{
:top
s/\\(^\\|[^_0-9A-Za-z:\\.]\\)\\($FUNCS_RE *([^)]\\)/\\1std::\\2/
ttop
}" $FILE
	    ;;
	*)
    esac
done
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b