Lines Matching defs:file_spec
25 // Append the "file_spec" to the end of the file spec list.
26 void FileSpecList::Append(const FileSpec &file_spec) {
27 m_files.push_back(file_spec);
30 // Only append the "file_spec" if this list doesn't already contain it.
32 // Returns true if "file_spec" was added, false if this list already contained
33 // a copy of "file_spec".
34 bool FileSpecList::AppendIfUnique(const FileSpec &file_spec) {
36 if (find(m_files.begin(), end, file_spec) == end) {
37 m_files.push_back(file_spec);
56 // Find the index of the file in the file spec list that matches "file_spec"
59 // Returns the valid index of the file that matches "file_spec" if it is found,
61 size_t FileSpecList::FindFileIndex(size_t start_idx, const FileSpec &file_spec,
67 bool compare_filename_only = file_spec.GetDirectory().IsEmpty();
72 m_files[idx].GetFilename(), file_spec.GetFilename(),
73 file_spec.IsCaseSensitive() || m_files[idx].IsCaseSensitive()))
76 if (FileSpec::Equal(m_files[idx], file_spec, full))