We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc7ff17 commit 19f6118Copy full SHA for 19f6118
lib/Interpreter/Paths.cpp
@@ -465,20 +465,15 @@ void GetIncludePaths(
465
for (llvm::StringRef Path : Paths) {
466
bool Exists = false;
467
for (const clang::HeaderSearchOptions::Entry& E : HOpts.UserEntries) {
468
- if ((Exists = E.Path == Path))
469
- break;
+ if ((E.Path == Path))
+ Exists = true;
470
+ break;
471
}
- if (!Exists)
472
+ if (!Exists) {
473
PathsChecked.push_back(Path);
- includePaths.push_back((std::string)Path);
474
+ includePaths.push_back((std::string)Path);
475
+ }
476
-
- const bool IsFramework = false;
477
- const bool IsSysRootRelative = true;
478
- for (llvm::StringRef Path : PathsChecked)
479
- HOpts.AddPath(Path, clang::frontend::Angled, IsFramework,
480
- IsSysRootRelative);
481
482
#undef DEBUG_TYPE
483
484
0 commit comments