Threading.h: Give named parameters to llvm::call_once(flag,UserFn). [-Wdocumentation]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 31 Oct 2014 00:54:20 +0000 (00:54 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 31 Oct 2014 00:54:20 +0000 (00:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220941 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Threading.h

index d6d6da61f9efb35c4da5fb88348aa4bad950e01f..74fe745f3bbe9f90d8d2031a46215c1180821711 100644 (file)
@@ -68,8 +68,7 @@ typedef volatile sys::cas_flag once_flag;
 ///
 /// \param flag Flag used for tracking whether or not this has run.
 /// \param UserFn Function to call once.
-void call_once(once_flag&, void (*)(void));
-
+void call_once(once_flag &flag, void (*UserFn)(void));
 }
 
 #endif