Revert r240137 (Fixed/added namespace ending comments using clang-tidy. 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
This commit is contained in:
Alexander Kornienko 2015-06-23 09:49:53 +00:00
parent d96e362b3f
commit cd52a7a381
939 changed files with 1156 additions and 1156 deletions

View File

@ -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

View File

@ -366,6 +366,6 @@ namespace llvm {
template <typename T> struct isPodLike<ArrayRef<T> > {
static const bool value = true;
};
} // namespace llvm
}
#endif

View File

@ -568,7 +568,7 @@ private:
}
};
} // namespace llvm
} // End llvm namespace
namespace std {
/// Implement std::swap in terms of BitVector swap.

View File

@ -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>,

View File

@ -32,7 +32,7 @@ public:
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> >

View File

@ -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

View File

@ -278,6 +278,6 @@ public:
};
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -101,6 +101,6 @@ struct GraphTraits<Inverse<Inverse<T> > > {
}
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -80,6 +80,6 @@ template <typename T, typename ToIndexT = llvm::identity<unsigned> >
}
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -83,6 +83,6 @@ public:
void uncompress();
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -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

View File

@ -507,6 +507,6 @@ namespace llvm {
RHS.template get<U>()));
}
};
} // namespace llvm
}
#endif

View File

@ -295,6 +295,6 @@ public:
rpo_iterator end() { return Blocks.rend(); }
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -79,6 +79,6 @@ public:
}
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -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

View File

@ -417,6 +417,6 @@ template <typename T> struct deref {
}
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -66,6 +66,6 @@ void set_subtract(S1Ty &S1, const S2Ty &S2) {
S1.erase(*SI);
}
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -225,7 +225,7 @@ public:
}
};
} // namespace llvm
} // End llvm namespace
// vim: sw=2 ai
#endif

View File

@ -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.

View File

@ -334,7 +334,7 @@ public:
}
};
} // namespace llvm
}
namespace std {
/// Implement std::swap in terms of SmallPtrSet swap.

View File

@ -292,6 +292,6 @@ public:
}
};
} // namespace llvm
}
#endif

View File

@ -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.
@ -940,6 +940,6 @@ namespace std {
swap(llvm::SmallVector<T, N> &LHS, llvm::SmallVector<T, N> &RHS) {
LHS.swap(RHS);
}
} // namespace std
}
#endif

View File

@ -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

View File

@ -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

View File

@ -447,6 +447,6 @@ public:
}
};
} // namespace llvm
}
#endif

View File

@ -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

View File

@ -29,6 +29,6 @@ namespace llvm {
return base::insert(std::make_pair(Key, '\0'));
}
};
} // namespace llvm
}
#endif // LLVM_ADT_STRINGSET_H

View File

@ -609,7 +609,7 @@ public:
/// @}
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -537,6 +537,6 @@ namespace llvm {
}
/// @}
} // namespace llvm
}
#endif

View File

@ -97,6 +97,6 @@ unsigned ComputeEditDistance(ArrayRef<T> FromArray, ArrayRef<T> ToArray,
return Result;
}
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -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...

View File

@ -101,6 +101,6 @@ public:
/// @}
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -239,6 +239,6 @@ struct pointee_iterator
T &operator*() const { return **this->I; }
};
} // namespace llvm
}
#endif

View File

@ -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

View File

@ -570,6 +570,6 @@ bool isIdentifiedObject(const Value *V);
/// IdentifiedObjects.
bool isIdentifiedFunctionLocal(const Value *V);
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -443,6 +443,6 @@ inline raw_ostream& operator<<(raw_ostream &OS, const AliasSetTracker &AST) {
return OS;
}
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -63,6 +63,6 @@ public:
};
} // namespace llvm
}
#endif

View File

@ -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.
///
@ -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) {

View File

@ -158,6 +158,6 @@ private:
bool calcInvokeHeuristics(BasicBlock *BB);
};
} // namespace llvm
}
#endif

View File

@ -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

View File

@ -119,7 +119,7 @@ struct DOTGraphTraits<const Function*> : public DefaultDOTGraphTraits {
return "";
}
};
} // namespace llvm
} // End llvm namespace
namespace llvm {
class FunctionPass;

View File

@ -485,6 +485,6 @@ CGSCCToFunctionPassAdaptor<FunctionPassT>
createCGSCCToFunctionPassAdaptor(FunctionPassT Pass) {
return CGSCCToFunctionPassAdaptor<FunctionPassT>(std::move(Pass));
}
} // namespace llvm
}
#endif

View File

@ -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

View File

@ -102,6 +102,6 @@ public:
iterator end() const { return Nodes.end(); }
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -102,6 +102,6 @@ struct CodeMetrics {
SmallPtrSetImpl<const Value *> &EphValues);
};
} // namespace llvm
}
#endif

View File

@ -97,6 +97,6 @@ bool canConstantFoldCallTo(const Function *F);
/// with the specified arguments, returning null if unsuccessful.
Constant *ConstantFoldCall(Function *F, ArrayRef<Constant *> Operands,
const TargetLibraryInfo *TLI = nullptr);
} // namespace llvm
}
#endif

