- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
astyle 是否有一个选项可以做类似的事情:
"For the given list of files, list the files that *would be* modified by astyle."
所以,基本上把不符合astyle的文件列出来,但实际上不去改。我浏览了手册页,找不到任何有用的东西。 astyle 创建 .orig 文件,我可以使用该信息,但我不想弄乱驱动器,即使 astyle 可以在事后进行清除。我真的很想要这样的选择。
最佳答案
astyle
有一个 --dry-run
option你可以用来做这个
--dry-run
Perform a trial run with no changes made to the files. The report will be output as usual.
关于c++ - 我可以列出将使用 astyle 格式化的文件吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27445320/
$cd astyle/build/mac $make $bin/astyle 我无法设置本地语言环境,请恢复为英语 最佳答案 astyle 正在测试 LC_ALL 环境变量的值。您可以使用 $ ech
我刚刚开始使用astyle。 是否可以对文件夹中的所有文件运行样式? 如果文件夹中包含不同格式的文件,是否可以明智地选择仅C / C ++文件进行格式化? 是否可以将astyle链接到gedit,以便
我刚刚安装了 vim-autoformat 和 astyle 来在 vim 中格式化我的 c/c++ 代码。一切似乎都正常,但每次我运行它时它都会在文件末尾添加一个换行符。即使有一个(或多个)。我试图
我的项目中有以下代码: class RangeConverter { private: struct Converter { double Minimu
我有以下代码片段,这正是我想要的: #include int main(int argc, char* argv[]) { for (auto i: { 1, 2, 3 }) {
我最近遇到了一个我无法弄清楚的 astyle 使用问题。我不确定这是否是一个错误,或者我只是错误地使用了 astyle 工具。 我正在尝试使用“--exclude”选项从处理中省略文件和目录,但继续出
我有一个程序,它使用 Astyle 将代码格式化为 1TBS。所以,如果我有这样的代码 if(condition) func(a, b); 改成这样 if(condition) { f
我尝试使用 astyle 来风格化我的代码,但是到了 some_structure[some_index]. method_call(some_parameters); 它会变成 some_s
如何使用 astyle 从我的代码中删除多余的空格?例如我想转换以下代码: void foo ( int a , int c ) { d = a+ c; } 为此: v
astyle 是否有一个选项可以做类似的事情: "For the given list of files, list the files that *would be* modified by ast
我正在使用具有以下规范的 windows emacs。 GNU Emacs 23.0.91.1 (i386-mingw-nt5.1.2600) of 2009-02-26 我希望能够运行 astyle
我刚开始使用 Astyle 和 VS-2013 for C++。我想将其配置为遵循 Google C++ style guide .我注意到 Astyle 允许导入配置文件,所以我想知道是否有人完成了
代码: #define MACRO(A,B) foo(A); bar(B) if(true) { MACRO(A,B); } Astyle 将移除宏调用周围的括号 if(true) M
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
根据Linux kernel coding style , 如果条件语句只有一个分支是单个语句,则两个分支中都应使用大括号。例如: if (condition) { d
我正在尝试让 AStyle 与 Vim 一起使用,以便我可以使用“=”键重新缩进各个代码部分。例如,我希望能够键入我常用的 =iB 来使用 AStyle 而不是内置的缩进器来缩进当前的代码块。 我尝试
我继承了大量格式化如下的代码: void Foo::bar ( ) // short documentation { // code } void Foo::bar() { // cod
我总是在不知不觉中在关键字之间或标识符之间键入更多空格。如何配置 astyle 配置文件以自动将它们减少到一个空间?例如: int main(int argc, const char
将函数的左大括号移动到下一行是一种常见的做法。如何使用 astyle(代码美化器)在类方法中应用它? 例子: // this is an initial C++ code class Class {
我正在寻找一个 Astyle 选项来缩进 C++ 构造函数: foo::foo(int param) : m_param(param) , m_x(0) , m_y(0) 收件人: foo::
我是一名优秀的程序员,十分优秀!