Skip to content

Commit

Permalink
Remove comments after header includes.
Browse files Browse the repository at this point in the history
This patch removes the comments following the header includes. They were
added after running IWYU over the LLDB codebase. However they add little
value, are often outdates and burdensome to maintain.

Differential revision: https://reviews.llvm.org/D54385

llvm-svn: 346625
  • Loading branch information
JDevlieghere committed Nov 11, 2018
1 parent ba17b96 commit 672d2c1
Show file tree
Hide file tree
Showing 168 changed files with 932 additions and 936 deletions.
Expand Up @@ -65,7 +65,7 @@
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <tr1/memory> // for std::tr1::shared_ptr
#include <tr1/memory>
#include <unistd.h>
#include <vector>

Expand Down
12 changes: 6 additions & 6 deletions lldb/include/lldb/Core/Address.h
Expand Up @@ -10,13 +10,13 @@
#ifndef liblldb_Address_h_
#define liblldb_Address_h_

#include "lldb/lldb-defines.h" // for LLDB_INVALID_ADDRESS
#include "lldb/lldb-forward.h" // for SectionWP, SectionSP, ModuleSP
#include "lldb/lldb-private-enumerations.h" // for AddressClass
#include "lldb/lldb-types.h" // for addr_t
#include "lldb/lldb-defines.h"
#include "lldb/lldb-forward.h"
#include "lldb/lldb-private-enumerations.h"
#include "lldb/lldb-types.h"

#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t, UINT32_MAX, int64_t
#include <stddef.h>
#include <stdint.h>

