res: No std header files in tutorial

This commit is contained in:
Eberhard Graether
2018-10-19 18:38:27 +02:00
parent 842bce8b32
commit bcbbb54b70
3 changed files with 15 additions and 4 deletions
@@ -2,7 +2,7 @@
#define GRAPH_TUTORIAL_6_H #define GRAPH_TUTORIAL_6_H
#include <string> #include "String.h"
class BoringClass 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 // 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! // 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 // 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 // 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 // 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 // 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 class click_me_to_continue
{ {
void method(std::string s) void method(String s)
{ {
the_central_hub(); the_central_hub();
} }
}; };
class NothingToSeeHere: public BoringClass, public click_me_to_continue class NothingToSeeHere: public BoringClass, public click_me_to_continue
{ {
}; };
@@ -0,0 +1,8 @@
#ifndef STRING_H
#define STRING_H
class String
{
};
#endif // STRING_H
@@ -27,6 +27,9 @@
</target> </target>
<target_options_enabled>0</target_options_enabled> <target_options_enabled>0</target_options_enabled>
</cross_compilation> </cross_compilation>
<exclude_filters>
<exclude_filter>src/string.h</exclude_filter>
</exclude_filters>
<name>Tutorial Source Group</name> <name>Tutorial Source Group</name>
<source_extensions> <source_extensions>
<source_extension>.cpp</source_extension> <source_extension>.cpp</source_extension>