Source Insight 支持AUTOSAR风格的代码解析
问题:
source insight对于Autosar风格的代码不能很好的解析,例如将所有的函数解析为FUNC,变量解析为VAR等。
解决方法:
安装完source insight 后在目录C:\Users\username\Documents\Source Insight 4.0 下有个叫C.tom的文件。
C.tom 语法与C语言#define类似,只需要将Autosar风格的代码中的宏定义添加到这个文件中,然后rebuild即可。
文件添加内容如下:
FUNC(rettype, memclass) rettype
P2VAR(ptrtype, memclass, ptrclass) ptrtype *
P2CONST(ptrtype, memclass, ptrclass) const ptrtype *
CONSTP2VAR(ptrtype, memclass, ptrclass) ptrtype * const
CONSTP2CONST(ptrtype, memclass, ptrclass) const ptrtype * const
P2FUNC(rettype, ptrclass, fctname) rettype (* fctname)
CONST(consttype, memclass) const consttype
VAR(vartype, memclass) vartype
Source Insight 支持AUTOSAR风格的代码解析相关推荐
- Source Insight支持Lua语言
Source Insight支持Lua语言 官网下载 Lua语言支持 https://www.sourceinsight.com/download/custom-languages/ 选择lua.CL ...
- Source insight 支持汇编
把uboot代码添加到SI的项目里面,打开*.S的文件的时候,发现还是黑白色的,感觉很不舒服,我使用的SI的版本是: ver 3.50,通过百度,找到了解决的办法,方法如下: 1:想让*.s 或者 * ...
- source insight搜不到关联代码
分析内核源码的时候使用ss无法跳转到代码定义的地方,网上搜索了一下,这种情况需要重新build一下工程.试了一下,果然有用. Projects->Rebuild Project
- source insight 支持lua /ruby
CLF 下载地址: https://www.sourceinsight.com/download/custom-languages/
- 让source insight支持shell语法高亮
1 下载xclf文件,保存时,把文件后缀名修改为.xclf(链接) ctrl + s保存 2 导入xclf文件,创建Bash语法 3 创建File Type. [其他参考文章]
- 代码管理和编辑工具Source Insight 4.0使用介绍
文章转载自网址:https://www.jianshu.com/p/adca6c2f94f6 Source Insight 4.0 一.什么是SourceInsight 注意:SourceInsigh ...
- Source Insight乱码的解决方案,SI不支持UTF-8字符编码乱码
最近使用source insight查看一些开源代码,显示中文就乱码,据说是因为source insight不支持utf-8编码,默认编码方式为ANSI码.所以需要将utf-8等非ANSI码的文件转换 ...
- 让Source Insight完美支持中文注释 (转)
如何让source insight支持中文注释,解决回车删除,移动光标出现乱码的问题?下面是解决方案: -------Source Insight3 中文操作(左右键.删除和后退键)支持宏------ ...
- source insight代码自动对齐
原文地址:http://xinzero.com/source-insight-astyle.html 一直使用source insight工具阅读与编写代码,以前也推荐过source insight的 ...
最新文章
- 收藏 | 常见的神经网络求导总结!
- vue 带全选和多选的表格怎么写_vue中使用计算属性巧妙的实现多选框的“全选”...
- 数据库查询 添加伪列
- 第二课 壳的介绍以及脱壳常用思路
- php钩子的作用,php中的钩子理解及应用实例分析
- 概率论面试系列第一弹: 贝叶斯公式
- C# 代码优化 性能优化【转】
- 韩国防部长会见美驻韩大使 或谈韩日舰机矛盾
- mysql用com_MySQL 使用教程
- 剖析Caffe源码之Layer
- 删除按钮_SPA PP COGI中禁用删除按钮?
- win98 老电脑 文件导出_UGNX利器:轻量化建模,很多人还傻傻的关注电脑配置
- IE Developer ToolBar,这是IE用于调试页面的小工具
- win8.1桌面上快捷方式的箭头
- android 第三方键盘,6款Android平台第三方输入法横评
- Java实现快速查找(又名二分查找)
- Google AdMob账号注册
- (1)ROS安装时Rosdep 报错解决教程
- android dialog edittext 弹出软件盘,http://gogo.com-官方网站
- 基于照片标记的广州市旅游流特征简单分析(上)