Unsolved It is any way to set C++ include guards automatycally?
-
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? -
@lukwoz
Yes using the New Wizard it will be inserted.But if you mean in your format. then No. Not that I know of.
-
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.