llvm-project/clang/lib/ARCMigrate
Mikhail Maltsev 7819411837 [clang] Use SourceLocation as key in hash maps, NFCI
The patch adjusts the existing `llvm::DenseMap<unsigned, T>` and
`llvm::DenseSet<unsigned>` objects that store source locations, so
that they use `SourceLocation` directly instead of `unsigned`.

This patch relies on the `DenseMapInfo` trait added in D89719.

It also replaces the construction of `SourceLocation` objects from
the constants -1 and -2 with calls to the trait's methods `getEmptyKey`
and `getTombstoneKey` where appropriate.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D69840
2020-10-20 16:24:09 +01:00
..
ARCMT.cpp [ARCMT][NFC] Reduce #include dependencies 2020-02-12 19:10:46 +01:00
ARCMTActions.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt With MSVC, file needs to be compiled with /BIGOBJ 2020-07-17 09:43:06 -07:00
FileRemapper.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Internals.h [ARCMT][NFC] Reduce #include dependencies 2020-02-12 19:10:46 +01:00
ObjCMT.cpp Fix more implicit conversions. Getting closer to having clang working with gcc 5 again 2020-01-29 02:57:59 +01:00
PlistReporter.cpp Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
TransAPIUses.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TransARCAssign.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TransAutoreleasePool.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TransBlockObjCVariable.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TransEmptyStatementsAndDealloc.cpp Change std::{lower,upper}_bound to llvm::{lower,upper}_bound or llvm::partition_point. NFC 2019-07-03 08:13:17 +00:00
TransGCAttrs.cpp [clang] Use SourceLocation as key in hash maps, NFCI 2020-10-20 16:24:09 +01:00
TransGCCalls.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TransProperties.cpp [clang] Use SourceLocation as key in hash maps, NFCI 2020-10-20 16:24:09 +01:00
TransProtectedScope.cpp Avoid SourceManager.h include in RawCommentList.h, add missing incs 2020-02-27 13:49:40 -08:00
TransRetainReleaseDealloc.cpp [AST] Update the comments of the various Expr::Ignore* + Related cleanups 2019-02-03 19:50:56 +00:00
TransUnbridgedCasts.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TransUnusedInitDelegate.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TransZeroOutPropsInDealloc.cpp [NFC] Refactoring PropertyAttributeKind for ObjCPropertyDecl and ObjCDeclSpec. 2020-04-23 17:21:25 -04:00
TransformActions.cpp Fix file headers. NFC 2019-03-01 06:49:51 +00:00
Transforms.cpp [ARCMT][NFC] Reduce #include dependencies 2020-02-12 19:10:46 +01:00
Transforms.h [clang] Use SourceLocation as key in hash maps, NFCI 2020-10-20 16:24:09 +01:00