BigBahss / vscode-cmantic

C/C++ code generation for VS Code: Generate Definitions, Getters, Setters, and much more.
https://bigbahss.github.io/vscode-cmantic/
MIT License
82 stars 9 forks source link

Better handling of the inline specifier #20

Closed BigBahss closed 3 years ago

BigBahss commented 3 years ago

C-mantic will now handle the inline specifier better. When creating definitions for functions within the a header file, inline will be added to them to prevent ODR violations. Additionally, inline function definitions can now be moved to a source file, given that there is a declaration in the header file, and the inline specifier will be removed. When moving a definition to a header file, inline will be added.