[all-commits] [llvm/llvm-project] 253c28: [clang-repl] Extend the C support. (#89804)
Vassil Vassilev via All-commits
all-commits at lists.llvm.org
Tue May 21 10:21:53 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 253c28fa829cee0104c2fc59ed1a958980b5138c
https://github.com/llvm/llvm-project/commit/253c28fa829cee0104c2fc59ed1a958980b5138c
Author: Vassil Vassilev <v.g.vassilev at gmail.com>
Date: 2024-05-21 (Tue, 21 May 2024)
Changed paths:
M clang/lib/Interpreter/IncrementalParser.cpp
M clang/lib/Sema/SemaDecl.cpp
A clang/test/Interpreter/execute.c
Log Message:
-----------
[clang-repl] Extend the C support. (#89804)
The IdResolver chain is the main way for C to implement lookup rules.
Every new partial translation unit caused clang to exit the top-most
scope which in turn cleaned up the IdResolver chain. That was not an
issue for C++ because its lookup is implemented on the level of
declaration contexts.
This patch keeps the IdResolver chain across partial translation units
maintaining proper C-style lookup infrastructure.
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