Reported by Coverity:
Unchecked return value
If the function returns an error value, the error value may be mistaken for a normal value.
- Inside "Parser.cpp" file, in clang::Parser::ParseKNRParamDeclarations(clang::Declarator &): Value returned from a function is not checked for errors before being used.
check_return: Calling TryConsumeToken without checking return value (as is done elsewhere 75 out of 86 times).
- Inside "CallGraph.h" file, in clang::CallGraph::addToCallGraph(clang::Decl *): Value returned from a function is not checked for errors before being used.
check_return: Calling TraverseDecl without checking return value (as is done elsewhere 22 out of 23 times).
- Inside "TokenAnnotator.cpp" file ,in clang::format::<unnamed>::AnnotatingParser::consumeToken(): Value returned from a function is not checked for errors before being used.
check_return: Calling consumeToken without checking return value (as is done elsewhere 6 out of 7 times).
- Inside "UnsafeBufferUsage.cpp" file, In clang::ast_matchers::MatchDescendantVisitor::findMatch(clang::DynTypedNode const &): Value returned from a function is not checked for errors before being used.
check_return: Calling TraverseStmt without checking return value (as is done elsewhere 485 out of 489 times)
- Inside "ItaniumDemangle.h" file, in llvm::itanium_demangle::AbstractManglingParser<llvm::itanium_demangle::ManglingParser<<unnamed>::CanonicalizerAllocator>, <unnamed>::CanonicalizerAllocator>::parseFunctionType(): Value returned from a function is not checked for errors before being used.
check_return: Calling consumeIf without checking return value (as is done elsewhere 47 out of 50 times).
- Inside "ItaniumDemangle.h" file, in llvm::itanium_demangle::AbstractManglingParser<llvm::itanium_demangle::ManglingParser<<unnamed>::CanonicalizerAllocator>, <unnamed>::CanonicalizerAllocator>::parseBaseUnresolvedName(): Value returned from a function is not checked for errors before being used.
check_return: Calling consumeIf without checking return value (as is done elsewhere 47 out of 50 times).
- Inside "ItaniumDemangle.h" file, in llvm::itanium_demangle::AbstractManglingParser<llvm::itanium_demangle::ManglingParser<llvm::esimd::SimpleAllocator>, llvm::esimd::SimpleAllocator>::parseNumber(bool): Value returned from a function is not checked for errors before being used.
check_return: Calling consumeIf without checking return value (as is done elsewhere 95 out of 102 times).
- Inside "ExprConstant.cpp" file, in clang::Expr::isPotentialConstantExprUnevaluated(clang::Expr *, clang::FunctionDecl const *, llvm::SmallVectorImpl<std::pair<clang::SourceLocation, clang::PartialDiagnostic>> &): Value returned from a function is not checked for errors before being used.
check_return: Calling Evaluate without checking return value (as is done elsewhere 23 out of 27 times).
- Inside "ASTMatchFinder.cpp" file, in clang::ast_matchers::internal::<unnamed>::MatchASTVisitor::dataTraverseNode(clang::Stmt *, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt *, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt *>, llvm::PointerIntPairInfo<clang::Stmt *, 1u, llvm::PointerLikeTypeTraits<clang::Stmt *>>>> *): Value returned from a function is not checked for errors before being used.
check_return: Calling TraverseDecl without checking return value (as is done elsewhere 29 out of 33 times).
- Inside "ParseObjc.cpp" file, in clang::Parser::isStartOfObjCClassMessageMissingOpenBracket(): Value returned from a function is not checked for errors before being used.
check_return: Calling TryAnnotateTypeOrScopeToken without checking return value (as is done elsewhere 19 out of 21 times).