Skip to content

Commit

Permalink
More fixes to formating
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Verbytskyi committed May 30, 2021
1 parent cb83ff1 commit d2361cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/const.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ std::string bind_const(std::string const & module, VarDecl const *E)
{
string r="\t";
clang::Expr const* init = E->getInit();
if (init){
if ( init ){
string name { E->getNameAsString() };
std::string type = E->getType().getCanonicalType().getAsString();
std::string pytype = "";
Expand All @@ -60,7 +60,7 @@ std::string bind_const(std::string const & module, VarDecl const *E)
if ( !pytype_set and E->getType().getTypePtr()->isRealFloatingType() ) { pytype_set = true; pytype = "float_"; }
if ( !pytype_set and E->getType().getTypePtr()->isIntegerType() ) { pytype_set = true; pytype = "int_"; }
if ( !pytype_set and E->getType().getTypePtr()->isBooleanType() ) { pytype_set = true; pytype = "bool_"; }
if (pytype_set) {
if ( pytype_set ) {
std::string rhs;
llvm::raw_string_ostream rso(rhs);
clang::LangOptions lang_opts;
Expand Down
6 changes: 3 additions & 3 deletions test/T60.const.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ std::string const global_string1 = "Some test string";
std::string const global_string2 = std::string("Some test string");


double const expression_global_double = 8.0+1.0/5.0;
double const expression_global_double = 8.0 + 1.0/5.0;

double const array_global_double_not_binded[5] = {1.0,2.0,3.0,4.0,5.0}; //This should not appear in bindings so far.
double const array_global_double_not_binded[5] = {1.0, 2.0, 3.0, 4.0, 5.0}; //This should not appear in bindings so far.

std::vector<double> const vector_global_double_not_binded{1.0,2.0,3.0,4.0,5.0}; //This should not appear in bindings so far.
std::vector<double> const vector_global_double_not_binded{1.0, 2.0, 3.0, 4.0, 5.0}; //This should not appear in bindings so far.

int foo_char(char *) { return 0; } //This is just for control.

Expand Down

0 comments on commit d2361cd

Please sign in to comment.