From eaa8dcfcc9deabb906cc09bf31fc17ab6f343ff4 Mon Sep 17 00:00:00 2001 From: Lauro Oyen <15063951+laurooyen@users.noreply.github.com> Date: Mon, 2 Dec 2024 20:46:43 +0100 Subject: Move c++ parsing code from slang-cpp-extractor to static library (#5675) * Move c++ parsing code from slang-cpp-extractor to static library * Format code * Remove relative includes --------- Co-authored-by: slangbot Co-authored-by: Yong He --- tools/slang-cpp-extractor/macro-writer.cpp | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'tools/slang-cpp-extractor/macro-writer.cpp') diff --git a/tools/slang-cpp-extractor/macro-writer.cpp b/tools/slang-cpp-extractor/macro-writer.cpp index 3f0e0a5fa..324a48efd 100644 --- a/tools/slang-cpp-extractor/macro-writer.cpp +++ b/tools/slang-cpp-extractor/macro-writer.cpp @@ -1,22 +1,20 @@ #include "macro-writer.h" -#include "../../source/core/slang-list.h" -#include "../../source/core/slang-string.h" +#include "compiler-core/slang-diagnostic-sink.h" +#include "core/slang-io.h" +#include "core/slang-list.h" +#include "core/slang-string.h" +#include "core/slang-writer.h" #include "slang-com-helper.h" -// #include "../../source/core/slang-string-util.h" -#include "../../source/compiler-core/slang-diagnostic-sink.h" -#include "../../source/core/slang-io.h" -#include "../../source/core/slang-writer.h" -// #include "../../source/compiler-core/slang-name.h" - -#include "diagnostics.h" -#include "file-util.h" -#include "node-tree.h" -#include "options.h" +#include "slang-cpp-parser/diagnostics.h" +#include "slang-cpp-parser/file-util.h" +#include "slang-cpp-parser/node-tree.h" +#include "slang-cpp-parser/options.h" namespace CppExtract { using namespace Slang; +using namespace CppParse; SLANG_FORCE_INLINE static void _indent(Index indentCount, StringBuilder& out) { -- cgit v1.2.3