Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
LGTM.
clang/include/clang/Basic/DiagnosticSemaKinds.td | ||
---|---|---|
6727 ↗ | (On Diff #73139) | Nit: Technically they are allowed in namespace scope. |
clang/include/clang/Basic/DiagnosticSemaKinds.td | ||
---|---|---|
6727 ↗ | (On Diff #73139) | That's still a "global variable"? Or do you think calling it such will be confusing? |
clang/include/clang/Basic/DiagnosticSemaKinds.td | ||
---|---|---|
6727 ↗ | (On Diff #73139) | It's not clear whether you mean global storage class or global namespace. I'll leave phrasing up to you. |
clang/include/clang/Basic/DiagnosticSemaKinds.td | ||
---|---|---|
6727 ↗ | (On Diff #73139) |
So there's actually no such thing as "global" storage class. It's *static* storage (so helpful), meaning, a global variable or a static variable inside of a function. But __constant__ symbols must actually be global variables -- nvcc doesn't allow them to appear inside function bodies. I think "global" is the right way to describe what we're going after. Until a Language Lawyer corrects me, anyway. :) |