~plattfot/newfile

Functions to setup a new source file in emacs

22c1257 Bump up minor: 1.4.1 -> 1.5.0

26 days ago

22c1257 Bump up minor: 1.4.1 -> 1.5.0

26 days ago

#Introduction

Setup a new file, at the moment it only supports C++. It will add a header, namespaces (based on the directory structure) and old fasion include guard. And optionally a boilerplate for the license.

For example in an empty file baz.hpp calling newfile-setup with the namespaces Foo Bar:

/**
 * \author Author Dent (not@real.email)
 *
 * \date   May 2022
 */

#ifndef FOO_BAR_BAZ_HPP
#define FOO_BAR_BAZ_HPP

namespace Foo {
namespace Bar {

} // namespace Bar
} // namespace Foo

#endif // FOO_BAR_BAZ_HPP