[Analyzer] Add dummy implementation to call_once to avoid linkage warnings in tests.

llvm-svn: 314580
This commit is contained in:
George Karpenkov 2017-09-30 01:15:35 +00:00
parent 3409d9c07f
commit 305ee8e5f8
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ typedef struct once_flag_s {
} once_flag;
template <class Callable, class... Args>
void call_once(once_flag &o, Callable func, Args... args);
void call_once(once_flag &o, Callable func, Args... args) {};
} // namespace std
// Check with Lambdas.
@ -115,9 +115,9 @@ template <class _Fp>
class function; // undefined
template <class _Rp, class... _ArgTypes>
struct function<_Rp(_ArgTypes...)> {
_Rp operator()(_ArgTypes...) const;
_Rp operator()(_ArgTypes...) const {};
template <class _Fp>
function(_Fp);
function(_Fp) {};
};
// Note: currently we do not support calls to std::function,