summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Language/Go/GoFormatterFunctions.h
diff options
context:
space:
mode:
authorRyan Brown <ribrdb@google.com>2015-11-05 00:24:36 +0000
committerRyan Brown <ribrdb@google.com>2015-11-05 00:24:36 +0000
commit2dd84882fcd412d99c4aa199891b08e0f13cdee9 (patch)
tree05cbfc4483ade1c18b548db470da1f0f2682b171 /lldb/source/Plugins/Language/Go/GoFormatterFunctions.h
parent51148e9f942ed4dc959f0dc462c8259c57f1487e (diff)
downloadbcm5719-llvm-2dd84882fcd412d99c4aa199891b08e0f13cdee9.tar.gz
bcm5719-llvm-2dd84882fcd412d99c4aa199891b08e0f13cdee9.zip
Add go data formatters.
Differential Revision: http://reviews.llvm.org/D13878 llvm-svn: 252109
Diffstat (limited to 'lldb/source/Plugins/Language/Go/GoFormatterFunctions.h')
-rw-r--r--lldb/source/Plugins/Language/Go/GoFormatterFunctions.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Language/Go/GoFormatterFunctions.h b/lldb/source/Plugins/Language/Go/GoFormatterFunctions.h
new file mode 100644
index 00000000000..ae1eda0f0c5
--- /dev/null
+++ b/lldb/source/Plugins/Language/Go/GoFormatterFunctions.h
@@ -0,0 +1,43 @@
+//===-- GoFormatterFunctions.h-----------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef liblldb_GoFormatterFunctions_h_
+#define liblldb_GoFormatterFunctions_h_
+
+// C Includes
+#include <stdint.h>
+#include <time.h>
+
+// C++ Includes
+// Other libraries and framework includes
+#include "clang/AST/ASTContext.h"
+
+// Project includes
+#include "lldb/lldb-forward.h"
+
+#include "lldb/Core/ConstString.h"
+#include "lldb/DataFormatters/FormatClasses.h"
+#include "lldb/DataFormatters/TypeSynthetic.h"
+#include "lldb/Target/ExecutionContext.h"
+#include "lldb/Target/ObjCLanguageRuntime.h"
+#include "lldb/Target/Target.h"
+
+namespace lldb_private
+{
+namespace formatters
+{
+
+bool GoStringSummaryProvider(ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options);
+
+SyntheticChildrenFrontEnd *GoSliceSyntheticFrontEndCreator(CXXSyntheticChildren *, lldb::ValueObjectSP);
+
+} // namespace formatters
+} // namespace lldb_private
+
+#endif // liblldb_GoFormatterFunctions_h_
OpenPOWER on IntegriCloud