Fixed/added namespace ending comments using clang-tidy. NFC

The patch is generated using this command:

tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py -fix \
  -checks=-*,llvm-namespace-comment -header-filter='llvm/.*|clang/.*' \
  llvm/lib/


Thanks to Eugene Kosov for the original patch!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alexander Kornienko
2015-06-19 15:57:42 +00:00
parent 883d498abf
commit cf0db29df2
940 changed files with 1157 additions and 1157 deletions

View File

@@ -203,6 +203,6 @@ ModulePass *createBarrierNoopPass();
/// to bitsets.
ModulePass *createLowerBitSetsPass();
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -86,6 +86,6 @@ private:
bool shouldInline(CallSite CS);
};
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -41,6 +41,6 @@ public:
PreservedAnalyses run(Function &F, AnalysisManager<Function> *AM);
};
}
} // namespace llvm
#endif

View File

@@ -136,6 +136,6 @@ FunctionPass *createBoundsCheckingPass();
/// protect against stack-based overflow vulnerabilities.
FunctionPass *createSafeStackPass();
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -43,6 +43,6 @@ Pass *createObjCARCContractPass();
//
Pass *createObjCARCOptPass();
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -486,6 +486,6 @@ FunctionPass *createNaryReassociatePass();
//
FunctionPass *createLoopDistributePass();
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -34,6 +34,6 @@ public:
PreservedAnalyses run(Function &F, AnalysisManager<Function> *AM);
};
}
} // namespace llvm
#endif

View File

@@ -35,6 +35,6 @@ public:
PreservedAnalyses run(Function &F);
};
}
} // namespace llvm
#endif

View File

@@ -41,6 +41,6 @@ public:
PreservedAnalyses run(Function &F, AnalysisManager<Function> *AM);
};
}
} // namespace llvm
#endif

View File

@@ -59,6 +59,6 @@ void ComputeASanStackFrameLayout(
// The result is put here.
ASanStackFrameLayout *Layout);
} // llvm namespace
} // namespace llvm
#endif // LLVM_TRANSFORMS_UTILS_ASANSTACKFRAMELAYOUT_H

View File

@@ -308,6 +308,6 @@ void SplitBlockAndInsertIfThenElse(Value *Cond, Instruction *SplitBefore,
/// entered if the condition is false.
Value *GetIfCondition(BasicBlock *BB, BasicBlock *&IfTrue,
BasicBlock *&IfFalse);
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -111,6 +111,6 @@ namespace llvm {
/// a pointer, Size is an 'intptr_t', and File is a pointer to FILE.
Value *EmitFWrite(Value *Ptr, Value *Size, Value *File, IRBuilder<> &B,
const DataLayout &DL, const TargetLibraryInfo *TLI);
}
} // namespace llvm
#endif

View File

@@ -233,6 +233,6 @@ bool InlineFunction(InvokeInst *II, InlineFunctionInfo &IFI,
bool InlineFunction(CallSite CS, InlineFunctionInfo &IFI,
bool InsertLifetime = true);
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -121,6 +121,6 @@ namespace llvm {
ValueSet &inputs,
ValueSet &outputs);
};
}
} // namespace llvm
#endif

View File

@@ -27,6 +27,6 @@ class Module;
bool optimizeGlobalCtorsList(Module &M,
function_ref<bool(Function *)> ShouldRemove);
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -77,6 +77,6 @@ struct GlobalStatus {
GlobalStatus();
};
}
} // namespace llvm
#endif

View File

@@ -68,6 +68,6 @@ namespace llvm {
/// @brief Replace Rem with generated code.
bool expandDivisionUpTo64Bits(BinaryOperator *Div);
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -291,6 +291,6 @@ void combineMetadata(Instruction *K, const Instruction *J, ArrayRef<unsigned> Kn
/// the given edge. Returns the number of replacements made.
unsigned replaceDominatedUsesWith(Value *From, Value *To, DominatorTree &DT,
const BasicBlockEdge &Edge);
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -263,6 +263,6 @@ void computeLICMSafetyInfo(LICMSafetyInfo *, Loop *);
/// variable. Returns true if this is an induction PHI along with the step
/// value.
bool isInductionPHI(PHINode *, ScalarEvolution *, ConstantInt *&);
}
} // namespace llvm
#endif

View File

@@ -57,6 +57,6 @@ Function *checkSanitizerInterfaceFunction(Constant *FuncOrBitcast);
std::pair<Function *, Function *> createSanitizerCtorAndInitFunctions(
Module &M, StringRef CtorName, StringRef InitName,
ArrayRef<Type *> InitArgTypes, ArrayRef<Value *> InitArgs);
} // End llvm namespace
} // namespace llvm
#endif // LLVM_TRANSFORMS_UTILS_MODULEUTILS_H

View File

@@ -45,6 +45,6 @@ void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
AliasSetTracker *AST = nullptr,
AssumptionCache *AC = nullptr);
} // End llvm namespace
} // namespace llvm
#endif

View File

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

View File

@@ -455,6 +455,6 @@ public:
#undef DEBUG_TYPE // "ssaupdater"
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -166,6 +166,6 @@ private:
/// function by checking for an existing function with name FuncName + f
bool hasFloatVersion(StringRef FuncName);
};
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -108,7 +108,7 @@ private:
yaml::MappingNode *V,
RewriteDescriptorList *DL);
};
}
} // namespace SymbolRewriter
template <>
struct ilist_traits<SymbolRewriter::RewriteDescriptor>
@@ -147,6 +147,6 @@ public:
ModulePass *createRewriteSymbolsPass();
ModulePass *createRewriteSymbolsPass(SymbolRewriter::RewriteDescriptorList &);
}
} // namespace llvm
#endif

View File

@@ -47,6 +47,6 @@ public:
Pass *createUnifyFunctionExitNodesPass();
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -37,6 +37,6 @@ bool UnrollRuntimeLoopProlog(Loop *L, unsigned Count,
LPPassManager *LPM);
MDNode *GetUnrollMetadata(MDNode *LoopID, StringRef Name);
}
} // namespace llvm
#endif

View File

@@ -96,6 +96,6 @@ namespace llvm {
Materializer));
}
} // End llvm namespace
} // namespace llvm
#endif

View File

@@ -200,6 +200,6 @@ getIntrinsicIDForCall(CallInst *CI, const TargetLibraryInfo *TLI) {
return Intrinsic::not_intrinsic;
}
} // llvm namespace
} // namespace llvm
#endif

View File

@@ -139,6 +139,6 @@ Pass *createSLPVectorizerPass();
bool vectorizeBasicBlock(Pass *P, BasicBlock &BB,
const VectorizeConfig &C = VectorizeConfig());
} // End llvm namespace
} // namespace llvm
#endif