Skip to content

Commit 19f6118

Browse files
Update with clang-tidy suggestions
1 parent dc7ff17 commit 19f6118

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

lib/Interpreter/Paths.cpp

+6-11
Original file line numberDiff line numberDiff line change
@@ -465,20 +465,15 @@ void GetIncludePaths(
465465
for (llvm::StringRef Path : Paths) {
466466
bool Exists = false;
467467
for (const clang::HeaderSearchOptions::Entry& E : HOpts.UserEntries) {
468-
if ((Exists = E.Path == Path))
469-
break;
468+
if ((E.Path == Path))
469+
Exists = true;
470+
break;
470471
}
471-
if (!Exists)
472+
if (!Exists) {
472473
PathsChecked.push_back(Path);
473-
includePaths.push_back((std::string)Path);
474+
includePaths.push_back((std::string)Path);
475+
}
474476
}
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-
482477
#undef DEBUG_TYPE
483478
}
484479

0 commit comments

Comments
 (0)