diff options
author | Vlad Serebrennikov <serebrennikov.vladislav@gmail.com> | 2024-05-13 23:37:59 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-13 23:37:59 +0400 |
commit | 31a203fa8af47a8b2e8e357857b114cf90638b2e (patch) | |
tree | 10f503dd3cba055634ac8981fc81b9547b1ff241 /clang/lib/Sema/SemaLookup.cpp | |
parent | a1d43c14d8a672730af48d946acc41fa01cf301e (diff) | |
download | llvm-31a203fa8af47a8b2e8e357857b114cf90638b2e.zip llvm-31a203fa8af47a8b2e8e357857b114cf90638b2e.tar.gz llvm-31a203fa8af47a8b2e8e357857b114cf90638b2e.tar.bz2 |
[clang] Introduce `SemaObjC` (#89086)
This is continuation of efforts to split `Sema` up, following the
example of OpenMP, OpenACC, etc. Context can be found in
https://github.com/llvm/llvm-project/pull/82217 and
https://github.com/llvm/llvm-project/pull/84184.
I split formatting changes into a separate commit to help reviewing the
actual changes.
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index 7251aab..0834db9 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -3365,15 +3365,6 @@ NamedDecl *Sema::LookupSingleName(Scope *S, DeclarationName Name, return R.getAsSingle<NamedDecl>(); } -/// Find the protocol with the given name, if any. -ObjCProtocolDecl *Sema::LookupProtocol(IdentifierInfo *II, - SourceLocation IdLoc, - RedeclarationKind Redecl) { - Decl *D = LookupSingleName(TUScope, II, IdLoc, - LookupObjCProtocolName, Redecl); - return cast_or_null<ObjCProtocolDecl>(D); -} - void Sema::LookupOverloadedOperatorName(OverloadedOperatorKind Op, Scope *S, UnresolvedSetImpl &Functions) { // C++ [over.match.oper]p3: |