Commit a5c2ac0b authored by nagayama15's avatar nagayama15

Add the setting file of clang-format.

parent 625f426a
BasedOnStyle: LLVM
IndentWidth: 4
NamespaceIndentation: All
root = true
[*]
indent_style = tab
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
......@@ -9,6 +9,4 @@ trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false
......@@ -9,7 +9,7 @@ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g3 -Og -pg")
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG -march=native")
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_BUILD_TYPE Release)
endif (NOT CMAKE_BUILD_TYPE)
include(ExternalProject)
......
This diff is collapsed.
add_executable(kyut
kyut.cpp
kyut.cpp
)
target_link_libraries(kyut
binaryen_wasm
binaryen_wasm
)
#include <iostream>
int main(int argc, char *argv[])
{
try
{
for (int i = 0; i < argc; i++)
{
std::cout << argv[i] << std::endl;
}
}
catch (const std::exception &e)
{
std::cerr << e.what() << '\n';
int main(int argc, char *argv[]) {
try {
for (int i = 0; i < argc; i++) {
std::cout << argv[i] << std::endl;
}
} catch (const std::exception &e) {
std::cerr << e.what() << '\n';
return 1;
}
return 1;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment