[PATCH] D89705: [clang] Use SourceLocation as key in std::map, NFCI

Mikhail Maltsev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 19 08:36:09 PDT 2020


miyuki created this revision.
miyuki added a reviewer: dexonsmith.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
miyuki requested review of this revision.

SourceLocation implements `operator<`, so `SourceLocation`-s can be used
as keys in `std::map` directly, there is no need to extract the internal
representation.

Since the `operator<` simply compares the internal representations of
its operands, this patch does not introduce any functional changes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89705

Files:
  clang/lib/ARCMigrate/TransProperties.cpp
  clang/lib/Frontend/Rewrite/InclusionRewriter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89705.299069.patch
Type: text/x-patch
Size: 6712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201019/38bca611/attachment.bin>


More information about the cfe-commits mailing list