aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/filesystem/filesystem_clock.cpp
diff options
context:
space:
mode:
authorNikolas Klauser <nikolasklauser@berlin.de>2025-05-18 15:47:05 +0200
committerGitHub <noreply@github.com>2025-05-18 15:47:05 +0200
commitc861fe8a71e64f3d2108c58147e7375cd9314521 (patch)
treedc3ea9bd57413493d867724a1679d1b459a14b63 /libcxx/src/filesystem/filesystem_clock.cpp
parentad3136689090f79b52afcb5a95ec87e893006877 (diff)
downloadllvm-c861fe8a71e64f3d2108c58147e7375cd9314521.zip
llvm-c861fe8a71e64f3d2108c58147e7375cd9314521.tar.gz
llvm-c861fe8a71e64f3d2108c58147e7375cd9314521.tar.bz2
[libc++] Introduce ABI sensitive areas to avoid requiring _LIBCPP_HIDE_FROM_ABI everywhere (#131156)
This patch introduces `_LIBCPP_{BEGIN,END}_EXPLICIT_ABI_ANNOTATIONS`, which allow us to have implicit annotations for most functions, and just where it's not "hide_from_abi everything" we add explicit annotations. This allows us to drop the `_LIBCPP_HIDE_FROM_ABI` macro from most functions in libc++.
Diffstat (limited to 'libcxx/src/filesystem/filesystem_clock.cpp')
-rw-r--r--libcxx/src/filesystem/filesystem_clock.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/src/filesystem/filesystem_clock.cpp b/libcxx/src/filesystem/filesystem_clock.cpp
index 49f65ef..c554f3c 100644
--- a/libcxx/src/filesystem/filesystem_clock.cpp
+++ b/libcxx/src/filesystem/filesystem_clock.cpp
@@ -42,6 +42,7 @@
#endif
_LIBCPP_BEGIN_NAMESPACE_FILESYSTEM
+_LIBCPP_BEGIN_EXPLICIT_ABI_ANNOTATIONS
_LIBCPP_DIAGNOSTIC_PUSH
_LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wdeprecated")
@@ -76,4 +77,5 @@ _FilesystemClock::time_point _FilesystemClock::now() noexcept {
#endif
}
+_LIBCPP_END_EXPLICIT_ABI_ANNOTATIONS
_LIBCPP_END_NAMESPACE_FILESYSTEM