lamuguo / re2

Automatically exported from code.google.com/p/re2
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Remove static initializers #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To use re2 in chromium, we'd like to remove static initializers where possible. 
See http://code.google.com/p/chromium/issues/detail?id=94925 for background.

Most of the warnings are due to the inclusion of iostream in util.h. The other 
static initializers are in these 4 files:

re2/compile.cc
  re2::kNullFrag

re2/re2.cc
  re2::RE2::DefaultOptions
  re2::RE2::Quiet
  re2::RE2::Latin1
  re2::empty_string
  re2::empty_group_names
  re2::empty_named_groups

re2/regexp.cc
  re2::kErrorStrings
  re2::ref_map
  re2::ref_mutex

util/mutex.h
  (the output is somewhat more obscure)

Original issue reported on code.google.com by yoz@chromium.org on 8 Aug 2012 at 11:56

GoogleCodeExporter commented 9 years ago

Original comment by yoz@chromium.org on 8 Aug 2012 at 11:59

GoogleCodeExporter commented 9 years ago
I believe these were all cleaned up. I don't remember who did it.

Original comment by rsc@golang.org on 10 Jan 2014 at 1:27