Projects
Eulaceura:Factory
uncrustify_vendor
_service:obs_scm:README.md
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:README.md of Package uncrustify_vendor
# uncrustify_vendor #### 介绍 C、C++、C#、ObjectiveC、D、Java、Pawn 和 VALA 的源代码格式化 #### 软件架构 软件架构说明 参考 https://github.com/uncrustify/uncrustify 文件内容 ``` ├── 45b836cff040594994d364ad6fd3f04adc890a26.tar.gz ├── CMakeLists.txt ├── install-patch.diff ├── LICENSE ├── package.xml └── README.md ``` #### 安装教程 1. 下载rpm包 aarch64: ``` wget https://117.78.1.88/build/home:Chenjy3_22.03/openEuler_22.03_LTS_standard_aarch64/aarch64/uncrustify_vendor/ros2-foxy-ros2-uncrustify_vendor-1.4.0-2.oe2203.aarch64.rpm ``` x86_64: ``` wget https://117.78.1.88/build/home:Chenjy3_22.03/openEuler_22.03_LTS_standard_x86_64/x86_64/uncrustify_vendor/ros2-foxy-uncrustify_vendor-1.4.0-2.oe2203.x86_64.rpm ``` 2. 安装rpm包 aarch64: ``` sudo rpm -ivh --nodeps --force ros2-foxy-ros2-uncrustify_vendor-1.4.0-2.oe2203.aarch64.rpm ``` x86_64: ``` sudo rpm -ivh --nodeps --force ros2-foxy-ros2-uncrustify_vendor-1.4.0-2.oe2203.x86_64.rpm ``` #### 使用说明 依赖环境安装: ``` sh /opt/ros/foxy/install_dependence.sh ``` 安装完成以后,在/opt/ros/foxy/目录下如下输出,则表示安装成功。 输出: ``` ├── bin │ └── uncrustify └── share ├── ament_index ├── colcon-core └── uncrustify_vendor ``` Here are ways to run it: ``` $ uncrustify -c mystyle.cfg -f somefile.c -o somefile.c.unc $ uncrustify -c mystyle.cfg -f somefile.c > somefile.c.unc $ uncrustify -c mystyle.cfg somefile.c $ uncrustify -c mystyle.cfg --no-backup somefile.c $ uncrustify -c mystyle.cfg *.c $ uncrustify -c mystyle.cfg --no-backup *.c ``` The `-c` flag selects the configuration file. The `-f` flag specifies the input file. The `-o` flag specifies the output file. If flag `-f` is used without flag `-o` the output will be send to `stdout`. Alternatively multiple or single files that should be processed can be specified at the command end without flags. If the flag `--no-backup` is missing, every file saved with the initial name and an additional suffix (can be changed with --suffix). For more options descriptions call: ```bash $ uncrustify -h ``` Uncrustify usually reads configuration files that are passed via the `-c` flag. If the flag is not provided Uncrustify will try to find a configuration file via the `UNCRUSTIFY_CONFIG` environment variable or a file with the name `uncrustify` or `.uncrustify` in your home folder. To get a list of: - all available options use: ```bash uncrustify --show-config ``` - all available options in a usable configuration file format use: ```bash uncrustify --update-config ``` or ```bash uncrustify --update-config-with-doc ``` As the names suggest both options can produce output that adds newly introduced options to your old configuration file. For this your old configuration file has to be passed via the `-c` flag: ```bash uncrustify --update-config-with-doc -c path/to/your.cfg ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2