Skip to content

Commit e50ff35

Browse files
committed
clang tidy suggestions
1 parent 1b981d7 commit e50ff35

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/xinterpreter.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ __get_cxx_version ()
155155

156156
std::string ename;
157157
std::string evalue;
158-
//bool compilation_result = false;
159158
intptr_t output_value = 0;
160159
bool hadError = false;
161160

@@ -245,7 +244,8 @@ __get_cxx_version ()
245244
{
246245
// Publish a mime bundle for the last return value if
247246
// the semicolon was omitted.
248-
if (!config.silent && output_value != 0 && trim(blocks.back()).back() != ';') {
247+
if (!config.silent && output_value != 0 && trim(blocks.back()).back() != ';')
248+
{
249249
nl::json pub_data = mime_repr(output_value);
250250
publish_execution_result(execution_counter, std::move(pub_data), nl::json::object());
251251
}

src/xmime_internal.hpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <locale>
1515
#include <string>
1616

17-
#include "clang/Interpreter/CppInterOp.h" // from CppInterOp package
17+
#include "clang/Interpreter/CppInterOp.h" // from CppInterOp package
1818

1919
#include <nlohmann/json.hpp>
2020

@@ -53,9 +53,12 @@ namespace xcpp
5353

5454
void* mimeReprV_ptr = reinterpret_cast<void*>(V);
5555

56-
if (!hadError && mimeReprV_ptr) {
56+
if (!hadError && mimeReprV_ptr)
57+
{
5758
return *(nl::json*) mimeReprV_ptr;
58-
} else {
59+
}
60+
else
61+
{
5962
return nl::json::object();
6063
}
6164
}

0 commit comments

Comments
 (0)