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 "SemaExpr.cpp" file, in clang::Sema::BuildCXXDefaultArgExpr(clang::SourceLocation, clang::FunctionDecl *, clang::ParmVarDecl *, clang::Expr *): 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 31 times)
- Inside "CGStmt.cpp" file, in clang::CodeGen::CodeGenFunction::EmitAsmInput(clang::TargetInfo::ConstraintInfo const &, clang::Expr const *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> &): Value returned from a function is not checked for errors before being used.
check_return: Calling EvaluateAsRValue without checking return value (as is done elsewhere 21 out of 25 times).
- Inside "SemaChecking.cpp" file, in clang::Sema::CheckRISCVBuiltinFunctionCall(clang::TargetInfo const &, unsigned int, clang::CallExpr *): Value returned from a function is not checked for errors before being used.
check_return: Calling consume_front without checking return value (as is done elsewhere 180 out of 213 times)