mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-31 18:00:26 +00:00
Log compile arguments when there is a libclang failure
This commit is contained in:
parent
00143bef8e
commit
3e00e5fc0c
@ -35,20 +35,20 @@ TranslationUnit::TranslationUnit(Index& index,
|
|||||||
did_fail = false;
|
did_fail = false;
|
||||||
break;
|
break;
|
||||||
case CXError_Failure:
|
case CXError_Failure:
|
||||||
std::cerr << "libclang generic failure for " << filepath << std::endl;
|
std::cerr << "libclang generic failure for " << filepath << " with args " << StringJoin(args) << std::endl;
|
||||||
did_fail = true;
|
did_fail = true;
|
||||||
break;
|
break;
|
||||||
case CXError_Crashed:
|
case CXError_Crashed:
|
||||||
std::cerr << "libclang crashed for " << filepath << std::endl;
|
std::cerr << "libclang crashed for " << filepath << " with args " << StringJoin(args) << std::endl;
|
||||||
did_fail = true;
|
did_fail = true;
|
||||||
break;
|
break;
|
||||||
case CXError_InvalidArguments:
|
case CXError_InvalidArguments:
|
||||||
std::cerr << "libclang had invalid arguments for " << filepath
|
std::cerr << "libclang had invalid arguments for " << " with args " << StringJoin(args) << filepath
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
did_fail = true;
|
did_fail = true;
|
||||||
break;
|
break;
|
||||||
case CXError_ASTReadError:
|
case CXError_ASTReadError:
|
||||||
std::cerr << "libclang had ast read error for " << filepath << std::endl;
|
std::cerr << "libclang had ast read error for " << filepath << " with args " << StringJoin(args) << std::endl;
|
||||||
did_fail = true;
|
did_fail = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user