diff options
Diffstat (limited to 'tests/unit/unittest/data')
9 files changed, 92 insertions, 201 deletions
diff --git a/tests/unit/unittest/data/complete_completer.cpp b/tests/unit/unittest/data/complete_completer.cpp deleted file mode 100644 index a764b7adb4..0000000000 --- a/tests/unit/unittest/data/complete_completer.cpp +++ /dev/null @@ -1,101 +0,0 @@ -void function() -{ - -} - -class Foo; -void functionWithArguments(int i, char *c, const Foo &ref) -{ - -} - -void otherFunction() -{ - -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -void f() -{ - -} diff --git a/tests/unit/unittest/data/complete_completer_main.cpp b/tests/unit/unittest/data/complete_completer_main.cpp new file mode 100644 index 0000000000..877ce23d28 --- /dev/null +++ b/tests/unit/unittest/data/complete_completer_main.cpp @@ -0,0 +1,28 @@ +#include "complete_forwarding_header_1.h" + +void Function() +{ + +} + +class Foo; +void FunctionWithArguments(int i, char *c, const Foo &ref) +{ + +} + +void SavedFunction() +{ + +} + + + + + + + +void f() +{ + +} diff --git a/tests/unit/unittest/data/complete_completer_main_unsaved.cpp b/tests/unit/unittest/data/complete_completer_main_unsaved.cpp new file mode 100644 index 0000000000..38af12b858 --- /dev/null +++ b/tests/unit/unittest/data/complete_completer_main_unsaved.cpp @@ -0,0 +1,28 @@ +#include "complete_forwarding_header_2.h" + +void Function() +{ + +} + +class Foo; +void FunctionWithArguments(int i, char *c, const Foo &ref) +{ + +} + +void UnsavedFunction() +{ + +} + +#define Macro + +int GlobalVariableInUnsavedFile; + +void f() +{ + int VariableInUnsavedFile; + + +} diff --git a/tests/unit/unittest/data/complete_completer_unsaved.cpp b/tests/unit/unittest/data/complete_completer_unsaved.cpp deleted file mode 100644 index 9ec3fed8f4..0000000000 --- a/tests/unit/unittest/data/complete_completer_unsaved.cpp +++ /dev/null @@ -1,100 +0,0 @@ -void function() -{ - -} - -class Foo; -void functionWithArguments(int i, char *c, const Foo &ref) -{ - -} - -void newFunction() -{ - -} - -#define Macro - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -void f() -{ - -} diff --git a/tests/unit/unittest/data/complete_forwarding_header_1.h b/tests/unit/unittest/data/complete_forwarding_header_1.h new file mode 100644 index 0000000000..4905abf3e8 --- /dev/null +++ b/tests/unit/unittest/data/complete_forwarding_header_1.h @@ -0,0 +1,6 @@ +#ifndef COMPLETE_FORWARDING_HEADER_1_H +#define COMPLETE_FORWARDING_HEADER_1_H + +#include <complete_target_header.h> + +#endif // COMPLETE_FORWARDING_HEADER_1_H diff --git a/tests/unit/unittest/data/complete_forwarding_header_2.h b/tests/unit/unittest/data/complete_forwarding_header_2.h new file mode 100644 index 0000000000..dd0c3bc291 --- /dev/null +++ b/tests/unit/unittest/data/complete_forwarding_header_2.h @@ -0,0 +1,7 @@ +#ifndef COMPLETE_FORWARDING_HEADER_2_H +#define COMPLETE_FORWARDING_HEADER_2_H + +#include <complete_target_header.h> + +#endif // COMPLETE_FORWARDING_HEADER_2_H + diff --git a/tests/unit/unittest/data/complete_target_header.h b/tests/unit/unittest/data/complete_target_header.h new file mode 100644 index 0000000000..7d0ba1c845 --- /dev/null +++ b/tests/unit/unittest/data/complete_target_header.h @@ -0,0 +1,7 @@ +#ifndef COMPLETE_TARGET_HEADER_H +#define COMPLETE_TARGET_HEADER_H + +void FunctionInIncludedHeader(); + +#endif // COMPLETE_TARGET_HEADER_H + diff --git a/tests/unit/unittest/data/complete_target_header_changed.h b/tests/unit/unittest/data/complete_target_header_changed.h new file mode 100644 index 0000000000..d631afd91b --- /dev/null +++ b/tests/unit/unittest/data/complete_target_header_changed.h @@ -0,0 +1,8 @@ +#ifndef COMPLETE_TARGET_HEADER_CHANGED_H +#define COMPLETE_TARGET_HEADER_CHANGED_H + +void FunctionInIncludedHeader(); +void FunctionInIncludedHeaderChanged(); + +#endif // COMPLETE_TARGET_HEADER_CHANGED_H + diff --git a/tests/unit/unittest/data/complete_target_header_unsaved.h b/tests/unit/unittest/data/complete_target_header_unsaved.h new file mode 100644 index 0000000000..904a861870 --- /dev/null +++ b/tests/unit/unittest/data/complete_target_header_unsaved.h @@ -0,0 +1,8 @@ +#ifndef COMPLETE_TARGET_HEADER_UNSAVED_H +#define COMPLETE_TARGET_HEADER_UNSAVED_H + +void FunctionInIncludedHeader(); +void FunctionInIncludedHeaderUnsaved(); + +#endif // COMPLETE_TARGET_HEADER_UNSAVED_H + |