From bcbbb54b70b43157e8b60b40429e83e62718b2e1 Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Fri, 19 Oct 2018 18:38:27 +0200 Subject: [PATCH] res: No std header files in tutorial --- bin/app/user/projects/tutorial/src/graph_tutorial_6.h | 8 ++++---- bin/app/user/projects/tutorial/src/string.h | 8 ++++++++ bin/app/user/projects/tutorial/tutorial.srctrlprj | 3 +++ 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 bin/app/user/projects/tutorial/src/string.h diff --git a/bin/app/user/projects/tutorial/src/graph_tutorial_6.h b/bin/app/user/projects/tutorial/src/graph_tutorial_6.h index bed0749b..c40de1d2 100644 --- a/bin/app/user/projects/tutorial/src/graph_tutorial_6.h +++ b/bin/app/user/projects/tutorial/src/graph_tutorial_6.h @@ -2,7 +2,7 @@ #define GRAPH_TUTORIAL_6_H -#include +#include "String.h" class BoringClass { @@ -20,7 +20,7 @@ class BoringClass // but I guess you will figure it out on your own. One last thing: If you see // an element with a hatched background please call us. It's a runaway! // Just kidding. Those are elements that are used within your code, but have no -// definition anywhere in your source folder (like the "string" symbol on the +// definition anywhere in your source folder (like the "String" symbol on the // right hand side of the graph). So if you click them, Sourcetrail will // display all the relations for the element, but the code view won't show a // definition. If you want to learn more about Sourcetrail, use the graph to go @@ -30,13 +30,13 @@ class BoringClass class click_me_to_continue { - void method(std::string s) + void method(String s) { the_central_hub(); } }; -class NothingToSeeHere: public BoringClass, public click_me_to_continue +class NothingToSeeHere: public BoringClass, public click_me_to_continue { }; diff --git a/bin/app/user/projects/tutorial/src/string.h b/bin/app/user/projects/tutorial/src/string.h new file mode 100644 index 00000000..3cf5203e --- /dev/null +++ b/bin/app/user/projects/tutorial/src/string.h @@ -0,0 +1,8 @@ +#ifndef STRING_H +#define STRING_H + +class String +{ +}; + +#endif // STRING_H diff --git a/bin/app/user/projects/tutorial/tutorial.srctrlprj b/bin/app/user/projects/tutorial/tutorial.srctrlprj index 9085f23a..03e62776 100644 --- a/bin/app/user/projects/tutorial/tutorial.srctrlprj +++ b/bin/app/user/projects/tutorial/tutorial.srctrlprj @@ -27,6 +27,9 @@ 0 + + src/string.h + Tutorial Source Group .cpp