06 2022 档案
摘要:使用自定义的格式,先将.clang-format放入当前目录,然后使用如下命令即可: clang-format -style=file test.h 注意file是关键字,不是你自己定义的clang-format文件名字!!!!
阅读全文
摘要:const *使用情况如下,会报出错误:warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 如果改成 *const,则没有错误。原因我认为是:常量指针
阅读全文
摘要:不想用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_
阅读全文