This is necessary to handle the multiarch runtime directories.
Details
Diff Detail
- Repository
- rC Clang
Event Timeline
The log message could give concrete examples.
clang/lib/Driver/Driver.cpp | ||
---|---|---|
4169–4186 | A one-line comment before the lambda would help: // Check for Name in Path. (rename the param to be clearer) | |
4173 | 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 | Can this be return {P.str()};? | |
4184 | I'd always use auto in these situations (here and below). | |
4188 | 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 | ||
---|---|---|
4188 | I considered that but llvm::SmallVector doesn't support initializer list so this ends up looking not so great. |
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?