Skip to content

Commit

Permalink
Revert r240137 (Fixed/added namespace ending comments using clang-tid…
Browse files Browse the repository at this point in the history
…y. NFC)

Apparently, the style needs to be agreed upon first.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240390 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
alexfh committed Jun 23, 2015
1 parent d96e362 commit cd52a7a
Show file tree
Hide file tree
Showing 939 changed files with 1,156 additions and 1,156 deletions.
4 changes: 2 additions & 2 deletions include/llvm/ADT/APInt.h
Original file line number Diff line number Diff line change
Expand Up @@ -1896,11 +1896,11 @@ inline APInt Xor(const APInt &LHS, const APInt &RHS) { return LHS ^ RHS; }
/// Performs a bitwise complement operation on APInt.
inline APInt Not(const APInt &APIVal) { return ~APIVal; }

} // namespace APIntOps
} // End of APIntOps namespace

// See friend declaration above. This additional declaration is required in
// order to compile LLVM with IBM xlC compiler.
hash_code hash_value(const APInt &Arg);
} // namespace llvm
} // End of llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/ArrayRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,6 @@ namespace llvm {
template <typename T> struct isPodLike<ArrayRef<T> > {
static const bool value = true;
};
} // namespace llvm
}

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/BitVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ class BitVector {
}
};

} // namespace llvm
} // End llvm namespace

namespace std {
/// Implement std::swap in terms of BitVector swap.
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/ADT/DenseMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct DenseMapPair : public std::pair<KeyT, ValueT> {
ValueT &getSecond() { return std::pair<KeyT, ValueT>::second; }
const ValueT &getSecond() const { return std::pair<KeyT, ValueT>::second; }
};
} // namespace detail
}

template <
typename KeyT, typename ValueT, typename KeyInfoT = DenseMapInfo<KeyT>,
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/ADT/DenseSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ template <typename KeyT> class DenseSetPair : public DenseSetEmpty {
DenseSetEmpty &getSecond() { return *this; }
const DenseSetEmpty &getSecond() const { return *this; }
};
} // namespace detail
}

/// DenseSet - This implements a dense probed hash-table based set.
template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT> >
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/ADT/DepthFirstIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,6 @@ iterator_range<idf_ext_iterator<T, SetTy>> inverse_depth_first_ext(const T& G,
return make_range(idf_ext_begin(G, S), idf_ext_end(G, S));
}

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/EquivalenceClasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,6 @@ class EquivalenceClasses {
};
};

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/GraphTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ struct GraphTraits<Inverse<Inverse<T> > > {
}
};

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/IndexedMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ template <typename T, typename ToIndexT = llvm::identity<unsigned> >
}
};

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/IntEqClasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ class IntEqClasses {
void uncompress();
};

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/Optional.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,6 @@ void operator>=(const Optional<T> &X, const Optional<U> &Y);
template<typename T, typename U>
void operator>(const Optional<T> &X, const Optional<U> &Y);

} // namespace llvm
} // end llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/PointerUnion.h
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,6 @@ namespace llvm {
RHS.template get<U>()));
}
};
} // namespace llvm
}

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/PostOrderIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,6 @@ class ReversePostOrderTraversal {
rpo_iterator end() { return Blocks.rend(); }
};

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/PriorityQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ class PriorityQueue : public std::priority_queue<T, Sequence, Compare> {
}
};

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/SCCIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,6 @@ template <class T> scc_iterator<Inverse<T> > scc_end(const Inverse<T> &G) {
return scc_iterator<Inverse<T> >::end(G);
}

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/STLExtras.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,6 @@ template <typename T> struct deref {
}
};

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/SetOperations.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ void set_subtract(S1Ty &S1, const S2Ty &S2) {
S1.erase(*SI);
}

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/SetVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class SmallSetVector : public SetVector<T, SmallVector<T, N>, SmallSet<T, N> > {
}
};

} // namespace llvm
} // End llvm namespace

// vim: sw=2 ai
#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/SmallBitVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ operator^(const SmallBitVector &LHS, const SmallBitVector &RHS) {
return Result;
}

} // namespace llvm
} // End llvm namespace

namespace std {
/// Implement std::swap in terms of BitVector swap.
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/ADT/SmallPtrSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ class SmallPtrSet : public SmallPtrSetImpl<PtrType> {
}
};

} // namespace llvm
}

namespace std {
/// Implement std::swap in terms of SmallPtrSet swap.
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/ADT/SmallString.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,6 @@ class SmallString : public SmallVector<char, InternalLen> {
}
};

} // namespace llvm
}

#endif
4 changes: 2 additions & 2 deletions include/llvm/ADT/SmallVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ static inline size_t capacity_in_bytes(const SmallVector<T, N> &X) {
return X.capacity_in_bytes();
}

} // namespace llvm
} // End llvm namespace

