summaryrefslogtreecommitdiff
path: root/include/lldb/Core/FormatEntity.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lldb/Core/FormatEntity.h')
-rw-r--r--include/lldb/Core/FormatEntity.h25
1 files changed, 4 insertions, 21 deletions
diff --git a/include/lldb/Core/FormatEntity.h b/include/lldb/Core/FormatEntity.h
index b58f3b104e46..634d9df2ad83 100644
--- a/include/lldb/Core/FormatEntity.h
+++ b/include/lldb/Core/FormatEntity.h
@@ -1,9 +1,8 @@
//===-- FormatEntity.h ------------------------------------------*- C++ -*-===//
//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+// 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
//
//===----------------------------------------------------------------------===//
@@ -24,20 +23,10 @@
namespace lldb_private {
class Address;
-}
-namespace lldb_private {
class ExecutionContext;
-}
-namespace lldb_private {
class Stream;
-}
-namespace lldb_private {
class StringList;
-}
-namespace lldb_private {
class SymbolContext;
-}
-namespace lldb_private {
class ValueObject;
}
namespace llvm {
@@ -52,7 +41,7 @@ public:
Invalid,
ParentNumber,
ParentString,
- InsertString,
+ EscapeCode,
Root,
String,
Scope,
@@ -111,14 +100,10 @@ public:
CurrentPCArrow
};
- enum FormatType { None, UInt32, UInt64, CString };
-
struct Definition {
const char *name;
const char *string; // Insert this exact string into the output
Entry::Type type;
- FormatType format_type; // uint32_t, uint64_t, cstr, or anything that can
- // be formatted by printf or lldb::Format
uint64_t data;
uint32_t num_children;
Definition *children; // An array of "num_children" Definition entries,
@@ -216,14 +201,12 @@ public:
static size_t AutoComplete(lldb_private::CompletionRequest &request);
- //----------------------------------------------------------------------
// Format the current elements into the stream \a s.
//
// The root element will be stripped off and the format str passed in will be
// either an empty string (print a description of this object), or contain a
// `.`-separated series like a domain name that identifies further
// sub-elements to display.
- //----------------------------------------------------------------------
static bool FormatFileSpec(const FileSpec &file, Stream &s,
llvm::StringRef elements,
llvm::StringRef element_format);