diff options
author | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2024-04-25 11:43:13 +0800 |
---|---|---|
committer | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2024-04-25 14:59:09 +0800 |
commit | d86cc73bbfd9a22d9a0d498d72c9b2ee235128e9 (patch) | |
tree | 278887d9ea7f3d0608a0151d2898daaf46dee985 /clang/lib/Frontend/MultiplexConsumer.cpp | |
parent | 72b58146b14308c0c745111f082fc6354cefda22 (diff) | |
download | llvm-d86cc73bbfd9a22d9a0d498d72c9b2ee235128e9.zip llvm-d86cc73bbfd9a22d9a0d498d72c9b2ee235128e9.tar.gz llvm-d86cc73bbfd9a22d9a0d498d72c9b2ee235128e9.tar.bz2 |
[NFC] [Serialization] Avoid using DeclID directly as much as possible
This patch tries to remove all the direct use of DeclID except the real
low level reading and writing. All the use of DeclID is converted to
the use of LocalDeclID or GlobalDeclID. This is helpful to increase the
readability and type safety.
Diffstat (limited to 'clang/lib/Frontend/MultiplexConsumer.cpp')
-rw-r--r-- | clang/lib/Frontend/MultiplexConsumer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/MultiplexConsumer.cpp b/clang/lib/Frontend/MultiplexConsumer.cpp index 9e885c8..c74bfd8 100644 --- a/clang/lib/Frontend/MultiplexConsumer.cpp +++ b/clang/lib/Frontend/MultiplexConsumer.cpp @@ -52,7 +52,8 @@ void MultiplexASTDeserializationListener::TypeRead( Listeners[i]->TypeRead(Idx, T); } -void MultiplexASTDeserializationListener::DeclRead(DeclID ID, const Decl *D) { +void MultiplexASTDeserializationListener::DeclRead(GlobalDeclID ID, + const Decl *D) { for (size_t i = 0, e = Listeners.size(); i != e; ++i) Listeners[i]->DeclRead(ID, D); } |