aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Loo Rong Jie <loorongjie@gmail.com>2018-03-01 02:35:23 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-01 02:36:46 -0800
commit2b9ab77fe9a2f0fa6fb177d80038d5cd2e0b05a5 (patch)
tree8c621b356e68e2d0db73bb1f4519f6e761c3d8e2 /scripts
parentccd54bd00e9c63f880a67d35f89ac603c084db71 (diff)
Convert static std::set to constexpr array
Google C++ Style Guide disallows static variable with non-trivial destructor. Use constexpr for static variable whenever possible. std::array would make the code cleaner, but MSVC's implementation of constexpr std::array is buggy. Side-benefit: linear search is faster when array is small (<20). Change-Id: Ic8244dcb868e27d02ceb5298ccec482e7d4254b7 PiperOrigin-RevId: 187451495
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions