File: find_ctor_usage

package info (click to toggle)
rosegarden 1%3A25.12-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,888 kB
  • sloc: cpp: 209,189; xml: 6,580; sh: 1,608; perl: 755; python: 416; ansic: 324; lisp: 139; ruby: 33; makefile: 20
file content (8 lines) | stat: -rwxr-xr-x 149 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
#!/bin/sh

# Usage : find_ctor_usage Foobar
#
# Returns all the lines where the ctor is called
#

grep -n -w $1 *.cpp | grep -v $1:: | fgrep -v .moc.