diff options
author | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2022-11-15 11:35:21 +0800 |
---|---|---|
committer | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2022-11-15 17:21:48 +0800 |
commit | cb2289f39240a0fdccc9a853a02ae9751578a0fd (patch) | |
tree | 3327b1cd423bfc3648cb50458aa0e78c74f475be /clang/lib/Tooling/JSONCompilationDatabase.cpp | |
parent | a4ae029b087070c43d8eb25c9240de3eb345ed63 (diff) | |
download | llvm-cb2289f39240a0fdccc9a853a02ae9751578a0fd.zip llvm-cb2289f39240a0fdccc9a853a02ae9751578a0fd.tar.gz llvm-cb2289f39240a0fdccc9a853a02ae9751578a0fd.tar.bz2 |
[C++20] [Modules] Attach implicitly declared allocation funcitons to
global module fragment
[basic.stc.dynamic.general]p2 says:
> The library provides default definitions for the global allocation
> and deallocation functions. Some global allocation and
> deallocation
> functions are replaceable ([new.delete]); these are attached to
> the global module ([module.unit]).
But we didn't take this before and the implicitly generated functions
will live in the module purview if we're compiling a module unit. This
is bad since the owning module will affect the linkage of the
declarations. This patch addresses this.
Closes https://github.com/llvm/llvm-project/issues/58560
Diffstat (limited to 'clang/lib/Tooling/JSONCompilationDatabase.cpp')
0 files changed, 0 insertions, 0 deletions