Warn for NVCC compatibility if you declare a static member function or
inline function as global.
Details
Diff Detail
Event Timeline
Small diags not. LGTM otherwise.
| lib/Sema/SemaDeclAttr.cpp | ||
|---|---|---|
| 3620–3629 | Perhaps we should emit diagnostics on device side only. | |
| lib/Sema/SemaDeclAttr.cpp | ||
|---|---|---|
| 3620–3629 | Hm. I don't feel strongly, but since we're talking about global functions, this seems sort of relevant for both host and device compilation? | |
| lib/Sema/SemaDeclAttr.cpp | ||
|---|---|---|
| 3620–3629 | Host-only works, too. Printing this on both host and device is a bit too much. | |
There's an Extension<> tablegen class used to report various C and C++ extensions.
This looks like a good use case for it.