From 8a13acd3b867dc3cf4455f3387123ea3df89725b Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Fri, 10 Mar 2017 18:24:09 -0800 Subject: [PATCH] testupdate --- tests/outline/{outline.cc => outline.h} | 2 + tests/outline/outline2.h | 63 +++++++++++++++++++++++++ 2 files changed, 65 insertions(+) rename tests/outline/{outline.cc => outline.h} (94%) create mode 100644 tests/outline/outline2.h diff --git a/tests/outline/outline.cc b/tests/outline/outline.h similarity index 94% rename from tests/outline/outline.cc rename to tests/outline/outline.h index 3eb6dd6c..5b4473f7 100644 --- a/tests/outline/outline.cc +++ b/tests/outline/outline.h @@ -1,6 +1,8 @@ #include struct MergeableUpdate { + int a; + int b; std::vector to_add; }; diff --git a/tests/outline/outline2.h b/tests/outline/outline2.h new file mode 100644 index 00000000..ed3f7d9e --- /dev/null +++ b/tests/outline/outline2.h @@ -0,0 +1,63 @@ +#pragma once + +#include +#include + +struct CompilationEntry { + std::string directory; + std::string filename; + std::vector args; +}; + +std::vector LoadCompilationEntriesFromDirectory(const std::string& project_directory); + +/* +OUTPUT: +{ + "types": [{ + "id": 0, + "usr": "c:@S@CompilationEntry", + "short_name": "CompilationEntry", + "qualified_name": "CompilationEntry", + "definition": "1:6:8", + "vars": [0, 1, 2], + "uses": ["*1:6:8", "*1:12:13"] + }], + "funcs": [{ + "id": 0, + "usr": "c:@F@LoadCompilationEntriesFromDirectory#&1$@N@std@S@basic_string>#C#$@N@std@S@char_traits>#C#$@N@std@S@allocator>#C#", + "short_name": "LoadCompilationEntriesFromDirectory", + "qualified_name": "LoadCompilationEntriesFromDirectory", + "declarations": ["1:12:31"], + "uses": ["1:12:31"] + }], + "vars": [{ + "id": 0, + "usr": "c:@S@CompilationEntry@FI@directory", + "short_name": "directory", + "qualified_name": "CompilationEntry::directory", + "definition": "1:7:15", + "variable_type": 1, + "declaring_type": 0, + "uses": ["1:7:15"] + }, { + "id": 1, + "usr": "c:@S@CompilationEntry@FI@filename", + "short_name": "filename", + "qualified_name": "CompilationEntry::filename", + "definition": "1:8:15", + "variable_type": 1, + "declaring_type": 0, + "uses": ["1:8:15"] + }, { + "id": 2, + "usr": "c:@S@CompilationEntry@FI@args", + "short_name": "args", + "qualified_name": "CompilationEntry::args", + "definition": "1:9:28", + "variable_type": 2, + "declaring_type": 0, + "uses": ["1:9:28"] + }] +} +*/ \ No newline at end of file