Skip to content

Commit aa7a3a8

Browse files
committed
Cleanup std includes
Remove `deque` from files it isn't actually used in. Add it and `stack` to files that it is - presumably they were previously transitively found through other includes.
1 parent 70c3481 commit aa7a3a8

File tree

7 files changed

+5
-4
lines changed

7 files changed

+5
-4
lines changed

Diff for: lib/AST/NameLookup.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
#include "llvm/Support/Debug.h"
5050
#include "llvm/Support/raw_ostream.h"
5151

52+
#include <deque>
53+
5254
#define DEBUG_TYPE "namelookup"
5355

5456
using namespace swift;

Diff for: lib/AST/RequirementMachine/KnuthBendix.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include "llvm/Support/Debug.h"
3535
#include "llvm/Support/raw_ostream.h"
3636
#include <algorithm>
37-
#include <deque>
3837
#include <vector>
3938

4039
#include "RewriteContext.h"

Diff for: lib/DependencyScan/ScanDependencies.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
#include <algorithm>
6666
#include <set>
6767
#include <sstream>
68+
#include <stack>
6869
#include <string>
6970
#include <algorithm>
7071

Diff for: lib/IDE/ImportDepth.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#include "swift/Basic/Assertions.h"
1616
#include "clang/Basic/Module.h"
1717

18+
#include <deque>
19+
1820
using namespace swift;
1921
using namespace swift::ide;
2022

Diff for: lib/SILOptimizer/Utils/CastOptimizer.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#include "llvm/IR/Intrinsics.h"
4343
#include "llvm/Support/CommandLine.h"
4444
#include "llvm/Support/Compiler.h"
45-
#include <deque>
4645
#include <optional>
4746

4847
using namespace swift;

Diff for: lib/SILOptimizer/Utils/InstOptUtils.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
#include "llvm/IR/Intrinsics.h"
4646
#include "llvm/Support/CommandLine.h"
4747
#include "llvm/Support/Compiler.h"
48-
#include <deque>
4948
#include <optional>
5049

5150
using namespace swift;

Diff for: tools/SourceKit/lib/SwiftLang/CodeCompletionOrganizer.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "llvm/ADT/DenseSet.h"
2424
#include "llvm/ADT/ilist.h"
2525
#include "llvm/ADT/ilist_node.h"
26-
#include <deque>
2726

2827
using namespace SourceKit;
2928
using namespace CodeCompletion;

0 commit comments

Comments
 (0)