Skip to content

Commit

Permalink
style: adjust formatting in xinterpreter.cpp
Browse files Browse the repository at this point in the history
- Align include statement comments with 2-space padding
- Remove redundant braces in path handling loop

This change ensures consistent code style across the codebase
and matches the project's formatting guidelines.
  • Loading branch information
AhmedFatthy1040 committed Dec 12, 2024
1 parent bd0fe71 commit d3a778b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/xinterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
#include "xeus-cpp/xinterpreter.hpp"
#include "xeus-cpp/xmagics.hpp"

#include <cstdlib> // for std::getenv
#include <cstring> // for std::strlen
#include <sstream> // for std::istringstream
#include <string> // for std::getline
#include <cstdlib> // for std::getenv
#include <cstring> // for std::strlen
#include <sstream> // for std::istringstream
#include <string> // for std::getline

#include "xinput.hpp"
#include "xinspect.hpp"
Expand Down Expand Up @@ -382,12 +382,8 @@ __get_cxx_version ()
std::istringstream stream(non_standard_paths);
std::string path;
while (std::getline(stream, path, path_separator))
{
if (!path.empty())
{
Cpp::AddIncludePath(path.c_str());
}
}
}

void interpreter::init_preamble()
Expand Down

0 comments on commit d3a778b

Please sign in to comment.