diff options
author | Balázs Kéri <balazs.keri@ericsson.com> | 2024-07-30 10:25:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-30 10:25:45 +0200 |
commit | 518d8632ce54308f52614b165ee8d84f45d54e54 (patch) | |
tree | 0c63b8205398574c904c01ac7471b566acfb9bd7 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 16e9bb9cd7f50ae2ec7f29a80bc3b95f528bfdbf (diff) | |
download | llvm-518d8632ce54308f52614b165ee8d84f45d54e54.zip llvm-518d8632ce54308f52614b165ee8d84f45d54e54.tar.gz llvm-518d8632ce54308f52614b165ee8d84f45d54e54.tar.bz2 |
[clang][ASTImporter] Fix import of template parameter default values. (#100100)
Default values of template parameters (non-type, type, template) were
not correctly handled in the "inherited" case. This occurs if the first
declaration contains the default value but a next one not. The default
value is "inherited" from the first.
In ASTImporter it was only possible to set the inherited status after
the template object was created with the template parameters that were
imported without handling the inherited case. The import function of the
template parameter contains not enough information (previous
declaration) to set the inherited-from status. After the template was
created, default value of the parameters that should be inherited is
reset to inherited mode.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions