[PATCH] D42189: [clang-format] Replace unordered_set with an array

Ben Hamilton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 17 11:21:51 PST 2018


benhamilton added inline comments.


================
Comment at: lib/Format/Format.cpp:1424
                           const AdditionalKeywords &Keywords) {
-    static const std::unordered_set<StringRef> FoundationIdentifiers = {
+    static constexpr llvm::StringLiteral FoundationIdentifiers[] = {
         "CGFloat",
----------------
Should we add a comment that this array must be sorted if someone adds a new entry?


Repository:
  rC Clang

https://reviews.llvm.org/D42189





More information about the cfe-commits mailing list