Fixed lint errors:
authorMisha Brukman <brukman+llvm@gmail.com>
Fri, 20 Feb 2009 22:20:18 +0000 (22:20 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Fri, 20 Feb 2009 22:20:18 +0000 (22:20 +0000)
* 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

15 files changed:
include/llvm/ADT/APInt.h
include/llvm/ADT/DepthFirstIterator.h
include/llvm/ADT/GraphTraits.h
include/llvm/ADT/ImmutableMap.h
include/llvm/ADT/IndexedMap.h
include/llvm/ADT/IntrusiveRefCntPtr.h
include/llvm/ADT/OwningPtr.h
include/llvm/ADT/PostOrderIterator.h
include/llvm/ADT/SCCIterator.h
include/llvm/ADT/STLExtras.h
include/llvm/ADT/SetVector.h
include/llvm/ADT/SmallVector.h
include/llvm/ADT/Tree.h
include/llvm/ADT/Trie.h
include/llvm/ADT/ilist.h

index 3bbd5278e96f7f8f4a7e0eeb9ebc6e3319b5d84c..a309d7f99548f88697c5b269051728de94d19649 100644 (file)
@@ -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.
index 28c188567656f6604746ad596e0702a5c4463549..b00f585d86fcc7080422d767d65795567bce8405 100644 (file)
@@ -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 {
 
index 35da5ab2f8ecfe03f038e1ce7cb6964d2e4f3ee1..2d103cf83eb83f414f366ce84aa9d02663ba308d 100644 (file)
@@ -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;
index 1b1014ea46bb0f5da86be1712450f173de71f748..07cdb56a9ab0c08de4c5a27b6ac548f6c92ed4c4 100644 (file)
@@ -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 {
index ad95bdba018cd13f2eebce5c0f825a337ca5a528..ff5d3a139c705e793d53460213d2061757774ae3 100644 (file)
@@ -20,9 +20,9 @@
 #ifndef LLVM_ADT_INDEXEDMAP_H
 #define LLVM_ADT_INDEXEDMAP_H
 
+#include <cassert>
 #include <functional>
 #include <vector>
-#include <cassert>
 
 namespace llvm {
 
index ad2138b10e098dd0ff66a87f1100f6785e8551e5..37d4ac9d29df518abaa753357cf406257502fde1 100644 (file)
@@ -1,4 +1,4 @@
-//== llvm/ADT/IntrusiveRefCntPtr.h - Smart Refcounting Pointer ----*- C++ -*-==//
+//== llvm/ADT/IntrusiveRefCntPtr.h - Smart Refcounting Pointer ---*- C++ -*-==//
 //
 //                     The LLVM Compiler Infrastructure
 //
index 89dc19ca05bf2721b056570762ada458571fd214..cc53c8c30c1216c8bdaad394ab6a147c989117a0 100644 (file)
@@ -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) {}
index eb556b5ec3b097c7269ba276bafc9a5d537e3c9f..bf7ce9d0bb6aa0feb522605613bc9d7fe511e286 100644 (file)
@@ -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) {}
index ab5e2f4fc3ecd9f0de45a36b9505a5b99792b7ad..e28f4caa5d76993668b45eacb9fc8de76e8ad839 100644 (file)
@@ -23,8 +23,8 @@
 
 #include "llvm/ADT/GraphTraits.h"
 #include "llvm/ADT/iterator.h"
-#include <vector>
 #include <map>
+#include <vector>
 
 namespace llvm {
 
index 81afd9da4e9b541dcd079be2a8b324aa8a3f4d56..964e7e07ef7d57a67ef37ef61cb4599c44bc5063 100644 (file)
@@ -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 {
index 2671bc5c9e244092774c3bf780e3b6eb365e8905..fab133af4c03b1b49b4ae033278bb0d44b6b70dd 100644 (file)
@@ -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 {
 
index c981d5756b3af2aa8f882f32bd3d79e30fc87b29..da91a65ea4716076d205807fb0cf18bedf282eca 100644 (file)
@@ -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 {
index 6b3751fe6e56d7a6308d01c33017f9b15d296500..78f5b4fab97f74fd52ff31e00b3913664c99669d 100644 (file)
@@ -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) {
index 8a868e53c11418018d13734e579e4049b888c439..70f3b4154d39986d794894b634df0a1d5fc8f979 100644 (file)
@@ -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;
index cf9c9c7464d47f7126d42777312fd60f9149f0b4..6bfc10009d16b8a15a7b6247c87d4b39de44bcd6 100644 (file)
@@ -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);