mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 02:24:29 +00:00
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
This commit is contained in:
@ -1275,7 +1275,8 @@ public:
|
|||||||
/// srcLSB, to DST, of dstCOUNT parts, such that the bit srcLSB
|
/// srcLSB, to DST, of dstCOUNT parts, such that the bit srcLSB
|
||||||
/// becomes the least significant bit of DST. All high bits above
|
/// becomes the least significant bit of DST. All high bits above
|
||||||
/// srcBITS in DST are zero-filled.
|
/// 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);
|
unsigned int srcBits, unsigned int srcLSB);
|
||||||
|
|
||||||
/// Set the given bit of a bignum. Zero-based.
|
/// Set the given bit of a bignum. Zero-based.
|
||||||
|
@ -36,8 +36,8 @@
|
|||||||
#include "llvm/ADT/GraphTraits.h"
|
#include "llvm/ADT/GraphTraits.h"
|
||||||
#include "llvm/ADT/iterator.h"
|
#include "llvm/ADT/iterator.h"
|
||||||
#include "llvm/ADT/SmallPtrSet.h"
|
#include "llvm/ADT/SmallPtrSet.h"
|
||||||
#include <vector>
|
|
||||||
#include <set>
|
#include <set>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
|
@ -78,8 +78,8 @@ struct Inverse {
|
|||||||
inline Inverse(const GraphType &G) : Graph(G) {}
|
inline Inverse(const GraphType &G) : Graph(G) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Provide a partial specialization of GraphTraits so that the inverse of an inverse
|
// Provide a partial specialization of GraphTraits so that the inverse of an
|
||||||
// falls back to the original graph.
|
// inverse falls back to the original graph.
|
||||||
template<class T>
|
template<class T>
|
||||||
struct GraphTraits<Inverse<Inverse<T> > > {
|
struct GraphTraits<Inverse<Inverse<T> > > {
|
||||||
typedef typename GraphTraits<T>::NodeType NodeType;
|
typedef typename GraphTraits<T>::NodeType NodeType;
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
/// ImutKeyValueInfo -Traits class used by ImmutableMap. While both the first and
|
/// ImutKeyValueInfo -Traits class used by ImmutableMap. While both the first
|
||||||
/// second elements in a pair are used to generate profile information,
|
/// and second elements in a pair are used to generate profile information,
|
||||||
/// only the first element (the key) is used by isEqual and isLess.
|
/// only the first element (the key) is used by isEqual and isLess.
|
||||||
template <typename T, typename S>
|
template <typename T, typename S>
|
||||||
struct ImutKeyValueInfo {
|
struct ImutKeyValueInfo {
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
#ifndef LLVM_ADT_INDEXEDMAP_H
|
#ifndef LLVM_ADT_INDEXEDMAP_H
|
||||||
#define LLVM_ADT_INDEXEDMAP_H
|
#define LLVM_ADT_INDEXEDMAP_H
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <cassert>
|
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//== llvm/ADT/IntrusiveRefCntPtr.h - Smart Refcounting Pointer ----*- C++ -*-==//
|
//== llvm/ADT/IntrusiveRefCntPtr.h - Smart Refcounting Pointer ---*- C++ -*-==//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
|
@ -26,7 +26,7 @@ namespace llvm {
|
|||||||
template<class T>
|
template<class T>
|
||||||
class OwningPtr {
|
class OwningPtr {
|
||||||
OwningPtr(OwningPtr const &); // DO NOT IMPLEMENT
|
OwningPtr(OwningPtr const &); // DO NOT IMPLEMENT
|
||||||
OwningPtr &operator=(OwningPtr const &); // DO NOT IMPLEMENT
|
OwningPtr &operator=(OwningPtr const &); // DO NOT IMPLEMENT
|
||||||
T *Ptr;
|
T *Ptr;
|
||||||
public:
|
public:
|
||||||
explicit OwningPtr(T *P = 0) : Ptr(P) {}
|
explicit OwningPtr(T *P = 0) : Ptr(P) {}
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
#include "llvm/ADT/GraphTraits.h"
|
#include "llvm/ADT/GraphTraits.h"
|
||||||
#include "llvm/ADT/iterator.h"
|
#include "llvm/ADT/iterator.h"
|
||||||
#include <stack>
|
|
||||||
#include <set>
|
#include <set>
|
||||||
|
#include <stack>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
@ -165,7 +165,8 @@ ipo_iterator<T> ipo_end(T G){
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Provide global definitions of external inverse postorder iterators...
|
//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> {
|
struct ipo_ext_iterator : public ipo_iterator<T, SetType, true> {
|
||||||
ipo_ext_iterator(const ipo_iterator<T, SetType, true> &V) :
|
ipo_ext_iterator(const ipo_iterator<T, SetType, true> &V) :
|
||||||
ipo_iterator<T, SetType, true>(&V) {}
|
ipo_iterator<T, SetType, true>(&V) {}
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
|
|
||||||
#include "llvm/ADT/GraphTraits.h"
|
#include "llvm/ADT/GraphTraits.h"
|
||||||
#include "llvm/ADT/iterator.h"
|
#include "llvm/ADT/iterator.h"
|
||||||
#include <vector>
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
#ifndef LLVM_ADT_STLEXTRAS_H
|
#ifndef LLVM_ADT_STLEXTRAS_H
|
||||||
#define LLVM_ADT_STLEXTRAS_H
|
#define LLVM_ADT_STLEXTRAS_H
|
||||||
|
|
||||||
|
#include <cstddef> // for std::size_t
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <utility> // for std::pair
|
#include <utility> // for std::pair
|
||||||
#include <cstddef> // for std::size_t
|
|
||||||
#include "llvm/ADT/iterator.h"
|
#include "llvm/ADT/iterator.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
@ -21,9 +21,9 @@
|
|||||||
#define LLVM_ADT_SETVECTOR_H
|
#define LLVM_ADT_SETVECTOR_H
|
||||||
|
|
||||||
#include "llvm/ADT/SmallSet.h"
|
#include "llvm/ADT/SmallSet.h"
|
||||||
#include <vector>
|
|
||||||
#include <cassert>
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <cassert>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
#include "llvm/ADT/iterator.h"
|
#include "llvm/ADT/iterator.h"
|
||||||
#include "llvm/Support/type_traits.h"
|
#include "llvm/Support/type_traits.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <cassert>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <cassert>
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
namespace std {
|
namespace std {
|
||||||
|
@ -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.
|
// is immutable after creation, but the payload contained within it is not.
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
@ -21,9 +21,9 @@ namespace llvm {
|
|||||||
|
|
||||||
template<class ConcreteTreeNode, class Payload>
|
template<class ConcreteTreeNode, class Payload>
|
||||||
class Tree {
|
class Tree {
|
||||||
std::vector<ConcreteTreeNode*> Children; // This nodes children, if any
|
std::vector<ConcreteTreeNode*> Children; // This node's children, if any.
|
||||||
ConcreteTreeNode *Parent; // Parent of this node...
|
ConcreteTreeNode *Parent; // Parent of this node.
|
||||||
Payload Data; // Data held in this node...
|
Payload Data; // Data held in this node.
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void setChildren(const std::vector<ConcreteTreeNode*> &children) {
|
void setChildren(const std::vector<ConcreteTreeNode*> &children) {
|
||||||
|
@ -279,9 +279,13 @@ struct GraphTraits<Trie<Payload> > {
|
|||||||
typedef typename TrieType::Node NodeType;
|
typedef typename TrieType::Node NodeType;
|
||||||
typedef typename NodeType::iterator ChildIteratorType;
|
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(); }
|
static inline ChildIteratorType child_end(NodeType *N) { return N->end(); }
|
||||||
|
|
||||||
typedef typename std::vector<NodeType*>::const_iterator nodes_iterator;
|
typedef typename std::vector<NodeType*>::const_iterator nodes_iterator;
|
||||||
|
@ -370,7 +370,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
iterator insert(iterator where, NodeTy *New) {
|
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->setNext(New, CurNode);
|
||||||
this->setPrev(New, PrevNode);
|
this->setPrev(New, PrevNode);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user