This is necessary to handle the multiarch runtime directories.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
The log message could give concrete examples.
clang/lib/Driver/Driver.cpp | ||
---|---|---|
4169 ↗ | (On Diff #163633) | A one-line comment before the lambda would help: // Check for Name in Path. (rename the param to be clearer) |
4173 ↗ | (On Diff #163633) | I'd always use const auto& in a range-for like this, but I guess this was just moved around and maybe LLVM style frowns on auto? |
4179 ↗ | (On Diff #163633) | Can this be return {P.str()};? |
4184 ↗ | (On Diff #163633) | I'd always use auto in these situations (here and below). |
4187 ↗ | (On Diff #163633) | You could fold these cases into the lambda too by having it take a bool UseSysRoot and passing {ResourceDir}, false. |
clang/lib/Driver/Driver.cpp | ||
---|---|---|
4187 ↗ | (On Diff #163633) | I considered that but llvm::SmallVector doesn't support initializer list so this ends up looking not so great. |