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 root = true
[*] [*]
indent_style = tab indent_style = space
indent_size = 4 indent_size = 4
end_of_line = lf end_of_line = lf
charset = utf-8 charset = utf-8
...@@ -9,6 +9,4 @@ trim_trailing_whitespace = true ...@@ -9,6 +9,4 @@ trim_trailing_whitespace = true
insert_final_newline = true insert_final_newline = true
[*.md] [*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false trim_trailing_whitespace = false
/build/ /build/
/.vscode/
...@@ -9,7 +9,7 @@ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g3 -Og -pg") ...@@ -9,7 +9,7 @@ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g3 -Og -pg")
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG -march=native") set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG -march=native")
if (NOT CMAKE_BUILD_TYPE) if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release) set(CMAKE_BUILD_TYPE Release)
endif (NOT CMAKE_BUILD_TYPE) endif (NOT CMAKE_BUILD_TYPE)
include(ExternalProject) include(ExternalProject)
......
This diff is collapsed.
add_executable(kyut add_executable(kyut
kyut.cpp kyut.cpp
) )
target_link_libraries(kyut target_link_libraries(kyut
binaryen_wasm binaryen_wasm
) )
#include <iostream> #include <iostream>
int main(int argc, char *argv[]) int main(int argc, char *argv[]) {
{ try {
try for (int i = 0; i < argc; i++) {
{ std::cout << argv[i] << std::endl;
for (int i = 0; i < argc; i++) }
{ } catch (const std::exception &e) {
std::cout << argv[i] << std::endl; std::cerr << e.what() << '\n';
}
}
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