For example, a function taking a parameter with internal linkage will
itself have internal linkage since it cannot be called outside the
translation unit.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
What happens if the export directive is on the function itself instead of the class? Does this deserve a diagnostic? What about the import side?
Comment Actions
What happens if the export directive is on the function itself instead of the class? Does this deserve a diagnostic? What about the import side?
We diagnose it as an error if put directly on the function.
Comment Actions
Looks good to me, thanks.
lib/Sema/SemaDeclCXX.cpp | ||
---|---|---|
4807 ↗ | (On Diff #24192) | nit: no braces |
Comment Actions
I'll land this now to unbreak the Chromium build. If David or Reid has more comments, we can do follow-up patches.
lib/Sema/SemaDeclCXX.cpp | ||
---|---|---|
4807 ↗ | (On Diff #24192) | Done. |