mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Update return type in code generator and add tests for logical functions
Change-Id: I128f8ccc21c2c3a2c79674ac28dd9a5b26b58772
This commit is contained in:
@@ -102,9 +102,6 @@ class CodeGenerator {
|
||||
// If the expression does not have a valid name an error is generated.
|
||||
std::string VariableForExpressionId(ExpressionId id);
|
||||
|
||||
// Returns the type as a string of the left hand side.
|
||||
static std::string DataTypeForExpression(ExpressionType type);
|
||||
|
||||
// Adds one level of indentation. Called when an IF expression is encountered.
|
||||
void PushIndentation();
|
||||
|
||||
|
||||
@@ -249,6 +249,8 @@ enum class ExpressionReturnType {
|
||||
VOID,
|
||||
};
|
||||
|
||||
std::string ExpressionReturnTypeToString(ExpressionReturnType type);
|
||||
|
||||
// This class contains all data that is required to generate one line of code.
|
||||
// Each line has the following form:
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user