]> granicus.if.org Git - clang/commit
[Sema] Refactor LookupVisibleDecls. NFC
authorIlya Biryukov <ibiryukov@google.com>
Thu, 5 Sep 2019 08:59:06 +0000 (08:59 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Thu, 5 Sep 2019 08:59:06 +0000 (08:59 +0000)
commit88d5d4225c72d47a5979edfbabff0df87543c04d
treecfef93ea7bc036c600c4112edff4b36c60b11742
parent7912f726e011211909dd4f85407f6b05a9e393d2
[Sema] Refactor LookupVisibleDecls. NFC

Summary:
We accumulated some configuration parameters for LookupVisibleDecls that
are being passed unchanged to recursive calls, e.g. LoadExternal and
IncludeDependentBases.

At the same time, there is a bunch of parameters that can change in the
recursive invocations.

It is hard to tell the difference between those groups, making the code
hard to follow.

This change introduces a helper struct and factors out the non-changing
bits into fields, making recursive calls in the implementation code easier
to read.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: riccibruno, doug.gregor, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D65752

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371032 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLookup.cpp