namespace std {
/// Implement std::swap in terms of SmallVector swap.
Expand All @@ -940,6 +940,6 @@ namespace std {
swap(llvm::SmallVector<T, N> &LHS, llvm::SmallVector<T, N> &RHS) {
LHS.swap(RHS);
}
} // namespace std
}

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/Statistic.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,6 @@ void PrintStatistics();
/// \brief Print statistics to the given output stream.
void PrintStatistics(raw_ostream &OS);

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/StringExtras.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,6 @@ inline std::string join(IteratorT Begin, IteratorT End, StringRef Separator) {
return join_impl(Begin, End, Separator, tag());
}

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/StringMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,6 @@ class StringMapIterator : public StringMapConstIterator<ValueTy> {
}
};

} // namespace llvm
}

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/StringRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,6 @@ namespace llvm {
// StringRefs can be treated like a POD type.
template <typename T> struct isPodLike;
template <> struct isPodLike<StringRef> { static const bool value = true; };
} // namespace llvm
}

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/StringSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ namespace llvm {
return base::insert(std::make_pair(Key, '\0'));
}
};
} // namespace llvm
}

#endif // LLVM_ADT_STRINGSET_H
2 changes: 1 addition & 1 deletion include/llvm/ADT/Triple.h
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ class Triple {
/// @}
};

} // namespace llvm
} // End llvm namespace


#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/Twine.h
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,6 @@ namespace llvm {
}

/// @}
} // namespace llvm
}

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/edit_distance.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ unsigned ComputeEditDistance(ArrayRef<T> FromArray, ArrayRef<T> ToArray,
return Result;
}

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/ilist.h
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ struct ilist : public iplist<NodeTy> {
void resize(size_type newsize) { resize(newsize, NodeTy()); }
};

} // namespace llvm
} // End llvm namespace

namespace std {
// Ensure that swap uses the fast list swap...
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/ADT/ilist_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ class ilist_node : private ilist_half_node<NodeTy> {
/// @}
};

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,6 @@ struct pointee_iterator
T &operator*() const { return **this->I; }
};

} // namespace llvm
}

#endif
2 changes: 1 addition & 1 deletion include/llvm/ADT/iterator_range.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ template <class T> iterator_range<T> make_range(T x, T y) {
template <typename T> iterator_range<T> make_range(std::pair<T, T> p) {
return iterator_range<T>(std::move(p.first), std::move(p.second));
}
} // namespace llvm
}

#endif
2 changes: 1 addition & 1 deletion include/llvm/Analysis/AliasAnalysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,6 @@ bool isIdentifiedObject(const Value *V);
/// IdentifiedObjects.
bool isIdentifiedFunctionLocal(const Value *V);

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/Analysis/AliasSetTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,6 @@ inline raw_ostream& operator<<(raw_ostream &OS, const AliasSetTracker &AST) {
return OS;
}

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/Analysis/BlockFrequencyInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ class BlockFrequencyInfo : public FunctionPass {

};

} // namespace llvm
}

#endif
4 changes: 2 additions & 2 deletions include/llvm/Analysis/BlockFrequencyInfoImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ void IrreducibleGraph::addEdges(const BlockNode &Node,
else
addBlockEdges(*this, Irr, OuterLoop);
}
} // namespace bfi_detail
}

/// \brief Shared implementation for block frequency analysis.
///
Expand Down Expand Up @@ -1133,7 +1133,7 @@ template <class BT> struct BlockEdgesAdder {
G.addEdge(Irr, BFI.getNode(*I), OuterLoop);
}
};
} // namespace bfi_detail
}
template <class BT>
void BlockFrequencyInfoImpl<BT>::computeIrreducibleMass(
LoopData *OuterLoop, std::list<LoopData>::iterator Insert) {
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/Analysis/BranchProbabilityInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ class BranchProbabilityInfo : public FunctionPass {
bool calcInvokeHeuristics(BasicBlock *BB);
};

} // namespace llvm
}

#endif
2 changes: 1 addition & 1 deletion include/llvm/Analysis/CFG.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ bool isPotentiallyReachable(const BasicBlock *From, const BasicBlock *To,
const DominatorTree *DT = nullptr,
const LoopInfo *LI = nullptr);

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/Analysis/CFGPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ struct DOTGraphTraits<const Function*> : public DefaultDOTGraphTraits {
return "";
}
};
} // namespace llvm
} // End llvm namespace

namespace llvm {
class FunctionPass;
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/Analysis/CGSCCPassManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,6 @@ CGSCCToFunctionPassAdaptor<FunctionPassT>
createCGSCCToFunctionPassAdaptor(FunctionPassT Pass) {
return CGSCCToFunctionPassAdaptor<FunctionPassT>(std::move(Pass));
}
} // namespace llvm
}

#endif
2 changes: 1 addition & 1 deletion include/llvm/Analysis/CallGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,6 @@ struct GraphTraits<const CallGraph *> : public GraphTraits<
static const CallGraphNode &CGdereference(PairTy P) { return *P.second; }
};

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/Analysis/CallGraphSCCPass.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ class CallGraphSCC {
iterator end() const { return Nodes.end(); }
};

} // namespace llvm
} // End llvm namespace

#endif
2 changes: 1 addition & 1 deletion include/llvm/Analysis/CodeMetrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ struct CodeMetrics {
SmallPtrSetImpl<const Value *> &EphValues);
};

} // namespace llvm
}

#endif
Loading

0 comments on commit cd52a7a

Please sign in to comment.