[Lldb-commits] [lldb] [LLDB] Add AST node classes, functions, etc. for Data Inspection Lang… (PR #95738)
Andy Hippo via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 13 12:37:44 PDT 2024
================
@@ -0,0 +1,459 @@
+//===-- DILAST.h ------------------------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLDB_CORE_DILAST_H
+#define LLDB_CORE_DILAST_H
+
+#include <memory>
+#include <optional>
+#include <string>
+#include <variant>
+#include <vector>
+
+#include "lldb/Core/ValueObject.h"
+#include "lldb/Symbol/Type.h"
+#include "lldb/Symbol/TypeList.h"
+#include "lldb/Target/LanguageRuntime.h"
+#include "lldb/Utility/ConstString.h"
+#include "clang/Basic/SourceLocation.h"
+#include "clang/Basic/TokenKinds.h"
----------------
werat wrote:
DIL doesn't use Clang for parsing and have its own parser, that was the whole point of project :D
It does use Clang's lexer though, mostly for convenience, since it already has all the token types and provides source locations. If there's a strict rule of "not depending on clang libraries", then we can do it, but I'm not sure it's worth it.
https://github.com/llvm/llvm-project/pull/95738
More information about the lldb-commits
mailing list