Page MenuHomePhabricator

Symbols update script, with filtering out constructors to eliminate multiple symbol conflicts

Authored By
matelich
May 19 2015, 12:31 PM
Size
502 B
Referenced Files
None
Subscribers
None

Symbols update script, with filtering out constructors to eliminate multiple symbol conflicts

#need a git clone /path/to/repos/REPO
cd repo_dir
git pull
find projects/ -iregex '.*\.\(cs\|h\|cpp\|inl\|hpp\)$' | /path/to/phabricator/scripts/symbols/generate_ctags_symbols.php > /tmp/repo_dir_symbols.txt
#remove constructors
cat repo_dir_symbols.txt | grep -E -v '\b(\w+)\s+\1\b' > /tmp/repo_dir_symbols_filtered.txt
#documentation says to use rREPO but that didn't work
sudo -u phab /path/to/phabricator/scripts/symbols/import_repository_symbols.php REPO < /tmp/repo_dir_symbols_filtered.txt
cd -

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/2h/q3/gqzsxyf45uyu62jk
Default Alt Text
Symbols update script, with filtering out constructors to eliminate multiple symbol conflicts (502 B)

Event Timeline