21 lines · plain
1RUN: mkdir -p %t/Outputs2 3# Run the convert script on lldb-enumerations.h.4RUN: %python %p/../../../../../scripts/convert-lldb-header-to-rpc-header.py %p/Inputs/lldb-enumerations.h %t/Outputs/lldb-rpc-enumerations.h5 6# Check the output7RUN: cat %t/Outputs/lldb-rpc-enumerations.h | FileCheck %s8 9# The include guards must change from LLDB_LLDB_ENUMERATIONS_H to LLDB_RPC_ENUMERATIONS_H.10CHECK: #ifndef LLDB_RPC_ENUMERATIONS_H11CHECK: #define LLDB_RPC_ENUMERATIONS_H12 13# Change the namespace to lldb_rpc. Also, the comment that closes the namespace should match the namespace.14CHECK: namespace lldb_rpc {} // namespace lldb_rpc15 16# When the lldb namespace is used, the namespace must be replaced with lldb_rpc.17CHECK: void dummyFunction(lldb_rpc::addr_t) {}18 19# The comment that closes the include guard should match the guard.20CHECK: #endif // LLDB_RPC_ENUMERATIONS_H21