View File

@ -25,6 +25,6 @@ namespace llvm {
FunctionPass *createPostDomOnlyPrinterPass();
FunctionPass *createPostDomViewerPass();
FunctionPass *createPostDomOnlyViewerPass();
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -205,6 +205,6 @@ public:
EXTERN_TEMPLATE_INSTANTIATION(class DominanceFrontierBase<BasicBlock>);
EXTERN_TEMPLATE_INSTANTIATION(class ForwardDominanceFrontierBase<BasicBlock>);
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -221,6 +221,6 @@ ForwardDominanceFrontierBase<BlockT>::calculate(const DomTreeT &DT,
return *Result;
}
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -178,6 +178,6 @@ protected:
Pass *createIVUsersPass();
} // namespace llvm
}
#endif

View File

@ -36,7 +36,7 @@ namespace InlineConstants {
/// Do not inline functions which allocate this many bytes on the stack
/// when the caller is recursive.
const unsigned TotalAllocaSizeRecursiveCaller = 1024;
} // namespace InlineConstants
}
/// \brief Represents the cost of inlining a function.
///
@ -138,6 +138,6 @@ public:
bool isInlineViable(Function &Callee);
};
} // namespace llvm
}
#endif

View File

@ -145,6 +145,6 @@ template <> struct GraphTraits<Inverse<Interval*> > {
}
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -263,6 +263,6 @@ inline interval_part_interval_iterator intervals_end(IntervalPartition &IP) {
return interval_part_interval_iterator();
}
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -106,6 +106,6 @@ private:
void updatePredecessors(Interval *Int);
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -92,5 +92,5 @@ private:
const SmallPtrSetImpl<BasicBlock *> *DefBlocks;
SmallVector<BasicBlock *, 32> PHIBlocks;
};
} // namespace llvm
}
#endif

View File

@ -66,6 +66,6 @@ private:
/// bound specifies the maximum number of bytes needed to represent an
/// unconditional jump or a trap instruction in the back end currently in use.
ModulePass *createJumpInstrTableInfoPass(unsigned Bound);
} // namespace llvm
}
#endif /* LLVM_ANALYSIS_JUMPINSTRTABLEINFO_H */

View File

@ -569,6 +569,6 @@ public:
static StringRef name() { return "LazyCallGraphPrinterPass"; }
};
} // namespace llvm
}
#endif

View File

@ -66,6 +66,6 @@ namespace llvm {
ImmutableCallSite CS,
const MemoryLocation &Loc);
};
} // namespace llvm
} // End of llvm namespace
#endif

View File

@ -44,6 +44,6 @@ void lintFunction(
const Function &F ///< The function to be checked
);
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -52,6 +52,6 @@ Value *FindAvailableLoadedValue(Value *Ptr, BasicBlock *ScanBB,
AliasAnalysis *AA = nullptr,
AAMDNodes *AATags = nullptr);
} // namespace llvm
}
#endif

View File

@ -555,6 +555,6 @@ private:
DominatorTree *DT;
LoopInfo *LI;
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -763,6 +763,6 @@ public:
void getAnalysisUsage(AnalysisUsage &AU) const override;
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -535,6 +535,6 @@ void LoopInfoBase<BlockT, LoopT>::verify() const {
#endif
}
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -169,6 +169,6 @@ private:
Loop *CurrentLoop;
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -262,6 +262,6 @@ public:
SizeOffsetEvalType visitInstruction(Instruction &I);
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -445,6 +445,6 @@ namespace llvm {
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -137,6 +137,6 @@ template <> struct DenseMapInfo<MemoryLocation> {
return LHS == RHS;
}
};
} // namespace llvm
}
#endif

View File

@ -173,6 +173,6 @@ namespace llvm {
//
FunctionPass *createMemDerefPrinter();
} // namespace llvm
}
#endif

View File

@ -112,6 +112,6 @@ template <> struct GraphTraits<PostDominatorTree*>
}
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -280,6 +280,6 @@ protected:
}
};
} // namespace llvm
}
#endif

View File

@ -906,5 +906,5 @@ EXTERN_TEMPLATE_INSTANTIATION(class RegionBase<RegionTraits<Function>>);
EXTERN_TEMPLATE_INSTANTIATION(class RegionNodeBase<RegionTraits<Function>>);
EXTERN_TEMPLATE_INSTANTIATION(class RegionInfoBase<RegionTraits<Function>>);
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -123,6 +123,6 @@ public:
}
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -981,6 +981,6 @@ namespace llvm {
/// to locate them all and call their destructors.
SCEVUnknown *FirstUnknown;
};
} // namespace llvm
}
#endif

View File

@ -275,6 +275,6 @@ namespace llvm {
Value *expandIVInc(PHINode *PN, Value *StepV, const Loop *L,
Type *ExpandTy, Type *IntTy, bool useSubtract);
};
} // namespace llvm
}
#endif

View File

