Autogen: Extend the SameName test with same name but different extension files

This commit is contained in:
Sebastian Holtermann
2019-02-05 14:58:37 +01:00
parent f47d980f73
commit 1f802295f2
6 changed files with 68 additions and 1 deletions

View File

@@ -17,6 +17,10 @@ add_executable(sameName
ccc/item.cpp
ccc/data.qrc
item.cpp
object.h
object.h++
object.hpp
object.hxx
data.qrc
main.cpp
)

View File

@@ -3,14 +3,25 @@
#include "bbb/aaa/item.hpp"
#include "bbb/item.hpp"
#include "ccc/item.hpp"
#include "item.hpp"
#include "object.h"
#include "object.h++"
#include "object.hpp"
#include "object.hxx"
int main(int argv, char** args)
{
// Object instances
// Item instances
::Item item;
::aaa::Item aaa_item;
::aaa::bbb::Item aaa_bbb_item;
::bbb::Item bbb_item;
::bbb::aaa::Item bbb_aaa_item;
::ccc::Item ccc_item;
// Object instances
::Object_h obj_h;
::Object_hplpl obj_hplpl;
::Object_hpp obj_hpp;
::Object_hxx obj_hxx;
return 0;
}

View File

@@ -0,0 +1,13 @@
#ifndef OBJECT_H
#define OBJECT_H
#include <QObject>
class Object_h : public QObject
{
Q_OBJECT
Q_SLOT
void go(){};
};
#endif

View File

@@ -0,0 +1,13 @@
#ifndef OBJECT_HPLPL
#define OBJECT_HPLPL
#include <QObject>
class Object_hplpl : public QObject
{
Q_OBJECT
Q_SLOT
void go(){};
};
#endif

View File

@@ -0,0 +1,13 @@
#ifndef OBJECT_HPP
#define OBJECT_HPP
#include <QObject>
class Object_hpp : public QObject
{
Q_OBJECT
Q_SLOT
void go(){};
};
#endif

View File

@@ -0,0 +1,13 @@
#ifndef OBJECT_HXX
#define OBJECT_HXX
#include <QObject>
class Object_hxx : public QObject
{
Q_OBJECT
Q_SLOT
void go(){};
};
#endif