LLDB mainline
ObjCPlusPlusLanguage.h
Go to the documentation of this file.
1//===-- ObjCPlusPlusLanguage.h ----------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_SOURCE_PLUGINS_LANGUAGE_OBJCPLUSPLUS_OBJCPLUSPLUSLANGUAGE_H
10#define LLDB_SOURCE_PLUGINS_LANGUAGE_OBJCPLUSPLUS_OBJCPLUSPLUSLANGUAGE_H
11
14#include "lldb/lldb-private.h"
15
16namespace lldb_private {
17
20
21public:
23
24 ~ObjCPlusPlusLanguage() override = default;
25
28 }
29
30 llvm::StringRef GetUserEntryPointName() const override { return "main"; }
31
32 llvm::StringRef GetNilReferenceSummaryString() override { return "nil"; }
33
34 bool IsSourceFile(llvm::StringRef file_path) const override;
35
36 const Highlighter *GetHighlighter() const override { return &m_highlighter; }
37
38 // Static Functions
39 static void Initialize();
40
41 static void Terminate();
42
44
45 llvm::StringRef GetInstanceVariableName() override { return "self"; }
46
47 static llvm::StringRef GetPluginNameStatic() { return "objcplusplus"; }
48
49 // PluginInterface protocol
50 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
51};
52
53} // namespace lldb_private
54
55#endif // LLDB_SOURCE_PLUGINS_LANGUAGE_OBJCPLUSPLUS_OBJCPLUSPLUSLANGUAGE_H
Annotates source code with color attributes.
Definition: Highlighter.h:91
bool IsSourceFile(llvm::StringRef file_path) const override
static llvm::StringRef GetPluginNameStatic()
llvm::StringRef GetNilReferenceSummaryString() override
Returns the summary string for ValueObjects for which IsNilReference() is true.
llvm::StringRef GetPluginName() override
~ObjCPlusPlusLanguage() override=default
lldb::LanguageType GetLanguageType() const override
llvm::StringRef GetUserEntryPointName() const override
const Highlighter * GetHighlighter() const override
static lldb_private::Language * CreateInstance(lldb::LanguageType language)
llvm::StringRef GetInstanceVariableName() override
A class that represents a running process on the host machine.
LanguageType
Programming language type.
@ eLanguageTypeObjC_plus_plus
Objective-C++.