同步操作将从 OpenHarmony/arkcompiler_runtime_core 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Panda libraries can be built using CMake:
$ mkdir build
$ cd build
$ cmake ${panda_dir}
$ make
Where ${panda_dir} is a path to panda dirrectory. These steps will create libraries and some debug targets (if you have installed additional libraries, like google-test, clang-format, clang-tidy, etc.).
In the current build directory structure, each project has its own subdirectory. For example, the vixl library is located inside the third_party/vixl
folder. The root CMakeLists.txt has an entry for this directory:
add_subdirectory(third_party/vixl)
You may use built libraries in your component (e.g., target_link_libraries(tests compiler base vixl)
), but for getting variables please use the INTERFACE includes (e.g. target_include_directories(INTERFACE .)
).
To check style, build the project and then also build style-checker targets (you must install clang-format and clang-tidy with libraries - look at scripts/bootstrap*.sh):
$ make clang_format
Built target clang_format_opt_tests_graph_creation_test.cpp
Built target clang_format_opt_opt.h
...
$ make clang_tidy
Scanning dependencies of target copy_json
Move compile commands to root directory
...
Built target copy_json
Scanning dependencies of target clang_tidy_opt_codegen_codegen.cpp
...
You may force fixes for clang-format issues, with the make clang_force_format
command.
Run make help | grep clang
to see all possible clang-[format|style] targets.
For example, to check style issues in the opt.cpp file, you can use corresponding clang-format target (make clang_format_opt_opt.cpp
) or the clang-tidy one (make clang_tidy_opt_opt.cpp
). To force clang-format code style - make clang_force_format_opt_opt.cpp
.
To check code-style through just one check-system - use make clang_tidy
or make clang_format
.
Generated files:
compile_commands.json
- json nija-commands file to correct execution clang-tidy.CMakeCache.txt
, Makefile
, cmake_install.cmake
and CMakeFiles
folder..clang-tidy
.clang-format
scripts/run-clang-format.py
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。