namespace lldb_private {
class Block;
Expand Down
6 changes: 3 additions & 3 deletions lldb/include/lldb/Core/AddressRange.h
Expand Up @@ -11,10 +11,10 @@
#define liblldb_AddressRange_h_

#include "lldb/Core/Address.h"
#include "lldb/lldb-forward.h" // for SectionSP
#include "lldb/lldb-types.h" // for addr_t
#include "lldb/lldb-forward.h"
#include "lldb/lldb-types.h"

#include <stddef.h> // for size_t
#include <stddef.h>

namespace lldb_private {
class SectionList;
Expand Down
4 changes: 2 additions & 2 deletions lldb/include/lldb/Core/AddressResolver.h
Expand Up @@ -12,9 +12,9 @@

#include "lldb/Core/AddressRange.h"
#include "lldb/Core/SearchFilter.h"
#include "lldb/lldb-defines.h" // for DISALLOW_COPY_AND_ASSIGN
#include "lldb/lldb-defines.h"

#include <stddef.h> // for size_t
#include <stddef.h>
#include <vector>

namespace lldb_private {
Expand Down
8 changes: 4 additions & 4 deletions lldb/include/lldb/Core/AddressResolverFileLine.h
Expand Up @@ -11,11 +11,11 @@
#define liblldb_AddressResolverFileLine_h_

#include "lldb/Core/AddressResolver.h"
#include "lldb/Core/SearchFilter.h" // for Searcher, Searcher::CallbackR...
#include "lldb/Utility/FileSpec.h" // for FileSpec
#include "lldb/lldb-defines.h" // for DISALLOW_COPY_AND_ASSIGN
#include "lldb/Core/SearchFilter.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/lldb-defines.h"

#include <stdint.h> // for uint32_t
#include <stdint.h>

namespace lldb_private {
class Address;
Expand Down
6 changes: 3 additions & 3 deletions lldb/include/lldb/Core/AddressResolverName.h
Expand Up @@ -11,10 +11,10 @@
#define liblldb_AddressResolverName_h_

#include "lldb/Core/AddressResolver.h"
#include "lldb/Core/SearchFilter.h" // for Searcher, Searcher::Call...
#include "lldb/Utility/ConstString.h" // for ConstString
#include "lldb/Core/SearchFilter.h"
#include "lldb/Utility/ConstString.h"
#include "lldb/Utility/RegularExpression.h"
#include "lldb/lldb-defines.h" // for DISALLOW_COPY_AND_ASSIGN
#include "lldb/lldb-defines.h"

namespace lldb_private {
class Address;
Expand Down
12 changes: 6 additions & 6 deletions lldb/include/lldb/Core/Broadcaster.h
Expand Up @@ -11,18 +11,18 @@
#define liblldb_Broadcaster_h_

#include "lldb/Utility/ConstString.h"
#include "lldb/lldb-defines.h" // for DISALLOW_COPY_AND_ASSIGN
#include "lldb/lldb-forward.h" // for ListenerSP, EventSP, Broadcast...
#include "lldb/lldb-defines.h"
#include "lldb/lldb-forward.h"

#include "llvm/ADT/SmallVector.h"

#include <cstdint> // for uint32_t, UINT32_MAX
#include <cstdint>
#include <map>
#include <memory> // for shared_ptr, operator==, enable...
#include <memory>
#include <mutex>
#include <set> // for set
#include <set>
#include <string>
#include <utility> // for pair
#include <utility>
#include <vector>

namespace lldb_private {
Expand Down
14 changes: 7 additions & 7 deletions lldb/include/lldb/Core/Communication.h
Expand Up @@ -13,18 +13,18 @@
#include "lldb/Core/Broadcaster.h"
#include "lldb/Host/HostThread.h"
#include "lldb/Utility/Timeout.h"
#include "lldb/lldb-defines.h" // for DISALLOW_COPY_AND_ASSIGN
#include "lldb/lldb-enumerations.h" // for ConnectionStatus, FLAGS_ANONYMOU...
#include "lldb/lldb-forward.h" // for ConnectionSP
#include "lldb/lldb-types.h" // for thread_arg_t, thread_result_t
#include "lldb/lldb-defines.h"
#include "lldb/lldb-enumerations.h"
#include "lldb/lldb-forward.h"
#include "lldb/lldb-types.h"

#include <atomic>
#include <mutex>
#include <ratio> // for micro
#include <ratio>
#include <string>

#include <stddef.h> // for size_t
#include <stdint.h> // for uint8_t
#include <stddef.h>
#include <stdint.h>

namespace lldb_private {
class Connection;
Expand Down
34 changes: 17 additions & 17 deletions lldb/include/lldb/Core/Debugger.h
Expand Up @@ -26,28 +26,28 @@
#include "lldb/Core/UserSettingsController.h"
#include "lldb/Host/HostThread.h"
#include "lldb/Host/Terminal.h"
#include "lldb/Target/ExecutionContext.h" // for ExecutionContext
#include "lldb/Target/ExecutionContext.h"
#include "lldb/Target/Platform.h"
#include "lldb/Target/TargetList.h"
#include "lldb/Utility/ConstString.h" // for ConstString
#include "lldb/Utility/FileSpec.h" // for FileSpec
#include "lldb/Utility/Status.h" // for Status
#include "lldb/Utility/ConstString.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/Status.h"
#include "lldb/Utility/UserID.h"
#include "lldb/lldb-defines.h" // for DISALLOW_COPY_AND_ASSIGN
#include "lldb/lldb-enumerations.h" // for ScriptLanguage, Langua...
#include "lldb/lldb-forward.h" // for StreamFileSP, DebuggerSP
#include "lldb/lldb-private-enumerations.h" // for VarSetOperationType
#include "lldb/lldb-private-types.h" // for LoadPluginCallbackType
#include "lldb/lldb-types.h" // for LogOutputCallback, thr...

#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/StringMap.h" // for StringMap
#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/Support/DynamicLibrary.h" // for DynamicLibrary
#include "lldb/lldb-defines.h"
#include "lldb/lldb-enumerations.h"
#include "lldb/lldb-forward.h"
#include "lldb/lldb-private-enumerations.h"
#include "lldb/lldb-private-types.h"
#include "lldb/lldb-types.h"

#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/DynamicLibrary.h"
#include "llvm/Support/Threading.h"

#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <assert.h>
#include <stddef.h>
#include <stdio.h>

namespace lldb_private {
Expand Down
26 changes: 13 additions & 13 deletions lldb/include/lldb/Core/Disassembler.h
Expand Up @@ -12,32 +12,32 @@

#include "lldb/Core/Address.h"
#include "lldb/Core/EmulateInstruction.h"
#include "lldb/Core/FormatEntity.h" // for FormatEntity
#include "lldb/Core/FormatEntity.h"
#include "lldb/Core/Opcode.h"
#include "lldb/Core/PluginInterface.h"
#include "lldb/Interpreter/OptionValue.h"
#include "lldb/Symbol/LineEntry.h"
#include "lldb/Target/ExecutionContext.h" // for ExecutionContext
#include "lldb/Target/ExecutionContext.h"
#include "lldb/Utility/ArchSpec.h"
#include "lldb/Utility/ConstString.h" // for ConstString
#include "lldb/Utility/ConstString.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/lldb-defines.h" // for DISALLOW_COPY_AND_ASSIGN
#include "lldb/lldb-forward.h" // for InstructionSP, DisassemblerSP
#include "lldb/lldb-private-enumerations.h" // for AddressClass
#include "lldb/lldb-types.h" // for addr_t, offset_t
#include "lldb/lldb-defines.h"
#include "lldb/lldb-forward.h"
#include "lldb/lldb-private-enumerations.h"
#include "lldb/lldb-types.h"

#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/ADT/StringRef.h"

#include <functional> // for function
#include <functional>
#include <map>
#include <memory> // for enable_shared_from_this
#include <memory>
#include <set>
#include <string>
#include <vector>

#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t, int64_t
#include <stdio.h> // for FILE
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>

namespace lldb_private {
class AddressRange;
Expand Down
6 changes: 3 additions & 3 deletions lldb/include/lldb/Core/DumpDataExtractor.h
Expand Up @@ -10,11 +10,11 @@
#ifndef LLDB_CORE_DUMPDATAEXTRACTOR_H
#define LLDB_CORE_DUMPDATAEXTRACTOR_H

#include "lldb/lldb-enumerations.h" // for Format
#include "lldb/lldb-enumerations.h"
#include "lldb/lldb-types.h"

#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t, uint64_t
#include <stddef.h>
#include <stdint.h>

namespace lldb_private {
class DataExtractor;
Expand Down
18 changes: 9 additions & 9 deletions lldb/include/lldb/Core/EmulateInstruction.h
Expand Up @@ -12,18 +12,18 @@

#include <string>

#include "lldb/Core/Address.h" // for Address
#include "lldb/Core/Address.h"
#include "lldb/Core/Opcode.h"
#include "lldb/Core/PluginInterface.h"
#include "lldb/Utility/ArchSpec.h"
#include "lldb/lldb-defines.h" // for DISALLOW_COPY_AND_ASSIGN
#include "lldb/lldb-enumerations.h" // for RegisterKind, ByteOrder
#include "lldb/lldb-private-enumerations.h" // for InstructionType
#include "lldb/lldb-private-types.h" // for RegisterInfo
#include "lldb/lldb-types.h" // for addr_t

#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t, uint64_t, int64_t
#include "lldb/lldb-defines.h"
#include "lldb/lldb-enumerations.h"
#include "lldb/lldb-private-enumerations.h"
#include "lldb/lldb-private-types.h"
#include "lldb/lldb-types.h"

#include <stddef.h>
#include <stdint.h>
namespace lldb_private {
class OptionValueDictionary;
}
Expand Down
10 changes: 5 additions & 5 deletions lldb/include/lldb/Core/Event.h
Expand Up @@ -14,17 +14,17 @@
#include "lldb/Utility/ConstString.h"
#include "lldb/Utility/Predicate.h"
#include "lldb/Utility/StructuredData.h"
#include "lldb/lldb-defines.h" // for DISALLOW_COPY_AND_ASSIGN
#include "lldb/lldb-forward.h" // for EventDataSP, ProcessSP, Struct...
#include "lldb/lldb-defines.h"
#include "lldb/lldb-forward.h"

#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/ADT/StringRef.h"

#include <chrono>
#include <memory>
#include <string>

#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t
#include <stddef.h>
#include <stdint.h>

namespace lldb_private {
class Event;
Expand Down
8 changes: 4 additions & 4 deletions lldb/include/lldb/Core/FileLineResolver.h
Expand Up @@ -10,12 +10,12 @@
#ifndef liblldb_FileLineResolver_h_
#define liblldb_FileLineResolver_h_

#include "lldb/Core/SearchFilter.h" // for Searcher, Searcher::CallbackR...
#include "lldb/Core/SearchFilter.h"
#include "lldb/Symbol/SymbolContext.h"
#include "lldb/Utility/FileSpec.h" // for FileSpec
#include "lldb/lldb-defines.h" // for DISALLOW_COPY_AND_ASSIGN
#include "lldb/Utility/FileSpec.h"
#include "lldb/lldb-defines.h"

#include <stdint.h> // for uint32_t, UINT32_MAX
#include <stdint.h>

namespace lldb_private {
class Address;
Expand Down
2 changes: 1 addition & 1 deletion lldb/include/lldb/Core/FileSpecList.h
Expand Up @@ -15,7 +15,7 @@

#include <vector>

#include <stddef.h> // for size_t
#include <stddef.h>

namespace lldb_private {
class Stream;
Expand Down
12 changes: 6 additions & 6 deletions lldb/include/lldb/Core/FormatEntity.h
Expand Up @@ -11,13 +11,13 @@
#define liblldb_FormatEntity_h_

#include "lldb/Utility/CompletionRequest.h"
#include "lldb/Utility/FileSpec.h" // for FileSpec
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/Status.h"
#include "lldb/lldb-enumerations.h" // for Format::eFormatDefault, Format
#include "lldb/lldb-types.h" // for addr_t
#include <algorithm> // for min
#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t, uint64_t
#include "lldb/lldb-enumerations.h"
#include "lldb/lldb-types.h"
#include <algorithm>
#include <stddef.h>
#include <stdint.h>

#include <string>
#include <vector>
Expand Down
10 changes: 5 additions & 5 deletions lldb/include/lldb/Core/IOHandler.h
Expand Up @@ -16,17 +16,17 @@
#include "lldb/Utility/Predicate.h"
#include "lldb/Utility/Stream.h"
#include "lldb/Utility/StringList.h"
#include "lldb/lldb-defines.h" // for DISALLOW_COPY_AND_ASSIGN
#include "lldb/lldb-forward.h" // for IOHandlerSP, StreamFileSP
#include "llvm/ADT/StringRef.h" // for StringRef
#include "lldb/lldb-defines.h"
#include "lldb/lldb-forward.h"
#include "llvm/ADT/StringRef.h"

#include <memory>
#include <mutex>
#include <string>
#include <vector>

#include <stdint.h> // for uint32_t
#include <stdio.h> // for FILE
#include <stdint.h>
#include <stdio.h>

namespace lldb_private {
class Debugger;
Expand Down
14 changes: 7 additions & 7 deletions lldb/include/lldb/Core/Listener.h
Expand Up @@ -10,22 +10,22 @@
#ifndef liblldb_Select_h_
#define liblldb_Select_h_

#include "lldb/Core/Broadcaster.h" // for Broadcaster::BroadcasterImplWP
#include "lldb/Core/Broadcaster.h"
#include "lldb/Utility/Timeout.h"
#include "lldb/lldb-defines.h" // for DISALLOW_COPY_AND_ASSIGN
#include "lldb/lldb-forward.h" // for BroadcasterManagerWP, EventSP
#include "lldb/lldb-defines.h"
#include "lldb/lldb-forward.h"

#include <condition_variable>
#include <list>
#include <map>
#include <memory> // for owner_less, enable_shared_from_this
#include <memory>
#include <mutex>
#include <ratio> // for micro
#include <ratio>
#include <string>
#include <vector>

#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t
#include <stddef.h>
#include <stdint.h>

namespace lldb_private {
class ConstString;
Expand Down

0 comments on commit 672d2c1

Please sign in to comment.