Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Hi Gabor,
Sorry, but I don't understand the meaning of some options. Could you please explain what are NumNoUnit and NumNotInOtherTU and what is the difference between them?
The code LGTM! I am not good at wordsmithing, but if the descriptions of the statistics are not clear enough, I agree that they should be rephrased.
Sorry, but I don't understand the meaning of some options. Could you please explain what are NumNoUnit and NumNotInOtherTU and what is the difference between them?
Your point is absolutely true. They are the same, I think at some point some time ago they were different (in our fork), now it is just redundancy. So I removed NumNoUnit.
Sorry, but I don't understand the meaning of some options. Could you please explain what are NumNoUnit and NumNotInOtherTU and what is the difference between them?
Your point is absolutely true. They are the same, I think at some point some time ago they were different (in our fork), now it is just redundancy. So I removed NumNoUnit.
They are the same because in loadExternalAST we must return witn a non nullptr value, so it seems like the second check is redundant here:
if (!ASTUnitOrError) { return ASTUnitOrError.takeError(); } ASTUnit *Unit = *ASTUnitOrError; if (!Unit) return llvm::make_error<IndexError>( index_error_code::failed_to_get_external_ast);
I am going to open another patch to fix this.
LGTM with a nit.
lib/CrossTU/CrossTranslationUnit.cpp | ||
---|---|---|
171 ↗ | (On Diff #176655) | We can omit braces here. |
lib/CrossTU/CrossTranslationUnit.cpp | ||
---|---|---|
171 ↗ | (On Diff #176655) | Ok, thanks, I changed that. |