Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: third_party/sqlite/src/tool/cg_anno.tcl

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/tool/build-all-msvc.bat ('k') | third_party/sqlite/src/tool/diffdb.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/tclsh 1 #!/usr/bin/tclsh
2 # 2 #
3 # A wrapper around cg_annotate that sets appropriate command-line options 3 # A wrapper around cg_annotate that sets appropriate command-line options
4 # and rearranges the output so that annotated files occur in a consistent 4 # and rearranges the output so that annotated files occur in a consistent
5 # sorted order. Used by the run-speed-test.tcl script. 5 # sorted order. Used by the run-speed-test.tcl script.
6 # 6 #
7 7
8 set in [open "|cg_annotate --show=Ir --auto=yes --context=40 $argv" r] 8 set in [open "|cg_annotate --show=Ir --auto=yes --context=40 $argv" r]
9 set dest ! 9 set dest !
10 set out(!) {} 10 set out(!) {}
11 while {![eof $in]} { 11 while {![eof $in]} {
12 set line [string map {\t { }} [gets $in]] 12 set line [string map {\t { }} [gets $in]]
13 if {[regexp {^-- Auto-annotated source: (.*)} $line all name]} { 13 if {[regexp {^-- Auto-annotated source: (.*)} $line all name]} {
14 set dest $name 14 set dest $name
15 } elseif {[regexp {^-- line \d+ ------} $line]} { 15 } elseif {[regexp {^-- line \d+ ------} $line]} {
16 set line [lreplace $line 2 2 {#}] 16 set line [lreplace $line 2 2 {#}]
17 } elseif {[regexp {^The following files chosen for } $line]} { 17 } elseif {[regexp {^The following files chosen for } $line]} {
18 set dest ! 18 set dest !
19 } 19 }
20 append out($dest) $line\n 20 append out($dest) $line\n
21 } 21 }
22 foreach x [lsort [array names out]] { 22 foreach x [lsort [array names out]] {
23 puts $out($x) 23 puts $out($x)
24 } 24 }
OLDNEW
« no previous file with comments | « third_party/sqlite/src/tool/build-all-msvc.bat ('k') | third_party/sqlite/src/tool/diffdb.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698