Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:13:47

0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 #ifndef _LIBCPP___FILESYSTEM_DIRECTORY_OPTIONS_H
0011 #define _LIBCPP___FILESYSTEM_DIRECTORY_OPTIONS_H
0012 
0013 #include <__config>
0014 
0015 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0016 #  pragma GCC system_header
0017 #endif
0018 
0019 #if _LIBCPP_STD_VER >= 17
0020 
0021 _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM
0022 
0023 enum class directory_options : unsigned char { none = 0, follow_directory_symlink = 1, skip_permission_denied = 2 };
0024 
0025 _LIBCPP_HIDE_FROM_ABI inline constexpr directory_options operator&(directory_options __lhs, directory_options __rhs) {
0026   return static_cast<directory_options>(static_cast<unsigned char>(__lhs) & static_cast<unsigned char>(__rhs));
0027 }
0028 
0029 _LIBCPP_HIDE_FROM_ABI inline constexpr directory_options operator|(directory_options __lhs, directory_options __rhs) {
0030   return static_cast<directory_options>(static_cast<unsigned char>(__lhs) | static_cast<unsigned char>(__rhs));
0031 }
0032 
0033 _LIBCPP_HIDE_FROM_ABI inline constexpr directory_options operator^(directory_options __lhs, directory_options __rhs) {
0034   return static_cast<directory_options>(static_cast<unsigned char>(__lhs) ^ static_cast<unsigned char>(__rhs));
0035 }
0036 
0037 _LIBCPP_HIDE_FROM_ABI inline constexpr directory_options operator~(directory_options __lhs) {
0038   return static_cast<directory_options>(~static_cast<unsigned char>(__lhs));
0039 }
0040 
0041 _LIBCPP_HIDE_FROM_ABI inline directory_options& operator&=(directory_options& __lhs, directory_options __rhs) {
0042   return __lhs = __lhs & __rhs;
0043 }
0044 
0045 _LIBCPP_HIDE_FROM_ABI inline directory_options& operator|=(directory_options& __lhs, directory_options __rhs) {
0046   return __lhs = __lhs | __rhs;
0047 }
0048 
0049 _LIBCPP_HIDE_FROM_ABI inline directory_options& operator^=(directory_options& __lhs, directory_options __rhs) {
0050   return __lhs = __lhs ^ __rhs;
0051 }
0052 
0053 _LIBCPP_END_NAMESPACE_FILESYSTEM
0054 
0055 #endif // _LIBCPP_STD_VER >= 17
0056 
0057 #endif // _LIBCPP___FILESYSTEM_DIRECTORY_OPTIONS_H