Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Commit b523aa9

Browse files
inneroutjacobdufault
authored andcommitted
Renamed GetFilesInFolder to GetFilesAndDirectoriesInFolder
1 parent cd5da8a commit b523aa9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/include_complete.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void IncludeComplete::InsertIncludesFromDirectory(std::string directory0,
185185
}
186186

187187
std::vector<CompletionCandidate> results;
188-
GetFilesInFolder(
188+
GetFilesAndDirectoriesInFolder(
189189
directory->path, true /*recursive*/, false /*add_folder_to_path*/,
190190
[&](const std::string& path) {
191191
if (!EndsWithAny(path, g_config->completion.includeSuffixWhitelist))

src/project.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ std::vector<Project::Entry> LoadFromDirectoryListing(
478478
}
479479
}
480480

481-
GetFilesInFolder(
481+
GetFilesAndDirectoriesInFolder(
482482
config->project_dir, true /*recursive*/, true /*add_folder_to_path*/,
483483
[&folder_args, &files](const std::string& path) {
484484
if (SourceFileLanguage(path) != LanguageId::Unknown) {

src/test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ bool RunIndexTests(const std::string& filter_path, bool enable_update) {
320320
// FIXME: show diagnostics in STL/headers when running tests. At the moment
321321
// this can be done by constructing ClangIndex index(1, 1);
322322
ClangIndex index;
323-
for (std::string path : GetFilesInFolder("index_tests", true /*recursive*/,
323+
for (std::string path : GetFilesAndDirectoriesInFolder("index_tests", true /*recursive*/,
324324
true /*add_folder_to_path*/)) {
325325
bool is_fail_allowed = false;
326326

src/utils.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static void GetFilesInFolderHelper(
226226
}
227227
}
228228

229-
std::vector<std::string> GetFilesInFolder(std::string folder,
229+
std::vector<std::string> GetFilesAndDirectoriesInFolder(std::string folder,
230230
bool recursive,
231231
bool add_folder_to_path) {
232232
EnsureEndsInSlash(folder);
@@ -237,7 +237,7 @@ std::vector<std::string> GetFilesInFolder(std::string folder,
237237
return result;
238238
}
239239

240-
void GetFilesInFolder(std::string folder,
240+
void GetFilesAndDirectoriesInFolder(std::string folder,
241241
bool recursive,
242242
bool add_folder_to_path,
243243
const std::function<void(const std::string&)>& handler) {

src/utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ bool ContainsValue(const TCollection& collection, const TValue& value) {
7676
}
7777

7878
// Finds all files in the given folder. This is recursive.
79-
std::vector<std::string> GetFilesInFolder(std::string folder,
79+
std::vector<std::string> GetFilesAndDirectoriesInFolder(std::string folder,
8080
bool recursive,
8181
bool add_folder_to_path);
82-
void GetFilesInFolder(std::string folder,
82+
void GetFilesAndDirectoriesInFolder(std::string folder,
8383
bool recursive,
8484
bool add_folder_to_path,
8585
const std::function<void(const std::string&)>& handler);

0 commit comments

Comments
 (0)