It is any way to set C++ include guards automatycally?
Unsolved
General and Desktop
-
Hi,
I typically named C++ include guards in the format
e.g. //src/project/file.hpp
#ifndef SRC_PROJECT_FILE_HPPIs there any way to generate this format automatically
in qt creator? -
Just a note
You cannot use
#pragma once
? -
I prefer based on the full path in a project's source tree. If somebody knows how to automate it in qt I will be grateful :)
@lukwoz
well those wizards are editable
http://doc.qt.io/qtcreator/creator-project-wizards.htmlBut i do not know if there is a key for the full path as its not inserted into project yet.