aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2024-04-25 09:25:46 -0400
committerGitHub <noreply@github.com>2024-04-25 09:25:46 -0400
commit584a9bfa0eb60ef04406eef50da26a5cb32c801d (patch)
tree6ff0d6437db65ff393b499f2cd442c96755696dd /clang/lib/Basic/Module.cpp
parentfcf86673b88845e8fa9621fe55480719fc2b28d8 (diff)
downloadllvm-584a9bfa0eb60ef04406eef50da26a5cb32c801d.zip
llvm-584a9bfa0eb60ef04406eef50da26a5cb32c801d.tar.gz
llvm-584a9bfa0eb60ef04406eef50da26a5cb32c801d.tar.bz2
[libc++] Reorganize the std::variant macros (#89419)
std::variant uses multiple macros to generate special member functions. These macros were very subtle to read because of e.g. a macro argument appearing in the middle of a macro-ized class definition. In conjunction with clang-format, this could lead to extremely subtle macro expansions that were not easy to parse for humans. By adding semi-colons in macro expansions in judicious places, clang-format does a better job and makes these macros a lot easier to read. As a drive-by fix, I noticed that several of these functions were missing HIDE_FROM_ABI annotations, so I added them.
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions