c++ - Eclipse cdt,基于类接口(interface)C++排序src实现

标签 c++ eclipse eclipse-cdt

如果我有这样的类(class):

//sample.h
class A {
public:
   void method1();
   void method2();
};

实现是这样的:

//sample.cc
void A::method2() {...}
void A::method1() {...}

有没有一种方法/快捷方式可以对类中声明后的实现进行排序? (在类声明中顺序是method1,method2,而在src中顺序是倒过来的)。

最佳答案

目前没有办法做到这一点。

欢迎提出功能请求,可以在 CDT's bug tracker 中提交.

关于c++ - Eclipse cdt,基于类接口(interface)C++排序src实现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38485291/

相关文章:

Eclipse - 指向函数参数提示的指针

eclipse - 如何在eclipse中从文件名获取文件IFile?

c++ - 计算矩阵的秩

c++ - 如何获取指向 Qt 容器中原始数据的指针?

java - "The value of the local variable SoundButton38 is not used"但我想使用它?

c++ - eclipse cdt的代码分析不懂虚继承

C++如何抛弃函数的虚拟性并调用基函数,而不是被覆盖

c++ - MSBuild 2019 忽略 INCLUDE 环境变量

安卓 : How can I use DX option in eclipse?

mysql - Google App Engine 中的本地 MySQL