MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / mkBinaryOperator

Function mkBinaryOperator

ASTHelpers.cpp:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35//-----------------------------------------------------------------------------
36
37static BinaryOperator* mkBinaryOperator(Expr* lhs, Expr* rhs, BinaryOperator::Opcode opc, QualType resType)
38{
39 return BinaryOperator::Create(
40 GetGlobalAST(), lhs, rhs, opc, resType.getNonReferenceType(), VK_LValue, OK_Ordinary, {}, {});
41}
42//-----------------------------------------------------------------------------
43
44BinaryOperator* Assign(UnaryOperator* var, Expr* assignExpr)

Callers 5

AssignFunction · 0.85
EqualFunction · 0.85
PlusFunction · 0.85
MulFunction · 0.85
AndFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected