Skip to content

Commit d3a778b

Browse files
style: adjust formatting in xinterpreter.cpp
- 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.
1 parent bd0fe71 commit d3a778b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/xinterpreter.cpp

+4-8
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
#include "xeus-cpp/xinterpreter.hpp"
1616
#include "xeus-cpp/xmagics.hpp"
1717

18-
#include <cstdlib> // for std::getenv
19-
#include <cstring> // for std::strlen
20-
#include <sstream> // for std::istringstream
21-
#include <string> // for std::getline
18+
#include <cstdlib> // for std::getenv
19+
#include <cstring> // for std::strlen
20+
#include <sstream> // for std::istringstream
21+
#include <string> // for std::getline
2222

2323
#include "xinput.hpp"
2424
#include "xinspect.hpp"
@@ -382,12 +382,8 @@ __get_cxx_version ()
382382
std::istringstream stream(non_standard_paths);
383383
std::string path;
384384
while (std::getline(stream, path, path_separator))
385-
{
386385
if (!path.empty())
387-
{
388386
Cpp::AddIncludePath(path.c_str());
389-
}
390-
}
391387
}
392388

393389
void interpreter::init_preamble()

0 commit comments

Comments
 (0)