forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge from 'main' to 'sycl-web' (intel#39)
CONFLICT (content): Merge conflict in clang/test/Driver/clang-offload-bundler.c
- Loading branch information
Showing
139 changed files
with
9,424 additions
and
8,318 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...s-extra/test/clang-tidy/checkers/Inputs/readability-identifier-naming/system/coroutines.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma once | ||
|
||
namespace std { | ||
namespace experimental { | ||
|
||
template <typename ret_t, typename... args_t> | ||
struct coroutine_traits { | ||
using promise_type = typename ret_t::promise_type; | ||
}; | ||
|
||
template <class promise_t> | ||
struct coroutine_handle { | ||
static constexpr coroutine_handle from_address(void *addr) noexcept { return {}; }; | ||
}; | ||
|
||
} // namespace experimental | ||
} // namespace std | ||
|
||
struct never_suspend { | ||
bool await_ready() noexcept { return false; } | ||
template <typename coro_t> | ||
void await_suspend(coro_t handle) noexcept {} | ||
void await_resume() noexcept {} | ||
}; | ||
|
||
struct task { | ||
struct promise_type { | ||
task get_return_object() noexcept { return {}; } | ||
never_suspend initial_suspend() noexcept { return {}; } | ||
never_suspend final_suspend() noexcept { return {}; } | ||
void return_void() {} | ||
void unhandled_exception() {} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.