llvm-project
0af2d43e - [Clang] Warn if both of `dllexport`/`dllimport` and `exclude_from_explicit_instantiation` are specified (#183515)

Commit
47 days ago
[Clang] Warn if both of `dllexport`/`dllimport` and `exclude_from_explicit_instantiation` are specified (#183515) The attributes `exclude_from_explicit_instantiation` and `dllexport`/`dllimport` serve opposite purposes. Therefore, if an entity has both attributes, drop one with a warning, depending on the context of the declaration. In a template context, the `exclude_from_explicit_instantiation` attribute takes precedence over the `dllexport` or `dllimport` attribute. Conversely, the `dllexport` and `dllimport` attributes are prioritized, in a non-template context.
Author
Parents
Loading