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.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'tools/slang-cpp-extractor/macro-writer.h') diff --git a/tools/slang-cpp-extractor/macro-writer.h b/tools/slang-cpp-extractor/macro-writer.h index 0cbf85fb3..aa23c96ef 100644 --- a/tools/slang-cpp-extractor/macro-writer.h +++ b/tools/slang-cpp-extractor/macro-writer.h @@ -1,14 +1,14 @@ -#ifndef CPP_EXTRACT_MACRO_WRITER_H -#define CPP_EXTRACT_MACRO_WRITER_H +#pragma once -#include "../../source/compiler-core/slang-diagnostic-sink.h" -#include "diagnostics.h" -#include "node-tree.h" -#include "options.h" +#include "compiler-core/slang-diagnostic-sink.h" +#include "slang-cpp-parser/diagnostics.h" +#include "slang-cpp-parser/node-tree.h" +#include "slang-cpp-parser/options.h" namespace CppExtract { using namespace Slang; +using namespace CppParse; /* A class that writes out macros that define type hierarchies, as well as fields of types */ class MacroWriter @@ -39,5 +39,3 @@ protected: }; } // namespace CppExtract - -#endif -- cgit v1.2.3