forked from GPUOpen-Drivers/llvm-project
-
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.
Merged main:e72802480871 into amd-gfx:4a50bca95a48
Local branch amd-gfx 4a50bca Merged main:70bd75426e5c into amd-gfx:9e86972b8431 Remote branch main e728024 [DSE] Pass MemoryLocation by const ref (NFC)
- Loading branch information
Showing
41 changed files
with
413 additions
and
224 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// RUN: %clang_cc1 -fsyntax-only -verify %s | ||
|
||
void Foo(int); | ||
|
||
#define Bar(x) Foo(x) | ||
|
||
void Baz() { | ||
Foo(sizeof int); // expected-error {{expected parentheses around type name in sizeof expression}} | ||
Bar(sizeof int); // expected-error {{expected parentheses around type name in sizeof expression}} | ||
} |
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.