Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 30925 Build 30924: arc lint + arc unit
Event Timeline
Comment Actions
This looks like a bug rather than a feature of HeaderSearch, shouldn't the slash conversion go there?
(It seems unlikely that diagnostics should suggest one thing but we insert another)
Comment Actions
I had just looked at the method name and thought it was the right place( suggestPathToFileForDiagnostics since it says "path to file".)
But looking at the comments,
/// Suggest a path by which the specified file could be found, for /// use in diagnostics to suggest a #include.
HeaderSearch API itself seems like a better place, I suppose the confusion comes from the fact that paths and the include-directives are
the same on unix-like systems.
Updating the patch
clang/include/clang/Lex/HeaderSearch.h | ||
---|---|---|
710 | I don't think this is specific enough - on windows, backslashes are valid (or at least accepted by clang). |
I don't think this is specific enough - on windows, backslashes are valid (or at least accepted by clang).
I'd suggest specifically mentioning forward slashes.