您好,
我的固件有代码样式。 此代码样式在格式化板上工作正常,但仅在.c 文件中工作。
当我在.cpp 文件中使用格式化板时,它不起作用。
有人知道问题可能出在哪里?
巴西,
Markus
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好,
我的固件有代码样式。 此代码样式在格式化板上工作正常,但仅在.c 文件中工作。
当我在.cpp 文件中使用格式化板时,它不起作用。
有人知道问题可能出在哪里?
巴西,
Markus
您好,
这对我来说是行不通的。 我想按这种格式化。
/*
*代码格式化板预览的样本源文件
*
#include <数学.h>
等级点
{
公共:
点(双 x,
双 y)
:X( x ),
Y (y)
{
}
双距离(连接点和其他)连接;
双倍 x;
双 y;
};
双点:距离(连接点和其他)连接
{
Double DX = x - Other.x;(双 DX = x -其他.x;)
双 dy = y - other.y;
返回 sqrt (dx * dx + dy * dy);
}
我在 CCS->Preferences->C/C++格式化板窗口中添加了此 llines,只能在.c-Files 中使用,而不能在.cpp 文件中使用。
您好,
这里是代码样式的 XML-File。
巴西,
Markus