[all-commits] [llvm/llvm-project] 518d86: [clang][ASTImporter] Fix import of template parame...
Balázs Kéri via All-commits
all-commits at lists.llvm.org
Tue Jul 30 01:26:06 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 518d8632ce54308f52614b165ee8d84f45d54e54
https://github.com/llvm/llvm-project/commit/518d8632ce54308f52614b165ee8d84f45d54e54
Author: Balázs Kéri <balazs.keri at ericsson.com>
Date: 2024-07-30 (Tue, 30 Jul 2024)
Changed paths:
M clang/lib/AST/ASTImporter.cpp
M clang/unittests/AST/ASTImporterTest.cpp
Log Message:
-----------
[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.
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