Clone this repo:
  1. 9537e37 logging_test: Disable ForkSafe temporarily by Yu-Ping Wu · 2 years, 4 months ago factory-14778.B factory-brya-14909.124.B factory-brya-15231.B factory-brya-15684.B factory-corsola-15196.B factory-corsola-15197.B factory-firmware-ti50-guc-14778.B factory-foobar-15000.B factory-geralt-15840.B factory-guybrush-14908.B factory-nissa-15199.B factory-rex-15708.B factory-skyrim-15384.B factory-trogdor-15210.B firmware-14947.B firmware-R126-15885.B firmware-R127-15916.B firmware-android-15949.B firmware-chameleon-14947.B firmware-corsola-15194.B firmware-cr50-efi-15611.28.B firmware-cr50-mp-15611.B firmware-cr50-prepvt-15608.B firmware-duplo-15151.B firmware-geralt-15842.B firmware-hps-15892.B firmware-nissa-15217.126.B firmware-nissa-15217.253.B firmware-nissa-15217.45.B firmware-nissa-15217.B firmware-rex-15709.B firmware-skyrim-15369.B firmware-skyrim-15390.B firmware-ti50-mp-15224.B firmware-ti50-prepvt-15086.B master release-R102-14695.B release-R103-14816.B release-R104-14909.B release-R105-14989.B release-R106-15054.B release-R107-15117.B release-R108-15183.B release-R109-15236.B release-R110-15278.B release-R111-15329.B release-R112-15359.B release-R113-15393.B release-R114-15437.B release-R115-15474.B release-R116-15509.B release-R117-15572.B release-R118-15604.B release-R119-15633.B release-R120-15662.B release-R121-15699.B release-R122-15753.B release-R123-15786.B release-R124-15823.B release-R125-15853.B release-R126-15886.B release-R127-15917.B stabilize-14616.B stabilize-14633.B stabilize-14682.B stabilize-14695.107.B stabilize-14695.85.B stabilize-14771.B stabilize-14790.B stabilize-14803.B stabilize-14816.131.B stabilize-14816.136.B stabilize-14816.138.B stabilize-14816.82.B stabilize-14816.84.B stabilize-14839.B stabilize-14909.100.B stabilize-14918.B stabilize-14964.B stabilize-14989.107.B stabilize-14989.85.B stabilize-14998.B stabilize-15032.B stabilize-15033.B stabilize-15054.115.B stabilize-15054.26.B stabilize-15054.98.B stabilize-15072.B stabilize-15083.B stabilize-15086.B stabilize-15117.111.B stabilize-15117.48.B stabilize-15117.86.B stabilize-15120.B stabilize-15122.B stabilize-15129.B stabilize-15167.B stabilize-15174.B stabilize-15183.14.B stabilize-15183.69.B stabilize-15183.82.B stabilize-15185.7.B stabilize-15185.B stabilize-15207.B stabilize-15208.B stabilize-15236.66.B stabilize-15245.B stabilize-15251.B stabilize-15278.64.B stabilize-15300.B stabilize-15301.B stabilize-15317.B stabilize-15329.44.B stabilize-15329.59.B stabilize-15335.B stabilize-15359.45.B stabilize-15359.50.B stabilize-15359.58.B stabilize-15361.B stabilize-15364.B stabilize-15381.B stabilize-15393.48.B stabilize-15393.58.B stabilize-15395.B stabilize-15415.B stabilize-15429.B stabilize-15432.B stabilize-15437.42.B stabilize-15437.57.B stabilize-15437.59.B stabilize-15439.B stabilize-15446.B stabilize-15474.38.B stabilize-15474.53.B stabilize-15474.70.B stabilize-15483.B stabilize-15485.B stabilize-15509.37.B stabilize-15509.63.B stabilize-15509.72.B stabilize-15511.B stabilize-15519.B stabilize-15531.B stabilize-15532.B stabilize-15561.B stabilize-15562.B stabilize-15563.B stabilize-15564.B stabilize-15572.16.B stabilize-15572.39.B stabilize-15572.4.B stabilize-15572.50.B stabilize-15572.57.B stabilize-15572.63.B stabilize-15588.B stabilize-15604.16.B stabilize-15604.45.B stabilize-15604.56.B stabilize-15604.57.B stabilize-15610.B stabilize-15633.44.B stabilize-15633.58.B stabilize-15633.69.B stabilize-15642.B stabilize-15654.B stabilize-15662.64.B stabilize-15662.76.B stabilize-15662.78.B stabilize-15662.80.B stabilize-15662.88.B stabilize-15677.B stabilize-15699.58.B stabilize-15699.66.B stabilize-15714.B stabilize-15753.46.B stabilize-15753.55.B stabilize-15756.B stabilize-15786.48.B stabilize-15786.58.B stabilize-15793.B stabilize-15823.40.B stabilize-15828.B stabilize-15855.B stabilize-15857.B stabilize-15886.46.B stabilize-15888.B stabilize-15905.B stabilize-15926.B stabilize-hps-15890.B stabilize-quickfix-14695.124.B stabilize-quickfix-14695.187.B stabilize-quickfix-14909.132.B stabilize-quickfix-15183.78.B stabilize-quickfix-15278.72.B stabilize-quickfix-15662.77.B stabilize-quickfix-15786.49.B stabilize-quickfix-15823.44.B stabilize-quickfix-15886.43.B stabilize-testbranch-15185.10.B stabilize-voshyr-14637.B
  2. 35b733d libbase: update from upstream by Tom Shafron · 2 years, 4 months ago
  3. e663dea Add a second test for a move-only type am: 76a469fb98 by Bart Van Assche · 2 years, 4 months ago
  4. b155707 Improve the unwrap_does_not_incur_additional_copying unit test am: 664ffef7e0 by Bart Van Assche · 2 years, 4 months ago
  5. 76a469f Add a second test for a move-only type by Bart Van Assche · 2 years, 4 months ago

libbase

Who is this library for?

This library is a collection of convenience functions to make common tasks easier and less error-prone.

In this context, “error-prone” covers both “hard to do correctly” and “hard to do with good performance”, but as a general purpose library, libbase's primary focus is on making it easier to do things easily and correctly when a compromise has to be made between “simplest API” on the one hand and “fastest implementation” on the other. Though obviously the ideal is to have both.

Should my routine be added?

The intention is to cover the 80% use cases, not be all things to all users.

If you have a routine that‘s really useful in your project, congratulations. But that doesn’t mean it should be here rather than just in your project.

The question for libbase is “should everyone be doing this?”/“does this make everyone's code cleaner/safer?”. Historically we've considered the bar for inclusion to be “are there at least three unrelated projects that would be cleaned up by doing so”.

If your routine is actually something from a future C++ standard (that isn‘t yet in libc++), or it’s widely used in another library, that helps show that there's precedent. Being able to say “so-and-so has used this API for n years” is a good way to reduce concerns about API choices.

Any other restrictions?

Unlike most Android code, code in libbase has to build for Mac and Windows too.

Code here is also expected to have good test coverage.

By its nature, it‘s difficult to change libbase API. It’s often best to start using your routine just in your project, and let it “graduate” after you're certain that the API is solid.