Git Product home page Git Product logo

vscode-c-cpp-definition-generator's People

Contributors

antieternity 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

Watchers

 avatar  avatar  avatar

vscode-c-cpp-definition-generator's Issues

Cpp function generator does not work properly

Environment : WSL2 ubuntu 20.04

Try to generate function from header from a class.
Result : Almost get perfect empty function definition, however always got a "std;::" prefix to my function. No idea why does it generate.
Used "using namespace std" then removed it, the result is still the same.

example:
void std;::SomeClass::someUpdateFunction(void *configList) {

}
Any idea?
Thanks in advance,
Adam Herczig

Template Class definition

Extention can't recognize template class.

For this Class:
template <typename T, std::size_t dim> class Vector{ bool operator!() const; }
Makes :
bool Vector::operator!() const{}

Should be:
template <typename T, std::size_t dim> bool Vector<T, dim>::operator!() const{}

Plugin does not work in Ubuntu 21.04

Hello, Team!

I installed the plugin for VSCode 1.60 in Ubuntu 21.04, but the plugin does not generate the function definition/declaration as expected. Can you please support?

Doesn't parse class name properly in inheritance

Header

class Base {}
class Concrete: Base {
public:
int foo();
}

=> generates

int Concrete:::foo() { //FIXME: 3 colons ":::" are generated 

}

Possible error?
No space between "Concrete" and ":" in header file.
This issue doesn't appear when I put space between "Concrete" and ":".

Cannot get a namespace as a prefix before return type of the new create funciton

Environment: WSL2 windows 10 19044.1826

Try to generate a none void function from the header with namespace

Result: Almost get perfect function definition, however always cannot get a namespace as a prefix before return type.

example:
header.h

namespace A {
Foo;
Foo* bar();
}

The result after running the command "create define and jump to it"
header.cpp
Foo* A::bar() {
}
expected Result:

A::Foo* A::bar() {
}

Thank you so much for your attention and participation.

This extension doesn't work when used with Unreal engine macros and preprocessor directives

I wonder what needs changing about the parser to make it work with UE4 C++.

The error message given is the following:

grammer error---struct FKey; UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) ) class BULLCOWGAME_API UTerminal : public UActorComponent {

This is the general structure of an Unreal class:

#pragma once

#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "GameFramework/Actor.h"
#include "Terminal.generated.h"

DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FTextUpdateSignature, FString, Text);

struct FKey;

UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class BULLCOWGAME_API UTerminal : public UActorComponent
{
	GENERATED_BODY()
private:
	void NewFunction();
};

BUG: Cannot generate several constructor from header file

If you write multiple constructors in a header file and then generate source files from that header file,

#ifndef A_H
#define A_H

class A
{
public:
    A();
    A(int x);
    A(std::string h);
    ~A();
}

#endif /* A_H */

there will only be one constructor of A and the others will be missing, see the following

#include "A.h"


A::A(std::string h) {
    
}

A::~A() {
    
}

I believe this is a bug.

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.