06 2022 档案

摘要:使用自定义的格式,先将.clang-format放入当前目录,然后使用如下命令即可: clang-format -style=file test.h 注意file是关键字,不是你自己定义的clang-format文件名字!!!! 阅读全文
posted @ 2022-06-29 17:44 昆山皮皮虾 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-22 15:23 昆山皮皮虾 阅读(21) 评论(0) 推荐(0) 编辑
摘要:const *使用情况如下,会报出错误:warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 如果改成 *const,则没有错误。原因我认为是:常量指针 阅读全文
posted @ 2022-06-16 08:17 昆山皮皮虾 阅读(197) 评论(0) 推荐(0) 编辑
摘要:不想用aux_source_directory,可参考如下: 1 cmake_minimum_required(VERSION 2.6) 2 SET(CMAKE_C_COMPILER "E:/MinGW-W64/mingw64/bin/gcc.exe") 3 project(wdg_autosar_ 阅读全文
posted @ 2022-06-10 13:31 昆山皮皮虾 阅读(922) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示