aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/MultiplexExternalSemaSource.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-04-23 11:35:10 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-04-23 12:44:00 +0800
commit07b1177eed7549d0badf72078388422ce73167a0 (patch)
tree5cd0d8c2e0d31613a99a96a7e7c1ce1cf50855de /clang/lib/Sema/MultiplexExternalSemaSource.cpp
parent25a391c7718ee8ed22e85dec212b5b77722c7f4e (diff)
downloadllvm-07b1177eed7549d0badf72078388422ce73167a0.zip
llvm-07b1177eed7549d0badf72078388422ce73167a0.tar.gz
llvm-07b1177eed7549d0badf72078388422ce73167a0.tar.bz2
[NFC] [Serialization] Use semantical type DeclID instead of raw type 'uint32_t'
This patch tries to use DeclID in the code bases to avoid use the raw type 'uint32_t'. It is problematic to use the raw type 'uint32_t' if we want to change the type of DeclID some day.
Diffstat (limited to 'clang/lib/Sema/MultiplexExternalSemaSource.cpp')
-rw-r--r--clang/lib/Sema/MultiplexExternalSemaSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/MultiplexExternalSemaSource.cpp b/clang/lib/Sema/MultiplexExternalSemaSource.cpp
index 058e22c..6a5f9f6 100644
--- a/clang/lib/Sema/MultiplexExternalSemaSource.cpp
+++ b/clang/lib/Sema/MultiplexExternalSemaSource.cpp
@@ -46,7 +46,7 @@ void MultiplexExternalSemaSource::AddSource(ExternalSemaSource *Source) {
// ExternalASTSource.
//===----------------------------------------------------------------------===//
-Decl *MultiplexExternalSemaSource::GetExternalDecl(uint32_t ID) {
+Decl *MultiplexExternalSemaSource::GetExternalDecl(Decl::DeclID ID) {
for(size_t i = 0; i < Sources.size(); ++i)
if (Decl *Result = Sources[i]->GetExternalDecl(ID))
return Result;