Details
-
Bug
-
Resolution: Done
-
P4: Low
-
Qt Creator 3.4.2
-
Qt 5.5 SDK on Ubuntu 15.10
Description
Steps to reproduce:
1) Select New file or project
2) Select "C++ Class"
3) Set class name as Foo, header as "foo.hpp" and source as "foo.cpp"
4) Observe, that the generated header file contains include guard:
#ifndef FOO_H
#define FOO_H
#endif // FOO_H
However, FOO_HPP would be expected as the given file name was "foo.hpp".
This is also inconsistent behavior, because this works correctly if you select "C++ Header File" in step 2. In that case the generated include guard is FOO_HPP as expected.