aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/RPC/Scripts/TestConvertScript/Inputs/lldb-enumerations.h
blob: 22dd09097d4314274c489df61dfd11ea30a48084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// This is a truncated version of lldb-enumerations.h used to test that the script
// convert-lldb-header-to-rpc-header.py works correctly. The script changes LLDB references in
// the original file to RPC references.

// The include guard should change from LLDB_LLDB to LLDB_RPC.
// LLDB_LLDB_ENUMERATIONS_H -> LLDB_RPC_ENUMERATIONS_H
#ifndef LLDB_LLDB_ENUMERATIONS_H
#define LLDB_LLDB_ENUMERATIONS_H

// The namespace definition should change to the lldb_rpc namespace, so should the comment that closes it:
// namespace lldb -> namespace lldb_rpc
namespace lldb {} // namespace lldb

// When the lldb namespace is used, the namespace must be replaced with lldb_rpc.
void dummyFunction(lldb::addr_t) {}

// The comment that closes the include guard must change in the same way
// the original guard did:
// #endif // LLDB_LLDB_ENUMERATIONS_H -> #endif // LLDB_RPC_ENUMERATIONS_H
#endif // LLDB_LLDB_ENUMERATIONS_H