[libcxx] r281683 - Move inline attributes in filesystem to first declaration
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 15 17:07:17 PDT 2016
Author: ericwf
Date: Thu Sep 15 19:07:16 2016
New Revision: 281683
URL: http://llvm.org/viewvc/llvm-project?rev=281683&view=rev
Log:
Move inline attributes in filesystem to first declaration
Modified:
libcxx/trunk/include/experimental/filesystem
Modified: libcxx/trunk/include/experimental/filesystem
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/experimental/filesystem?rev=281683&r1=281682&r2=281683&view=diff
==============================================================================
--- libcxx/trunk/include/experimental/filesystem (original)
+++ libcxx/trunk/include/experimental/filesystem Thu Sep 15 19:07:16 2016
@@ -1115,6 +1115,8 @@ public:
private:
friend class path;
+
+ inline _LIBCPP_INLINE_VISIBILITY
friend bool operator==(const iterator&, const iterator&);
_LIBCPP_FUNC_VIS iterator& __increment();
@@ -1901,6 +1903,7 @@ public:
{ return __increment(&__ec); }
private:
+ inline _LIBCPP_INLINE_VISIBILITY
friend bool operator==(const directory_iterator& __lhs,
const directory_iterator& __rhs) _NOEXCEPT;
@@ -2050,6 +2053,7 @@ private:
_LIBCPP_FUNC_VIS
void __pop(error_code* __ec=nullptr);
+ inline _LIBCPP_INLINE_VISIBILITY
friend bool operator==(const recursive_directory_iterator&,
const recursive_directory_iterator&) _NOEXCEPT;
@@ -2059,9 +2063,9 @@ private:
}; // class recursive_directory_iterator
-_LIBCPP_INLINE_VISIBILITY
-inline bool operator==(const recursive_directory_iterator& __lhs,
- const recursive_directory_iterator& __rhs) _NOEXCEPT
+inline _LIBCPP_INLINE_VISIBILITY
+bool operator==(const recursive_directory_iterator& __lhs,
+ const recursive_directory_iterator& __rhs) _NOEXCEPT
{
return __lhs.__imp_ == __rhs.__imp_;
}
More information about the cfe-commits
mailing list