This replaces an unordered_set from r322690 with an array and binary search.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 13933 Build 13933: arc lint + arc unit
Differential D42189
[clang-format] Replace unordered_set with an array ClosedPublic Authored by krasimir on Jan 17 2018, 10:47 AM.
Details Summary This replaces an unordered_set from r322690 with an array and binary search.
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Jan 17 2018, 11:19 AM
Closed by commit rL322749: [clang-format] Replace unordered_set with an array (authored by krasimir). · Explain WhyJan 17 2018, 12:03 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 130213 lib/Format/Format.cpp
|
The ArrayRef doesn't own its contents, so this is a use-after-scope.
I'd prefer static constexpr llvm::StringLiteral FoundationIdentifiers[] = {