Searched refs:BestPrefixLength (Results 1 – 2 of 2) sorted by relevance
1437 unsigned BestPrefixLength = 0; in suggestPathToFileForDiagnostics() local1464 if (PrefixLength > BestPrefixLength) { in suggestPathToFileForDiagnostics()1465 BestPrefixLength = PrefixLength; in suggestPathToFileForDiagnostics()1477 *IsSystem = BestPrefixLength ? BestSearchDir >= SystemDirIdx : false; in suggestPathToFileForDiagnostics()1478 return Name + BestPrefixLength; in suggestPathToFileForDiagnostics()
1792 unsigned BestPrefixLength = 0; in suggestPathToFileForDiagnostics() local1818 if (PrefixLength > BestPrefixLength) { in suggestPathToFileForDiagnostics()1819 BestPrefixLength = PrefixLength; in suggestPathToFileForDiagnostics()1843 *IsSystem = BestPrefixLength ? I >= SystemDirIdx : false; in suggestPathToFileForDiagnostics()1848 if (!BestPrefixLength && CheckDir(path::parent_path(MainFile)) && IsSystem) in suggestPathToFileForDiagnostics()1852 return path::convert_to_slash(File.drop_front(BestPrefixLength)); in suggestPathToFileForDiagnostics()