[all-commits] [llvm/llvm-project] 468dc3: [NFC] Make `DeclContext::noload_lookup()` accept t...
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Wed Apr 3 00:06:06 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 468dc32ff55d19f55132cbcc4d6ceb1f6d1c12cf
https://github.com/llvm/llvm-project/commit/468dc32ff55d19f55132cbcc4d6ceb1f6d1c12cf
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2024-04-03 (Wed, 03 Apr 2024)
Changed paths:
M clang/lib/AST/DeclBase.cpp
Log Message:
-----------
[NFC] Make `DeclContext::noload_lookup()` accept transparent context
Now the `DeclContext::noload_lookup()` asserts that 'this' is not a
transparent context. However, this is not consistent with
`DeclContext::lookup()`, which will lookup into its parent context if
'this' is a transparent context.
This patch makes the behavior of `DeclContext::noload_lookup()` to be
consistent with `DeclContext::lookup()`, to lookup into the parent
context if 'this' is a transparent context.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list