summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2021-03-23 12:32:45 +0200
committerAndreas Kling <kling@serenityos.org>2021-03-23 18:32:39 +0100
commit84e34d76d847d79e921c05576c1fedc774261306 (patch)
tree56c66c8c5794c922746a1b5d871925ece2512fcf /Base
parent6054a418e525a88e8df1745ddbb91941b7d98d49 (diff)
downloadserenity-84e34d76d847d79e921c05576c1fedc774261306.zip
HackStudio+LanguageServers/Cpp: Show scope of symbols in Locator
Diffstat (limited to 'Base')
-rw-r--r--Base/home/anon/Source/little/other.cpp4
-rw-r--r--Base/home/anon/Source/little/other.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/Base/home/anon/Source/little/other.cpp b/Base/home/anon/Source/little/other.cpp
index a35a49284a..5569d78eeb 100644
--- a/Base/home/anon/Source/little/other.cpp
+++ b/Base/home/anon/Source/little/other.cpp
@@ -1,6 +1,8 @@
#include "other.h"
#include <stdio.h>
+namespace MyNamespace {
+
int func()
{
int x = 1;
@@ -12,3 +14,5 @@ int func()
printf("x+y: %d\n", x + y);
return x + y;
}
+
+}
diff --git a/Base/home/anon/Source/little/other.h b/Base/home/anon/Source/little/other.h
index 54f64fd686..4acda987e7 100644
--- a/Base/home/anon/Source/little/other.h
+++ b/Base/home/anon/Source/little/other.h
@@ -1,3 +1,6 @@
+
+namespace MyNamespace {
+
int func();
#define USE_VAR2
@@ -12,3 +15,5 @@ struct StructInHeader {
int var3;
#endif
};
+
+}