@ -829,6 +829,6 @@ static inline const SCEV *apply(const SCEV *Scev, LoopToScevMapT &Map,
return SCEVApplyRewriter::rewrite(Scev, Map, SE);
}
} // namespace llvm
}
#endif

View File

@ -73,6 +73,6 @@ const SCEV *TransformForPostIncUse(TransformKind Kind,
ScalarEvolution &SE,
DominatorTree &DT);
} // namespace llvm
}
#endif

View File

@ -265,6 +265,6 @@ public:
}
};
} // namespace llvm
}
#endif

View File

@ -908,6 +908,6 @@ public:
/// clients.
ImmutablePass *createTargetTransformInfoWrapperPass(TargetIRAnalysis TIRA);
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -446,6 +446,6 @@ public:
U->getNumOperands() == 1 ? U->getOperand(0)->getType() : nullptr);
}
};
} // namespace llvm
}
#endif

View File

@ -67,6 +67,6 @@ std::unique_ptr<Module> parseAssembly(MemoryBufferRef F, SMDiagnostic &Err,
/// @return true on error.
bool parseAssemblyInto(MemoryBufferRef F, Module &M, SMDiagnostic &Err);
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -77,7 +77,7 @@ namespace bitc {
// [id, name]
};
} // namespace bitc
} // End bitc namespace
/// BitCodeAbbrevOp - This describes one or more operands in an abbreviation.
/// This is actually a union of two different things:
@ -180,6 +180,6 @@ public:
OperandList.push_back(OpInfo);
}
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -56,6 +56,6 @@ public:
static StringRef name() { return "BitcodeWriterPass"; }
};
} // namespace llvm
}
#endif

View File

@ -512,6 +512,6 @@ public:
bool ReadBlockInfoBlock();
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -520,6 +520,6 @@ public:
};
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -416,7 +416,7 @@ namespace bitc {
COMDAT_SELECTION_KIND_SAME_SIZE = 5,
};
} // namespace bitc
} // namespace llvm
} // End bitc namespace
} // End llvm namespace
#endif

View File

@ -166,7 +166,7 @@ namespace llvm {
}
};
} // namespace llvm
} // End llvm namespace
namespace std {
template <> struct is_error_code_enum<llvm::BitcodeError> : std::true_type {};

View File

@ -115,6 +115,6 @@ bool returnTypeIsEligibleForTailCall(const Function *F,
// or we are in LTO.
bool canBeOmittedFromSymbolTable(const GlobalValue *GV);
} // namespace llvm
} // End llvm namespace
#endif

View File

@ -535,6 +535,6 @@ private:
void EmitXXStructorList(const Constant *List, bool isCtor);
GCMetadataPrinter *GetOrCreateGCPrinter(GCStrategy &C);
};
} // namespace llvm
}
#endif

View File

@ -830,6 +830,6 @@ public:
}
};
} // namespace llvm
}
#endif

View File

@ -74,6 +74,6 @@ namespace llvm {
const MachineBlockFrequencyInfo &MBFI,
VirtRegAuxInfo::NormalizingFn norm =
normalizeSpillWeight);
} // namespace llvm
}
#endif // LLVM_CODEGEN_CALCSPILLWEIGHTS_H

View File

@ -159,6 +159,6 @@ public:
}
};
} // namespace llvm
}
#endif

View File

@ -635,6 +635,6 @@ public:
#endif
};
} // namespace llvm
} // end llvm namespace
#endif

View File

@ -69,6 +69,6 @@ private:
void emitFunctionInfo(const MCSymbol *FnLabel, const FunctionFaultInfos &FFI);
};
} // namespace llvm
}
#endif

View File

@ -201,6 +201,6 @@ public:
/// will soon change.
GCFunctionInfo &getFunctionInfo(const Function &F);
};
} // namespace llvm
}
#endif

View File

@ -59,6 +59,6 @@ public:
virtual ~GCMetadataPrinter();
};
} // namespace llvm
}
#endif

View File

@ -172,6 +172,6 @@ public:
/// register your GCMetadataPrinter subclass with the
/// GCMetadataPrinterRegistery as well.
typedef Registry<GCStrategy> GCRegistry;
} // namespace llvm
}
#endif

View File

@ -41,6 +41,6 @@ void linkErlangGCPrinter();
void linkShadowStackGC();
void linkStatepointExampleGC();
} // namespace llvm
}
#endif

View File

@ -892,8 +892,8 @@ namespace ISD {
CVT_INVALID /// Marker - Invalid opcode
};
} // namespace ISD
} // end llvm::ISD namespace
} // namespace llvm
} // end llvm namespace
#endif

View File

@ -54,6 +54,6 @@ namespace llvm {
/// simple integer bswap.
static bool LowerToByteSwap(CallInst *CI);
};
} // namespace llvm
}
#endif

View File

@ -93,6 +93,6 @@ private:
void AdjustPriorityOfUnscheduledPreds(SUnit *SU);
SUnit *getSingleUnscheduledPred(SUnit *SU);
};
} // namespace llvm
}
#endif

Some files were not shown because too many files have changed in this diff Show More