aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/ChainedIncludesSource.cpp
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2026-06-12 17:56:35 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2026-09-09 20:01:30 +0000
commitf2a2e02ae54b836d1e23648756a050406f65111e (patch)
treeea365762d3dc83a50a14a1da00bcfc2efb76a9aa /lib/Frontend/ChainedIncludesSource.cpp
parent33595d4ae01c10c436a83e7f5afd2c07a7fbd2c5 (diff)
linuxkpi: Define `DEFINE_CLASS()` and `CLASS()`HEADmain
`DEFINE_CLASS()` is in fact named `LINUXKPI_DEFINE_CLASS()` because it conflicts with `DEFINE_CLASS()` defined in <sys/kobj.h>. This macro defines a type and a pair of constructor/destructor functions. They are to be used by `CLASS()`: this one declares a variable, initialise it with the constructor and set the `__cleanup()` attribute to call the destructor once the variable goes out of scope. The DRM drivers generic code started to use `CLASS()` in Linux 6.13. It requires the `fd` class to be defined in <linux/file.h>. Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57583
Diffstat (limited to 'lib/Frontend/ChainedIncludesSource.cpp')
0 files changed, 0 insertions, 0 deletions