/Zc:dllexportInlines with /fallback may cause unexpected linker error. It is better to disallow compile rather than warn for this combination.
Details
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 24892 Build 24891: arc lint + arc unit
Event Timeline
| clang/include/clang/Basic/DiagnosticDriverKinds.td | ||
|---|---|---|
| 164–165 | Let's make the name shorter. I think "err_drv_dllexport_inlines_and_fallback" or something is descriptive enough. | |
| clang/lib/Driver/ToolChains/Clang.cpp | ||
| 5529 | We know there must be a OPT__SLASH_Zc_dllexportInlines_ flag at this point (because it's checked in the if above), so I think think you need "&& dllexportInlines" below. In the previous version, you output the getAsString() of the arg to the diagnostic. Don't you want to do this still? | |
Thank you for review!
| clang/lib/Driver/ToolChains/Clang.cpp | ||
|---|---|---|
| 5529 | Ah, I don't need to call getAsString() anymore. | |
Let's make the name shorter. I think "err_drv_dllexport_inlines_and_fallback" or something is descriptive enough.