Lines Matching defs:style
265 /// This would enable the use of openat()-style functions on some platforms.
1223 // Detect the path style in use by checking the first separator.
1224 llvm::sys::path::Style style = llvm::sys::path::Style::native;
1228 style = (Path[n] == '/') ? llvm::sys::path::Style::posix
1230 return style;
1235 // First detect the path style in use by checking the first separator.
1236 llvm::sys::path::Style style = getExistingStyle(Path);
1238 // Now remove the dots. Explicitly specifying the path style prevents the
1241 llvm::sys::path::remove_leading_dotslash(Path, style);
1242 llvm::sys::path::remove_dots(result, /*remove_dot_dot=*/true, style);
1402 // We can't use sys::fs::make_absolute because that assumes the path style
1404 // is absolute, we can use it to determine which style we actually have and
1412 sys::path::Style style = sys::path::Style::windows_backslash;
1414 style = sys::path::Style::posix;
1419 style = sys::path::Style::windows_slash;
1424 if (!Dir.ends_with(sys::path::get_separator(style))) {
1425 Result += sys::path::get_separator(style);
1956 // VFS root entries may be in either Posix or Windows style. Figure out
1957 // which style we have, and use it consistently.
1966 // the path style from that.