mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-16 13:48:04 +00:00
Match directory before looking at included files.
This commit is contained in:
parent
4c32c2bf77
commit
47a8f20b20
@ -161,6 +161,10 @@ void IncludeComplete::InsertIncludesFromDirectory(std::string directory,
|
||||
bool use_angle_brackets) {
|
||||
directory = NormalizePath(directory);
|
||||
EnsureEndsInSlash(directory);
|
||||
if (match_ && !match_->IsMatch(directory)) {
|
||||
// Don't even enter the directory if it fails the patterns.
|
||||
return;
|
||||
}
|
||||
|
||||
std::vector<CompletionCandidate> results;
|
||||
GetFilesInFolder(
|
||||
|
Loading…
Reference in New Issue
Block a user