资源简介
AStyle是一款代码格式化工具,可安装在KEIL软件中,可实现一件格式化代码。

代码片段和文件信息
// ASBeautifier.cpp
// Copyright (c) 2018 by Jim Pattee .
// This code is licensed under the MIT License.
// License.md describes the conditions under which this software may be distributed.
//-----------------------------------------------------------------------------
// headers
//-----------------------------------------------------------------------------
#include “astyle.h“
#include
//-----------------------------------------------------------------------------
// astyle namespace
//-----------------------------------------------------------------------------
namespace astyle {
//
// this must be global
static int g_preprocessorCppExternCBrace;
//-----------------------------------------------------------------------------
// ASBeautifier class
//-----------------------------------------------------------------------------
/**
* ASBeautifier‘s constructor
* This constructor is called only once for each source file.
* The cloned ASBeautifier objects are created with the copy constructor.
*/
ASBeautifier::ASBeautifier()
{
waitingBeautifierStack = nullptr;
activeBeautifierStack = nullptr;
waitingBeautifierStackLengthStack = nullptr;
activeBeautifierStackLengthStack = nullptr;
headerStack = nullptr;
tempStacks = nullptr;
parenDepthStack = nullptr;
blockStatementStack = nullptr;
parenStatementStack = nullptr;
braceBlockStateStack = nullptr;
continuationIndentStack = nullptr;
continuationIndentStackSizeStack = nullptr;
parenIndentStack = nullptr;
preprocIndentStack = nullptr;
sourceIterator = nullptr;
isModeManuallySet = false;
shouldForceTabIndentation = false;
setSpaceIndentation(4);
setContinuationIndentation(1);
setMinConditionalIndentOption(MINCOND_TWO);
setMaxContinuationIndentLength(40);
classInitializerIndents = 1;
tabLength = 0;
setClassIndent(false);
setModifierIndent(false);
setSwitchIndent(false);
setCaseIndent(false);
setBlockIndent(false);
setBraceIndent(false);
setBraceIndentVtk(false);
setNamespaceIndent(false);
setAfterParenIndent(false);
setLabelIndent(false);
setEmptyLineFill(false);
setCstyle();
setPreprocDefineIndent(false);
setPreprocConditionalIndent(false);
setAlignMethodColon(false);
// initialize ASBeautifier member vectors
beautifierFileType = 9; // reset to an invalid type
headers = new vector;
nonParenHeaders = new vector;
assignmentOperators = new vector;
nonAssignmentOperators = new vector;
preBlockStatements = new vector;
preCommandHeaders = new vector;
indentableHeaders = new vector;
}
/**
* ASBeautifier‘s copy constructor
* Copy the vector objects to vectors in the new ASBeautifier
* object so the new object can be destroyed without deleting
* the vector objects in the copied vector.
* This is the reason a copy constructor is ne
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 595456 2018-01-12 02:42 Ast
文件 355 2018-01-12 02:42 Ast
文件 2118 2018-01-12 02:42 Ast
文件 2242 2018-01-12 02:42 Ast
文件 1620 2018-01-12 02:42 Ast
文件 2214 2018-01-12 02:42 Ast
文件 347 2018-01-12 02:42 Ast
文件 3198 2018-01-12 02:42 Ast
文件 3426 2018-01-12 02:42 Ast
文件 1864 2018-01-12 02:42 Ast
文件 3518 2018-01-12 02:42 Ast
文件 5558 2018-01-12 02:42 Ast
文件 14621 2018-01-12 02:42 Ast
文件 1493 2018-01-12 02:42 Ast
文件 13734 2018-01-12 02:42 Ast
文件 1273 2018-01-12 02:42 Ast
文件 1622 2018-01-12 02:42 Ast
文件 14034 2018-01-12 02:42 Ast
文件 1273 2018-01-12 02:42 Ast
文件 1625 2018-01-12 02:42 Ast
文件 10716 2018-01-12 02:42 Ast
文件 1273 2018-01-12 02:42 Ast
文件 1622 2018-01-12 02:42 Ast
文件 1610 2018-01-12 02:42 Ast
文件 4839 2018-01-12 02:42 Ast
文件 14308 2018-01-12 02:42 Ast
文件 1867 2018-01-12 02:42 Ast
文件 13871 2018-01-12 02:42 Ast
文件 1647 2018-01-12 02:42 Ast
文件 1615 2018-01-12 02:42 Ast
............此处省略150个文件信息
- 上一篇:STM32汉字显示实验例程
- 下一篇:大屏展示源码
相关资源
- 38k单片机红外发送代码、keil
- 2410的led测试程序keil可以用
- keil vcom windows 7 64bit 驱动
- 基于8051单片机的红外接收程序
- STM32 SRAM启动的 KeiL 配置
- 基于AT89C51的十字路口交通灯设计pro
- keil调试仿真技巧-从入门到精通
- 飞控代码源码-台湾飞控大神版
- Keil4破解版下载150129
- 基于51单片机的十字路口交通灯Protu
- keilc51源代码
- 如何使用KEIL MDK程序
- RTOS RTX(V1)keil自带的操作系统STM32可
- proteus仿真、keil4、DHT11、LCD1602
- 实现按键控制设定温度值,控制继电
- Keil.STM32L0xx_DFP.2.0.0.pack
- Keil5下的STM32F407程序
- stm32f103c8t6 Keil led工程
- 超声波车速测量系统设计
- STM32 MODBUS_RTU从站程序,KEIL编写
- Keil Array Visualization 1.4.1 beta
- STM32F103内部Flash读写源码可直接运行
- Keil uVision4 汉化包
- keil5软件最新好用的汉化版本资源
- 单片机 PROTUES仿真大全(附带原理图)
- STM32CUEB关于KEIL5、stm32f103c8t6时钟配置
- GY-9960模块Keil 和Arduino驱动程序
- AD9910驱动+PDF调幅频,ram模式,drg模式
- C8051F最新驱动
- 用KEIL编写的MODBUS_RTU从站程序STM32
评论
共有 条评论