aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-02-20 22:20:18 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-02-20 22:20:18 +0000
commita2769a33c94f021a609a462b28ebea069eba6f74 (patch)
treeb8bcb623c4e5d2c65ede773869d5a14e168b1324 /include
parent1bcf0f5e45fd4e17b1be5fc80984b3c1722ba381 (diff)
downloadexternal_llvm-a2769a33c94f021a609a462b28ebea069eba6f74.zip
external_llvm-a2769a33c94f021a609a462b28ebea069eba6f74.tar.gz
external_llvm-a2769a33c94f021a609a462b28ebea069eba6f74.tar.bz2
Fixed lint errors:
* Alphabetized #includes * Removed trailing whitespace * Wrapped or shortened lines over 80 chars git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/APInt.h3
-rw-r--r--include/llvm/ADT/DepthFirstIterator.h2
-rw-r--r--include/llvm/ADT/GraphTraits.h4
-rw-r--r--include/llvm/ADT/ImmutableMap.h4
-rw-r--r--include/llvm/ADT/IndexedMap.h2
-rw-r--r--include/llvm/ADT/IntrusiveRefCntPtr.h2
-rw-r--r--include/llvm/ADT/OwningPtr.h2
-rw-r--r--include/llvm/ADT/PostOrderIterator.h5
-rw-r--r--include/llvm/ADT/SCCIterator.h2
-rw-r--r--include/llvm/ADT/STLExtras.h2
-rw-r--r--include/llvm/ADT/SetVector.h4
-rw-r--r--include/llvm/ADT/SmallVector.h2
-rw-r--r--include/llvm/ADT/Tree.h8
-rw-r--r--include/llvm/ADT/Trie.h8
-rw-r--r--include/llvm/ADT/ilist.h3
15 files changed, 30 insertions, 23 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h
index 3bbd527..a309d7f 100644
--- a/include/llvm/ADT/APInt.h
+++ b/include/llvm/ADT/APInt.h
@@ -1275,7 +1275,8 @@ public:
/// srcLSB, to DST, of dstCOUNT parts, such that the bit srcLSB
/// becomes the least significant bit of DST. All high bits above
/// srcBITS in DST are zero-filled.
- static void tcExtract(integerPart *, unsigned int dstCount, const integerPart *,
+ static void tcExtract(integerPart *, unsigned int dstCount,
+ const integerPart *,
unsigned int srcBits, unsigned int srcLSB);
/// Set the given bit of a bignum. Zero-based.
diff --git a/include/llvm/ADT/DepthFirstIterator.h b/include/llvm/ADT/DepthFirstIterator.h
index 28c1885..b00f585 100644
--- a/include/llvm/ADT/DepthFirstIterator.h
+++ b/include/llvm/ADT/DepthFirstIterator.h
@@ -36,8 +36,8 @@
#include "llvm/ADT/GraphTraits.h"
#include "llvm/ADT/iterator.h"
#include "llvm/ADT/SmallPtrSet.h"
-#include <vector>
#include <set>
+#include <vector>
namespace llvm {
diff --git a/include/llvm/ADT/GraphTraits.h b/include/llvm/ADT/GraphTraits.h
index 35da5ab..2d103cf 100644
--- a/include/llvm/ADT/GraphTraits.h
+++ b/include/llvm/ADT/GraphTraits.h
@@ -78,8 +78,8 @@ struct Inverse {
inline Inverse(const GraphType &G) : Graph(G) {}
};
-// Provide a partial specialization of GraphTraits so that the inverse of an inverse
-// falls back to the original graph.
+// Provide a partial specialization of GraphTraits so that the inverse of an
+// inverse falls back to the original graph.
template<class T>
struct GraphTraits<Inverse<Inverse<T> > > {
typedef typename GraphTraits<T>::NodeType NodeType;
diff --git a/include/llvm/ADT/ImmutableMap.h b/include/llvm/ADT/ImmutableMap.h
index 1b1014e..07cdb56 100644
--- a/include/llvm/ADT/ImmutableMap.h
+++ b/include/llvm/ADT/ImmutableMap.h
@@ -18,8 +18,8 @@
namespace llvm {
-/// ImutKeyValueInfo -Traits class used by ImmutableMap. While both the first and
-/// second elements in a pair are used to generate profile information,
+/// ImutKeyValueInfo -Traits class used by ImmutableMap. While both the first
+/// and second elements in a pair are used to generate profile information,
/// only the first element (the key) is used by isEqual and isLess.
template <typename T, typename S>
struct ImutKeyValueInfo {
diff --git a/include/llvm/ADT/IndexedMap.h b/include/llvm/ADT/IndexedMap.h
index ad95bdb..ff5d3a1 100644
--- a/include/llvm/ADT/IndexedMap.h
+++ b/include/llvm/ADT/IndexedMap.h
@@ -20,9 +20,9 @@
#ifndef LLVM_ADT_INDEXEDMAP_H
#define LLVM_ADT_INDEXEDMAP_H
+#include <cassert>
#include <functional>
#include <vector>
-#include <cassert>
namespace llvm {
diff --git a/include/llvm/ADT/IntrusiveRefCntPtr.h b/include/llvm/ADT/IntrusiveRefCntPtr.h
index ad2138b..37d4ac9 100644
--- a/include/llvm/ADT/IntrusiveRefCntPtr.h
+++ b/include/llvm/ADT/IntrusiveRefCntPtr.h
@@ -1,4 +1,4 @@
-//== llvm/ADT/IntrusiveRefCntPtr.h - Smart Refcounting Pointer ----*- C++ -*-==//
+//== llvm/ADT/IntrusiveRefCntPtr.h - Smart Refcounting Pointer ---*- C++ -*-==//
//
// The LLVM Compiler Infrastructure
//
diff --git a/include/llvm/ADT/OwningPtr.h b/include/llvm/ADT/OwningPtr.h
index 89dc19c..cc53c8c 100644
--- a/include/llvm/ADT/OwningPtr.h
+++ b/include/llvm/ADT/OwningPtr.h
@@ -26,7 +26,7 @@ namespace llvm {
template<class T>
class OwningPtr {
OwningPtr(OwningPtr const &); // DO NOT IMPLEMENT
- OwningPtr &operator=(OwningPtr const &); // DO NOT IMPLEMENT
+ OwningPtr &operator=(OwningPtr const &); // DO NOT IMPLEMENT
T *Ptr;
public:
explicit OwningPtr(T *P = 0) : Ptr(P) {}
diff --git a/include/llvm/ADT/PostOrderIterator.h b/include/llvm/ADT/PostOrderIterator.h
index eb556b5..bf7ce9d 100644
--- a/include/llvm/ADT/PostOrderIterator.h
+++ b/include/llvm/ADT/PostOrderIterator.h
@@ -18,8 +18,8 @@
#include "llvm/ADT/GraphTraits.h"
#include "llvm/ADT/iterator.h"
-#include <stack>
#include <set>
+#include <stack>
#include <vector>
namespace llvm {
@@ -165,7 +165,8 @@ ipo_iterator<T> ipo_end(T G){
}
//Provide global definitions of external inverse postorder iterators...
-template <class T, class SetType = std::set<typename GraphTraits<T>::NodeType*> >
+template <class T,
+ class SetType = std::set<typename GraphTraits<T>::NodeType*> >
struct ipo_ext_iterator : public ipo_iterator<T, SetType, true> {
ipo_ext_iterator(const ipo_iterator<T, SetType, true> &V) :
ipo_iterator<T, SetType, true>(&V) {}
diff --git a/include/llvm/ADT/SCCIterator.h b/include/llvm/ADT/SCCIterator.h
index ab5e2f4..e28f4ca 100644
--- a/include/llvm/ADT/SCCIterator.h
+++ b/include/llvm/ADT/SCCIterator.h
@@ -23,8 +23,8 @@
#include "llvm/ADT/GraphTraits.h"
#include "llvm/ADT/iterator.h"
-#include <vector>
#include <map>
+#include <vector>
namespace llvm {
diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h
index 81afd9d..964e7e0 100644
--- a/include/llvm/ADT/STLExtras.h
+++ b/include/llvm/ADT/STLExtras.h
@@ -17,9 +17,9 @@
#ifndef LLVM_ADT_STLEXTRAS_H
#define LLVM_ADT_STLEXTRAS_H
+#include <cstddef> // for std::size_t
#include <functional>
#include <utility> // for std::pair
-#include <cstddef> // for std::size_t
#include "llvm/ADT/iterator.h"
namespace llvm {
diff --git a/include/llvm/ADT/SetVector.h b/include/llvm/ADT/SetVector.h
index 2671bc5..fab133a 100644
--- a/include/llvm/ADT/SetVector.h
+++ b/include/llvm/ADT/SetVector.h
@@ -21,9 +21,9 @@
#define LLVM_ADT_SETVECTOR_H
#include "llvm/ADT/SmallSet.h"
-#include <vector>
-#include <cassert>
#include <algorithm>
+#include <cassert>
+#include <vector>
namespace llvm {
diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h
index c981d57..da91a65e 100644
--- a/include/llvm/ADT/SmallVector.h
+++ b/include/llvm/ADT/SmallVector.h
@@ -17,9 +17,9 @@
#include "llvm/ADT/iterator.h"
#include "llvm/Support/type_traits.h"
#include <algorithm>
+#include <cassert>
#include <cstring>
#include <memory>
-#include <cassert>
#ifdef _MSC_VER
namespace std {
diff --git a/include/llvm/ADT/Tree.h b/include/llvm/ADT/Tree.h
index 6b3751f..78f5b4f 100644
--- a/include/llvm/ADT/Tree.h
+++ b/include/llvm/ADT/Tree.h
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
//
-// This class defines a generic N way tree node structure. The tree structure
+// This class defines a generic N-way tree node structure. The tree structure
// is immutable after creation, but the payload contained within it is not.
//
//===----------------------------------------------------------------------===//
@@ -21,9 +21,9 @@ namespace llvm {
template<class ConcreteTreeNode, class Payload>
class Tree {
- std::vector<ConcreteTreeNode*> Children; // This nodes children, if any
- ConcreteTreeNode *Parent; // Parent of this node...
- Payload Data; // Data held in this node...
+ std::vector<ConcreteTreeNode*> Children; // This node's children, if any.
+ ConcreteTreeNode *Parent; // Parent of this node.
+ Payload Data; // Data held in this node.
protected:
void setChildren(const std::vector<ConcreteTreeNode*> &children) {
diff --git a/include/llvm/ADT/Trie.h b/include/llvm/ADT/Trie.h
index 8a868e5..70f3b41 100644
--- a/include/llvm/ADT/Trie.h
+++ b/include/llvm/ADT/Trie.h
@@ -279,9 +279,13 @@ struct GraphTraits<Trie<Payload> > {
typedef typename TrieType::Node NodeType;
typedef typename NodeType::iterator ChildIteratorType;
- static inline NodeType *getEntryNode(const TrieType& T) { return T.getRoot(); }
+ static inline NodeType *getEntryNode(const TrieType& T) {
+ return T.getRoot();
+ }
- static inline ChildIteratorType child_begin(NodeType *N) { return N->begin(); }
+ static inline ChildIteratorType child_begin(NodeType *N) {
+ return N->begin();
+ }
static inline ChildIteratorType child_end(NodeType *N) { return N->end(); }
typedef typename std::vector<NodeType*>::const_iterator nodes_iterator;
diff --git a/include/llvm/ADT/ilist.h b/include/llvm/ADT/ilist.h
index cf9c9c7..6bfc100 100644
--- a/include/llvm/ADT/ilist.h
+++ b/include/llvm/ADT/ilist.h
@@ -370,7 +370,8 @@ public:
}
iterator insert(iterator where, NodeTy *New) {
- NodeTy *CurNode = where.getNodePtrUnchecked(), *PrevNode = this->getPrev(CurNode);
+ NodeTy *CurNode = where.getNodePtrUnchecked();
+ NodeTy *PrevNode = this->getPrev(CurNode);
this->setNext(New, CurNode);
this->setPrev(New, PrevNode);