diff --git a/lldb/include/lldb/Core/Mangled.h b/lldb/include/lldb/Core/Mangled.h --- a/lldb/include/lldb/Core/Mangled.h +++ b/lldb/include/lldb/Core/Mangled.h @@ -8,7 +8,6 @@ #ifndef LLDB_CORE_MANGLED_H #define LLDB_CORE_MANGLED_H -#if defined(__cplusplus) #include "lldb/lldb-enumerations.h" #include "lldb/lldb-forward.h" @@ -286,5 +285,4 @@ } // namespace lldb_private -#endif // #if defined(__cplusplus) #endif // LLDB_CORE_MANGLED_H diff --git a/lldb/include/lldb/Host/Editline.h b/lldb/include/lldb/Host/Editline.h --- a/lldb/include/lldb/Host/Editline.h +++ b/lldb/include/lldb/Host/Editline.h @@ -27,7 +27,6 @@ #ifndef LLDB_HOST_EDITLINE_H #define LLDB_HOST_EDITLINE_H -#if defined(__cplusplus) #include "lldb/Host/Config.h" @@ -408,5 +407,4 @@ }; } -#endif // #if defined(__cplusplus) #endif // LLDB_HOST_EDITLINE_H diff --git a/lldb/include/lldb/Host/Terminal.h b/lldb/include/lldb/Host/Terminal.h --- a/lldb/include/lldb/Host/Terminal.h +++ b/lldb/include/lldb/Host/Terminal.h @@ -8,7 +8,6 @@ #ifndef LLDB_HOST_TERMINAL_H #define LLDB_HOST_TERMINAL_H -#if defined(__cplusplus) #include "lldb/lldb-private.h" #include "llvm/Support/Error.h" @@ -172,5 +171,4 @@ } // namespace lldb_private -#endif // #if defined(__cplusplus) #endif // LLDB_HOST_TERMINAL_H diff --git a/lldb/include/lldb/Host/posix/PipePosix.h b/lldb/include/lldb/Host/posix/PipePosix.h --- a/lldb/include/lldb/Host/posix/PipePosix.h +++ b/lldb/include/lldb/Host/posix/PipePosix.h @@ -8,7 +8,6 @@ #ifndef LLDB_HOST_POSIX_PIPEPOSIX_H #define LLDB_HOST_POSIX_PIPEPOSIX_H -#if defined(__cplusplus) #include "lldb/Host/PipeBase.h" @@ -76,5 +75,4 @@ } // namespace lldb_private -#endif // #if defined(__cplusplus) #endif // LLDB_HOST_POSIX_PIPEPOSIX_H diff --git a/lldb/include/lldb/Utility/DataBuffer.h b/lldb/include/lldb/Utility/DataBuffer.h --- a/lldb/include/lldb/Utility/DataBuffer.h +++ b/lldb/include/lldb/Utility/DataBuffer.h @@ -8,7 +8,6 @@ #ifndef LLDB_UTILITY_DATABUFFER_H #define LLDB_UTILITY_DATABUFFER_H -#if defined(__cplusplus) #include #include @@ -149,5 +148,4 @@ } // namespace lldb_private -#endif /// #if defined(__cplusplus) #endif // LLDB_UTILITY_DATABUFFER_H diff --git a/lldb/include/lldb/Utility/DataEncoder.h b/lldb/include/lldb/Utility/DataEncoder.h --- a/lldb/include/lldb/Utility/DataEncoder.h +++ b/lldb/include/lldb/Utility/DataEncoder.h @@ -9,8 +9,6 @@ #ifndef LLDB_UTILITY_DATAENCODER_H #define LLDB_UTILITY_DATAENCODER_H -#if defined(__cplusplus) - #include "lldb/lldb-defines.h" #include "lldb/lldb-enumerations.h" #include "lldb/lldb-forward.h" @@ -301,5 +299,4 @@ } // namespace lldb_private -#endif // #if defined (__cplusplus) #endif // LLDB_UTILITY_DATAENCODER_H diff --git a/lldb/include/lldb/lldb-forward.h b/lldb/include/lldb/lldb-forward.h --- a/lldb/include/lldb/lldb-forward.h +++ b/lldb/include/lldb/lldb-forward.h @@ -9,8 +9,6 @@ #ifndef LLDB_LLDB_FORWARD_H #define LLDB_LLDB_FORWARD_H -#if defined(__cplusplus) - #include // lldb forward declarations @@ -465,5 +463,4 @@ } // namespace lldb -#endif // #if defined(__cplusplus) #endif // LLDB_LLDB_FORWARD_H diff --git a/lldb/include/lldb/lldb-private-interfaces.h b/lldb/include/lldb/lldb-private-interfaces.h --- a/lldb/include/lldb/lldb-private-interfaces.h +++ b/lldb/include/lldb/lldb-private-interfaces.h @@ -9,8 +9,6 @@ #ifndef LLDB_LLDB_PRIVATE_INTERFACES_H #define LLDB_LLDB_PRIVATE_INTERFACES_H -#if defined(__cplusplus) - #include "lldb/lldb-enumerations.h" #include "lldb/lldb-forward.h" #include "lldb/lldb-private-enumerations.h" @@ -131,6 +129,4 @@ /// \} } // namespace lldb_private -#endif // #if defined(__cplusplus) - #endif // LLDB_LLDB_PRIVATE_INTERFACES_H diff --git a/lldb/include/lldb/lldb-private-types.h b/lldb/include/lldb/lldb-private-types.h --- a/lldb/include/lldb/lldb-private-types.h +++ b/lldb/include/lldb/lldb-private-types.h @@ -9,8 +9,6 @@ #ifndef LLDB_LLDB_PRIVATE_TYPES_H #define LLDB_LLDB_PRIVATE_TYPES_H -#if defined(__cplusplus) - #include "lldb/lldb-private.h" #include "llvm/ADT/ArrayRef.h" @@ -125,6 +123,4 @@ void *baton, const char **argv, lldb_private::CommandReturnObject &result); } // namespace lldb_private -#endif // #if defined(__cplusplus) - #endif // LLDB_LLDB_PRIVATE_TYPES_H diff --git a/lldb/include/lldb/lldb-private.h b/lldb/include/lldb/lldb-private.h --- a/lldb/include/lldb/lldb-private.h +++ b/lldb/include/lldb/lldb-private.h @@ -9,13 +9,9 @@ #ifndef LLDB_LLDB_PRIVATE_H #define LLDB_LLDB_PRIVATE_H -#if defined(__cplusplus) - #include "lldb/lldb-private-enumerations.h" #include "lldb/lldb-private-interfaces.h" #include "lldb/lldb-private-types.h" #include "lldb/lldb-public.h" -#endif // defined(__cplusplus) - #endif // LLDB_LLDB_PRIVATE_H diff --git a/lldb/source/Host/macosx/cfcpp/CFCReleaser.h b/lldb/source/Host/macosx/cfcpp/CFCReleaser.h --- a/lldb/source/Host/macosx/cfcpp/CFCReleaser.h +++ b/lldb/source/Host/macosx/cfcpp/CFCReleaser.h @@ -11,8 +11,6 @@ #include -#ifdef __cplusplus - #include // Templatized CF helper class that can own any CF pointer and will @@ -105,5 +103,4 @@ T _ptr; }; -#endif // #ifdef __cplusplus #endif // LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCRELEASER_H diff --git a/lldb/source/Host/macosx/objcxx/PosixSpawnResponsible.h b/lldb/source/Host/macosx/objcxx/PosixSpawnResponsible.h --- a/lldb/source/Host/macosx/objcxx/PosixSpawnResponsible.h +++ b/lldb/source/Host/macosx/objcxx/PosixSpawnResponsible.h @@ -31,9 +31,7 @@ static dispatch_once_t pred; dispatch_once(&pred, ^{ responsibility_spawnattrs_setdisclaim_ptr = -#ifdef __cplusplus reinterpret_cast<__typeof__(&responsibility_spawnattrs_setdisclaim)> -#endif (dlsym(RTLD_DEFAULT, "responsibility_spawnattrs_setdisclaim")); }); if (responsibility_spawnattrs_setdisclaim_ptr) diff --git a/lldb/tools/debugserver/source/DNBLog.h b/lldb/tools/debugserver/source/DNBLog.h --- a/lldb/tools/debugserver/source/DNBLog.h +++ b/lldb/tools/debugserver/source/DNBLog.h @@ -17,9 +17,7 @@ #include #include -#ifdef __cplusplus extern "C" { -#endif // Flags that get filled in automatically before calling the log callback // function @@ -144,9 +142,6 @@ #define DNBLogCloseLogFile() ((void)0) #endif // #else defined(DNBLOG_ENABLED) - -#ifdef __cplusplus } -#endif #endif // LLDB_TOOLS_DEBUGSERVER_SOURCE_DNBLOG_H diff --git a/lldb/tools/debugserver/source/DNBRegisterInfo.h b/lldb/tools/debugserver/source/DNBRegisterInfo.h --- a/lldb/tools/debugserver/source/DNBRegisterInfo.h +++ b/lldb/tools/debugserver/source/DNBRegisterInfo.h @@ -18,12 +18,10 @@ #include struct DNBRegisterValueClass : public DNBRegisterValue { -#ifdef __cplusplus DNBRegisterValueClass(const DNBRegisterInfo *regInfo = NULL); void Clear(); void Dump(const char *pre, const char *post) const; bool IsValid() const; -#endif }; #endif diff --git a/lldb/tools/debugserver/source/MacOSX/CFUtils.h b/lldb/tools/debugserver/source/MacOSX/CFUtils.h --- a/lldb/tools/debugserver/source/MacOSX/CFUtils.h +++ b/lldb/tools/debugserver/source/MacOSX/CFUtils.h @@ -15,8 +15,6 @@ #include -#ifdef __cplusplus - // Templatized CF helper class that can own any CF pointer and will // call CFRelease() on any valid pointer it owns unless that pointer is // explicitly released using the release() member function. @@ -71,5 +69,4 @@ element_type _ptr; }; -#endif // #ifdef __cplusplus #endif // LLDB_TOOLS_DEBUGSERVER_SOURCE_MACOSX_CFUTILS_H