@@ -56,12 +56,15 @@ namespace xcpp
5656        static  unsigned  long  long  var_count = 0 ;
5757
5858        if  (auto  *type = Cpp::GetType (expression))
59+         {
5960            return  Cpp::GetQualifiedName (type);
61+         }
6062
6163        std::string id = " __Xeus_GetType_" std::to_string (var_count++);
6264        std::string using_clause = " using " "  = __typeof__(" " );\n " 
6365
64-         if  (!Cpp::Declare (using_clause.c_str (), false )) {
66+         if  (!Cpp::Declare (using_clause.c_str (), false ))
67+         {
6568            Cpp::TCppScope_t lookup = Cpp::GetNamed (id, nullptr );
6669            Cpp::TCppType_t lookup_ty = Cpp::GetTypeFromScope (lookup);
6770            return  Cpp::GetQualifiedCompleteName (Cpp::GetCanonicalType (lookup_ty));
@@ -72,7 +75,8 @@ namespace xcpp
7275    static  nl::json read_tagconfs (const  char * path)
7376    {
7477        nl::json result = nl::json::array ();
75-         for  (const  auto  &entry: std::filesystem::directory_iterator (path)) {
78+         for  (const  auto  &entry: std::filesystem::directory_iterator (path))
79+         {
7680            if  (entry.path ().extension () != " .json" 
7781                continue ;
7882            std::ifstream i (entry.path ());
@@ -83,12 +87,13 @@ namespace xcpp
8387        return  result;
8488    }
8589
86-     std::pair<bool , std::smatch> is_inspect_request (const  std::string& code,
87-                                                     const  std::regex& re)
90+     std::pair<bool , std::smatch> is_inspect_request (const  std::string& code, const  std::regex& re)
8891    {
8992        std::smatch inspect;
9093        if  (std::regex_search (code, inspect, re))
94+         {
9195            return  std::make_pair (true , inspect);
96+         }
9297        return  std::make_pair (false , inspect);
9398    }
9499
@@ -248,4 +253,3 @@ namespace xcpp
248253        return  std::make_unique<xintrospection>(*this );
249254    }
250255}
251- 
0 commit comments