@@ -231,8 +231,8 @@ void CopyIncludePaths(const clang::HeaderSearchOptions& Opts,
231
231
incpaths.push_back (" -v" );
232
232
}
233
233
234
- void LogNonExistantDirectory (llvm::StringRef Path) {
235
- #define DEBUG_TYPE " LogNonExistantDirectory "
234
+ void LogNonExistentDirectory (llvm::StringRef Path) {
235
+ #define DEBUG_TYPE " LogNonExistentDirectory "
236
236
LLVM_DEBUG (dbgs () << " ignoring nonexistent directory \" " << Path << " \"\n " );
237
237
#undef DEBUG_TYPE
238
238
}
@@ -276,27 +276,27 @@ bool SplitPaths(llvm::StringRef PathStr,
276
276
AllExisted = AllExisted && Exists;
277
277
278
278
if (!Exists) {
279
- if (Mode == kFailNonExistant ) {
279
+ if (Mode == kFailNonExistent ) {
280
280
if (Verbose) {
281
- // Exiting early, but still log all non-existant paths that we have
282
- LogNonExistantDirectory (Split.first );
281
+ // Exiting early, but still log all non-existent paths that we have
282
+ LogNonExistentDirectory (Split.first );
283
283
while (!Split.second .empty ()) {
284
284
Split = PathStr.split (Delim);
285
285
if (llvm::sys::fs::is_directory (Split.first )) {
286
286
LLVM_DEBUG (dbgs () << " ignoring directory that exists \" "
287
287
<< Split.first << " \"\n " );
288
288
} else
289
- LogNonExistantDirectory (Split.first );
289
+ LogNonExistentDirectory (Split.first );
290
290
Split = Split.second .split (Delim);
291
291
}
292
292
if (!llvm::sys::fs::is_directory (Split.first ))
293
- LogNonExistantDirectory (Split.first );
293
+ LogNonExistentDirectory (Split.first );
294
294
}
295
295
return false ;
296
- } else if (Mode == kAllowNonExistant )
296
+ } else if (Mode == kAllowNonExistent )
297
297
Paths.push_back (Split.first );
298
298
else if (Verbose)
299
- LogNonExistantDirectory (Split.first );
299
+ LogNonExistentDirectory (Split.first );
300
300
} else
301
301
Paths.push_back (Split.first );
302
302
}
@@ -311,10 +311,10 @@ bool SplitPaths(llvm::StringRef PathStr,
311
311
if (!PathStr.empty ()) {
312
312
if (!llvm::sys::fs::is_directory (PathStr)) {
313
313
AllExisted = false ;
314
- if (Mode == kAllowNonExistant )
314
+ if (Mode == kAllowNonExistent )
315
315
Paths.push_back (PathStr);
316
316
else if (Verbose)
317
- LogNonExistantDirectory (PathStr);
317
+ LogNonExistentDirectory (PathStr);
318
318
} else
319
319
Paths.push_back (PathStr);
320
320
}
@@ -331,7 +331,7 @@ void AddIncludePaths(llvm::StringRef PathStr,
331
331
332
332
llvm::SmallVector<llvm::StringRef, 10 > Paths;
333
333
if (Delim && *Delim)
334
- SplitPaths (PathStr, Paths, kAllowNonExistant , Delim, HOpts.Verbose );
334
+ SplitPaths (PathStr, Paths, kAllowNonExistent , Delim, HOpts.Verbose );
335
335
else
336
336
Paths.push_back (PathStr);
337
337
0 commit comments