[clang-tidy][NFC] IdentifierNaming: Remove unnecessary string allocations
authorNathan James <n.james93@hotmail.co.uk>
Wed, 28 Oct 2020 15:49:50 +0000 (15:49 +0000)
committerNathan James <n.james93@hotmail.co.uk>
Wed, 28 Oct 2020 15:49:51 +0000 (15:49 +0000)
commit556ee675c1471d9c571c58cc8e396b70e6cc7bc6
treed5605a5cbfcddd67f49770f5ee63ac60240fb328
parent8279ea1a2ae5f59bce1a0db675c82a8849ab9f58
[clang-tidy][NFC] IdentifierNaming: Remove unnecessary string allocations

Remove the need to heap allocate a string for each style option lookup while reading or writing options.p

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D90244
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp