forked from OSchip/llvm-project
[clangd] only ignore collected symbols if TU has uncompilable errors.
llvm-svn: 336260
This commit is contained in:
parent
514ac22d8f
commit
156fca5d43
|
@ -84,9 +84,10 @@ public:
|
||||||
|
|
||||||
const auto &CI = getCompilerInstance();
|
const auto &CI = getCompilerInstance();
|
||||||
if (CI.hasDiagnostics() &&
|
if (CI.hasDiagnostics() &&
|
||||||
(CI.getDiagnosticClient().getNumErrors() > 0)) {
|
CI.getDiagnostics().hasUncompilableErrorOccurred()) {
|
||||||
llvm::errs() << "Found errors in the translation unit. Igoring "
|
llvm::errs()
|
||||||
"collected symbols...\n";
|
<< "Found uncompilable errors in the translation unit. Igoring "
|
||||||
|
"collected symbols...\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue