summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT/SCCIteratorTest.cpp
diff options
context:
space:
mode:
authorEugene Zelenko <eugene.zelenko@gmail.com>2016-04-05 20:19:49 +0000
committerEugene Zelenko <eugene.zelenko@gmail.com>2016-04-05 20:19:49 +0000
commit1760dc2a232bde2175606ba737938d3032f1e49d (patch)
tree3859bc6b8b21c8d5073ded16260d7a5b3ff99b8f /llvm/unittests/ADT/SCCIteratorTest.cpp
parentf2fdd013a29b26791490e3a33beda1bacfeec182 (diff)
downloadbcm5719-llvm-1760dc2a232bde2175606ba737938d3032f1e49d.tar.gz
bcm5719-llvm-1760dc2a232bde2175606ba737938d3032f1e49d.zip
Fix Clang-tidy modernize-deprecated-headers warnings in remaining files; other minor fixes.
Some Include What You Use suggestions were used too. Use anonymous namespaces in source files. Differential revision: http://reviews.llvm.org/D18778 llvm-svn: 265454
Diffstat (limited to 'llvm/unittests/ADT/SCCIteratorTest.cpp')
-rw-r--r--llvm/unittests/ADT/SCCIteratorTest.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/llvm/unittests/ADT/SCCIteratorTest.cpp b/llvm/unittests/ADT/SCCIteratorTest.cpp
index da8c04483f9..95639940160 100644
--- a/llvm/unittests/ADT/SCCIteratorTest.cpp
+++ b/llvm/unittests/ADT/SCCIteratorTest.cpp
@@ -10,7 +10,10 @@
#include "llvm/ADT/SCCIterator.h"
#include "llvm/ADT/GraphTraits.h"
#include "gtest/gtest.h"
-#include <limits.h>
+#include <cassert>
+#include <climits>
+#include <utility>
+#include <vector>
using namespace llvm;
@@ -27,13 +30,14 @@ private:
static void ValidateIndex(unsigned Idx) {
assert(Idx < N && "Invalid node index!");
}
-public:
+public:
/// NodeSubset - A subset of the graph's nodes.
class NodeSubset {
typedef unsigned char BitVector; // Where the limitation N <= 8 comes from.
BitVector Elements;
NodeSubset(BitVector e) : Elements(e) {}
+
public:
/// NodeSubset - Default constructor, creates an empty subset.
NodeSubset() : Elements(0) {
@@ -98,8 +102,8 @@ public:
private:
/// Nodes - The list of nodes for this graph.
NodeType Nodes[N];
-public:
+public:
/// Graph - Default constructor. Creates an empty graph.
Graph() {
// Let each node know which node it is. This allows us to find the start of
@@ -166,6 +170,7 @@ public:
NodeSubset Children;
ChildIterator(); // Disable default constructor.
+
protected:
ChildIterator(NodeType *F, NodeSubset C) : FirstNode(F), Children(C) {}
@@ -341,4 +346,4 @@ TEST(SCCIteratorTest, AllSmallGraphs) {
}
}
-}
+} // end namespace llvm
OpenPOWER on IntegriCloud