mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-21 07:59:27 +00:00
Don't show unique file id warning if there is no file name
This commit is contained in:
parent
491e7b4625
commit
ced7c878b7
@ -84,6 +84,9 @@ std::vector<std::unique_ptr<IndexFile>> FileConsumer::TakeLocalState() {
|
|||||||
|
|
||||||
void FileConsumer::EmitError(CXFile file) const {
|
void FileConsumer::EmitError(CXFile file) const {
|
||||||
std::string file_name = clang::ToString(clang_getFileName(file));
|
std::string file_name = clang::ToString(clang_getFileName(file));
|
||||||
std::string error_message = "Could not get unique file id for " + file_name + " when parsing " + parse_file_;
|
// TODO: Investigate this more, why can we get an empty file name?
|
||||||
std::cerr << error_message << std::endl;
|
if (!file_name.empty()) {
|
||||||
|
std::string error_message = "Could not get unique file id for " + file_name + " when parsing " + parse_file_;
|
||||||
|
std::cerr << error_message << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user