reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Support/Path.h
  341 bool is_separator(char value, Style style = Style::native);

References

lib/MC/MCContext.cpp
  636     if (llvm::sys::path::is_separator(FileName.front()))
lib/ProfileData/InstrProf.cpp
  230     if (llvm::sys::path::is_separator(CI)) {
lib/Support/Path.cpp
   77     if ((path.size() > 2) && is_separator(path[0], style) &&
   78         path[0] == path[1] && !is_separator(path[2], style)) {
   85     if (is_separator(path[0], style))
   96     if (str.size() > 0 && is_separator(str[str.size() - 1], style))
  106     if (pos == StringRef::npos || (pos == 1 && is_separator(str[0], style)))
  117       if (str.size() > 2 && str[1] == ':' && is_separator(str[2], style))
  122     if (str.size() > 3 && is_separator(str[0], style) && str[0] == str[1] &&
  123         !is_separator(str[2], style)) {
  128     if (str.size() > 0 && is_separator(str[0], style))
  141         path.size() > 0 && is_separator(path[end_pos], style);
  147            is_separator(path[end_pos - 1], style))
  254   bool was_net = Component.size() > 2 && is_separator(Component[0], S) &&
  255                  Component[1] == Component[0] && !is_separator(Component[2], S);
  258   if (is_separator(Path[Position], S)) {
  268     while (Position != Path.size() && is_separator(Path[Position], S)) {
  318          is_separator(Path[end_pos - 1], S))
  323       is_separator(Path.back(), S) &&
  350         b->size() > 2 && is_separator((*b)[0], style) && (*b)[1] == (*b)[0];
  354       if ((++pos != e) && is_separator((*pos)[0], style)) {
  364     if (is_separator((*b)[0], style)) {
  376         b->size() > 2 && is_separator((*b)[0], style) && (*b)[1] == (*b)[0];
  393         b->size() > 2 && is_separator((*b)[0], style) && (*b)[1] == (*b)[0];
  398         (++pos != e) && is_separator((*pos)[0], style)) {
  403     if (!has_net && is_separator((*b)[0], style)) {
  432         !path.empty() && is_separator(path[path.size() - 1], style);
  444         !component.empty() && is_separator(component[0], style);
  537     if (Path[0] == '~' && (Path.size() == 1 || is_separator(Path[1], style))) {
  680   while (Path.size() > 2 && Path[0] == '.' && is_separator(Path[1], style)) {
  682     while (Path.size() > 0 && is_separator(Path[0], style))
lib/Support/Unix/Path.inc
  588       PathStr.take_until([](char c) { return path::is_separator(c); });
lib/Support/VirtualFileSystem.cpp
 1442            sys::path::is_separator(Trimmed.back()))
tools/clang/lib/Basic/FileManager.cpp
   78   if (llvm::sys::path::is_separator(Filename[Filename.size() - 1]))
  123       llvm::sys::path::is_separator(DirName.back()))
tools/clang/lib/Driver/Driver.cpp
 3351         !llvm::sys::path::is_separator(V.back())) {
 3363         !llvm::sys::path::is_separator(V.back())) {
 4339   } else if (llvm::sys::path::is_separator(Filename.back())) {
tools/clang/lib/Lex/HeaderSearch.cpp
 1775           path::is_separator(NI->front()) && path::is_separator(DI->front()))
 1775           path::is_separator(NI->front()) && path::is_separator(DI->front()))
tools/clang/lib/Lex/PPDirectives.cpp
  190     else if (::llvm::sys::path::is_separator(Ch))
tools/clang/lib/Serialization/ASTWriter.cpp
 1379   if (!llvm::sys::path::is_separator(Filename[Pos])) {
 1380     if (!llvm::sys::path::is_separator(BaseDir.back()))
tools/clang/tools/extra/clang-doc/Mapper.cpp
  108   if (!llvm::sys::path::is_separator(Prefix.back()))
tools/lldb/source/Commands/CommandCompletions.cpp
  108         Buffer.find_if([](char c) { return path::is_separator(c); });
  164   if (PartialItem == "." && path::is_separator(CompletionBuffer.back()))
tools/lldb/source/Utility/TildeExpressionResolver.cpp
   36   assert(!llvm::any_of(Expr, [](char c) { return path::is_separator(c); }));
   46   assert(!llvm::any_of(Expr, [](char c) { return path::is_separator(c); }));
   86       Expr.take_until([](char c) { return path::is_separator(c); });
tools/lldb/unittests/TestingSupport/MockTildeExpressionResolver.cpp
   42       Expr, [](char c) { return llvm::sys::path::is_separator(c); }));
   65       Expr, [](char c) { return llvm::sys::path::is_separator(c); }));
tools/llvm-cov/CodeCoverage.cpp
  395     if (!sys::path::is_separator(NativePath.back()))
unittests/Support/Path.cpp
   71   EXPECT_TRUE(path::is_separator('/'));
   72   EXPECT_FALSE(path::is_separator('\0'));
   73   EXPECT_FALSE(path::is_separator('-'));
   74   EXPECT_FALSE(path::is_separator(' '));
   76   EXPECT_TRUE(path::is_separator('\\', path::Style::windows));
   77   EXPECT_FALSE(path::is_separator('\\', path::Style::posix));
   82   EXPECT_FALSE(path::is_separator('\\'));
  303     EXPECT_TRUE(path::is_separator(LastComponent[0], Path.second));