Git Product home page Git Product logo

cpp-mode's People

Contributors

chxuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cpp-mode's Issues

:CopyCode<cr>出错

1.测试文件

//vim.h
#ifndef vim_H
#define vim_H

class Vim{
public:
    inline int func(int a);
private:
    int a;
};
#endif

2..执行<leader> y报错

    inline int func(int a);                                                                                                                  
处理 function <SNR>91_copy_code[3]..cppmode#gen_fun#copy_function[7]..<SNR>137_get_class_name[2]..<SNR>137_parse_class_name 时发生错误:      
第    1 行:                                                                                                                                  
E684: List 索引超出范围: 2                                                                                                                   
E15: 无效的表达式: matchlist(a:text, '\(\<class\>\|\<struct\>\)\s\+\(\w\+\)')[2]

3.执行<leader> p复制结果如下

0::int func(int a)
{

}

函数跳转和.h.cpp跳转遇到问题

当.h和.cpp文件不在同一个文件夹的时候,遇到两个问题
1、.h和.cpp无法互相跳转
2、可以从函数实现跳转到声明,但无法从声明跳转到实现

但如果.h和.cpp在同一个文件夹的时候,是没有问题

格式问题

class X {
}

这样的格式复制函数会报错
另外希望提供一个开关,粘贴也能成这种格式

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.