Generate C++ header files following Google Style Guide. Use when creating new header files or asking for a header template.
Documentation
C++ Header File Template Generator
Generate header files following Google C++ Style Guide conventions.
Usage
Provide: class name, namespace, and file path to generate a compliant header.
Template
// Copyright [year] [copyright holder]//// Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance with the License.#ifndef [
Include Guard Format
Convert path to uppercase with underscores:
File Path
Guard
foo/bar/baz.h
FOO_BAR_BAZ_H_
src/http/parser.h
SRC_HTTP_PARSER_H_
my_project/utils.h
MY_PROJECT_UTILS_H_
Struct Template
For passive data with public members and no invariants: