Lines Matching defs:file_spec

27 // Append the "file_spec" to the end of the file spec list.
28 void FileSpecList::Append(const FileSpec &file_spec) {
29 m_files.push_back(file_spec);
32 // Only append the "file_spec" if this list doesn't already contain it.
34 // Returns true if "file_spec" was added, false if this list already contained
35 // a copy of "file_spec".
36 bool FileSpecList::AppendIfUnique(const FileSpec &file_spec) {
38 if (find(m_files.begin(), end, file_spec) == end) {
39 m_files.push_back(file_spec);
46 bool SupportFileList::AppendIfUnique(const FileSpec &file_spec) {
50 return support_file->GetSpecOnly() == file_spec;
52 Append(file_spec);
71 // Find the index of the file in the file spec list that matches "file_spec"
74 // Returns the valid index of the file that matches "file_spec" if it is found,
76 static size_t FindFileIndex(size_t start_idx, const FileSpec &file_spec,
81 bool compare_filename_only = file_spec.GetDirectory().IsEmpty();
86 if (ConstString::Equals(ith.GetFilename(), file_spec.GetFilename(),
87 file_spec.IsCaseSensitive() ||
91 if (FileSpec::Equal(ith, file_spec, full))
100 size_t FileSpecList::FindFileIndex(size_t start_idx, const FileSpec &file_spec,
103 start_idx, file_spec, full, m_files.size(),
108 const FileSpec &file_spec,
110 return ::FindFileIndex(start_idx, file_spec, full, m_files.size(),
123 const FileSpec &file_spec) {
124 const bool file_spec_relative = file_spec.IsRelative();
125 const bool file_spec_case_sensitive = file_spec.IsCaseSensitive();
127 // argument is empty in file_spec
128 const bool full = !file_spec.GetDirectory().IsEmpty();
131 if (!curr_file.FileEquals(file_spec))
137 if (FileSpec::Equal(curr_file, file_spec, full)) {
145 // Check if we have a relative path in our file list, or if "file_spec" is
147 llvm::StringRef file_spec_dir = file_spec.GetDirectory().GetStringRef();
167 size_t start_idx, const FileSpec &file_spec,
176 IsCompatibleResult result = IsCompatible(curr_file, file_spec);
183 if (IsCompatible(*resolved_curr_file, file_spec) ==