mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
[NFC] Remove ASCII lines from comments
A lot of comments in LLDB are surrounded by an ASCII line to delimit the begging and end of the comment. Its use is not really consistent across the code base, sometimes the lines are longer, sometimes they are shorter and sometimes they are omitted. Furthermore, it looks kind of weird with the 80 column limit, where the comment actually extends past the line, but not by much. Furthermore, when /// is used for Doxygen comments, it looks particularly odd. And when // is used, it incorrectly gives the impression that it's actually a Doxygen comment. I assume these lines were added to improve distinguishing between comments and code. However, given that todays editors and IDEs do a great job at highlighting comments, I think it's worth to drop this for the sake of consistency. The alternative is fixing all the inconsistencies, which would create a lot more churn. Differential revision: https://reviews.llvm.org/D60508 llvm-svn: 358135
This commit is contained in:
1 parent
66b6bb1766
commit
8b3af63b89
889 files changed
-10287
No files matched your search
@@ -26,9 +26,7 @@
|
||||
using namespace lldb;
|
||||
using namespace lldb_private;
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// PlatformConnectOptions
|
||||
//----------------------------------------------------------------------
|
||||
struct PlatformConnectOptions {
|
||||
PlatformConnectOptions(const char *url = NULL)
|
||||
: m_url(), m_rsync_options(), m_rsync_remote_path_prefix(),
|
||||
@@ -48,9 +46,7 @@ struct PlatformConnectOptions {
|
||||
ConstString m_local_cache_directory;
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// PlatformShellCommand
|
||||
//----------------------------------------------------------------------
|
||||
struct PlatformShellCommand {
|
||||
PlatformShellCommand(const char *shell_command = NULL)
|
||||
: m_command(), m_working_dir(), m_status(0), m_signo(0) {
|
||||
@@ -67,9 +63,7 @@ struct PlatformShellCommand {
|
||||
int m_signo;
|
||||
Timeout<std::ratio<1>> m_timeout = llvm::None;
|
||||
};
|
||||
//----------------------------------------------------------------------
|
||||
// SBPlatformConnectOptions
|
||||
//----------------------------------------------------------------------
|
||||
SBPlatformConnectOptions::SBPlatformConnectOptions(const char *url)
|
||||
: m_opaque_ptr(new PlatformConnectOptions(url)) {
|
||||
LLDB_RECORD_CONSTRUCTOR(SBPlatformConnectOptions, (const char *), url);
|
||||
@@ -164,9 +158,7 @@ void SBPlatformConnectOptions::SetLocalCacheDirectory(const char *path) {
|
||||
m_opaque_ptr->m_local_cache_directory = ConstString();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// SBPlatformShellCommand
|
||||
//----------------------------------------------------------------------
|
||||
SBPlatformShellCommand::SBPlatformShellCommand(const char *shell_command)
|
||||
: m_opaque_ptr(new PlatformShellCommand(shell_command)) {
|
||||
LLDB_RECORD_CONSTRUCTOR(SBPlatformShellCommand, (const char *),
|
||||
@@ -268,9 +260,7 @@ const char *SBPlatformShellCommand::GetOutput() {
|
||||
return m_opaque_ptr->m_output.c_str();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// SBPlatform
|
||||
//----------------------------------------------------------------------
|
||||
SBPlatform::SBPlatform() : m_opaque_sp() {
|
||||
LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBPlatform);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user