summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2016-06-23 22:17:27 +0000
committerTobias Grosser <tobias@grosser.es>2016-06-23 22:17:27 +0000
commit522478d2c0a1162a42d35faf5c3bfaaa4ff450ab (patch)
tree2c1619df8b24da1a0358a210ca036ce635d98626
parent64adae59f3b95ca64464c69081a1c1711f9ddee3 (diff)
clang-tidy: Add llvm namespace comments
llvm commonly adds a comment to the closing brace of a namespace to indicate which namespace is closed. clang-tidy provides with llvm-namespace-comment a handy tool to check for this habit. We use it to ensure we consitently use namespace comments in Polly. There are slightly different styles in how namespaces are closed in LLVM. As there is no large difference between the different comment styles we go for the style clang-tidy suggests by default. To reproduce this fix run: for i in `ls tools/polly/lib/*/*.cpp`; \ clang-tidy -checks='-*,llvm-namespace-comment' -p build $i -fix \ -header-filter=".*"; \ done This cleanup was suggested by Eugene Zelenko <eugene.zelenko@gmail.com> in http://reviews.llvm.org/D21488 and was split out to increase readability. llvm-svn: 273621
-rw-r--r--polly/include/polly/Canonicalization.h2
-rw-r--r--polly/include/polly/CodeGen/BlockGenerators.h4
-rw-r--r--polly/include/polly/CodeGen/CodeGeneration.h2
-rw-r--r--polly/include/polly/CodeGen/CodegenCleanup.h6
-rw-r--r--polly/include/polly/CodeGen/IRBuilder.h4
-rw-r--r--polly/include/polly/CodeGen/IslAst.h6
-rw-r--r--polly/include/polly/CodeGen/IslExprBuilder.h6
-rw-r--r--polly/include/polly/CodeGen/LoopGenerators.h2
-rw-r--r--polly/include/polly/CodeGen/RuntimeDebugBuilder.h4
-rw-r--r--polly/include/polly/CodeGen/Utils.h4
-rw-r--r--polly/include/polly/DependenceInfo.h4
-rw-r--r--polly/include/polly/LinkAllPasses.h8
-rw-r--r--polly/include/polly/RegisterPasses.h6
-rw-r--r--polly/include/polly/ScheduleOptimizer.h2
-rw-r--r--polly/include/polly/ScopDetection.h4
-rw-r--r--polly/include/polly/ScopDetectionDiagnostic.h2
-rw-r--r--polly/include/polly/ScopInfo.h4
-rw-r--r--polly/include/polly/ScopPass.h2
-rw-r--r--polly/include/polly/Support/GICHelper.h2
-rw-r--r--polly/include/polly/Support/SCEVAffinator.h4
-rw-r--r--polly/include/polly/Support/SCEVValidator.h4
-rw-r--r--polly/include/polly/Support/ScopHelper.h8
-rw-r--r--polly/include/polly/Support/ScopLocation.h4
-rw-r--r--polly/lib/Analysis/ScopDetectionDiagnostic.cpp4
-rw-r--r--polly/lib/CodeGen/CodeGeneration.cpp2
-rw-r--r--polly/lib/CodeGen/CodegenCleanup.cpp2
-rw-r--r--polly/lib/CodeGen/IslAst.cpp2
-rw-r--r--polly/lib/Exchange/JSONExporter.cpp2
-rw-r--r--polly/lib/Support/RegisterPasses.cpp2
-rw-r--r--polly/lib/Support/SCEVValidator.cpp4
-rw-r--r--polly/lib/Support/ScopLocation.cpp2
-rw-r--r--polly/lib/Transform/Canonicalization.cpp2
-rw-r--r--polly/lib/Transform/CodePreparation.cpp2
-rw-r--r--polly/lib/Transform/DeadCodeElimination.cpp2
-rw-r--r--polly/lib/Transform/ScheduleOptimizer.cpp2
35 files changed, 61 insertions, 61 deletions
diff --git a/polly/include/polly/Canonicalization.h b/polly/include/polly/Canonicalization.h
index 723b49073bab..6bd16fb6bbb8 100644
--- a/polly/include/polly/Canonicalization.h
+++ b/polly/include/polly/Canonicalization.h
@@ -22,6 +22,6 @@ namespace polly {
/// of Polly. The set of optimization passes scheduled here is probably not yet
/// optimal. TODO: Optimize the set of canonicalization passes.
void registerCanonicalicationPasses(llvm::legacy::PassManagerBase &PM);
-}
+} // namespace polly
#endif
diff --git a/polly/include/polly/CodeGen/BlockGenerators.h b/polly/include/polly/CodeGen/BlockGenerators.h
index 8f8351a5a1d4..5efb596958e3 100644
--- a/polly/include/polly/CodeGen/BlockGenerators.h
+++ b/polly/include/polly/CodeGen/BlockGenerators.h
@@ -29,7 +29,7 @@ namespace llvm {
class Pass;
class Region;
class ScalarEvolution;
-}
+} // namespace llvm
namespace polly {
using namespace llvm;
@@ -833,5 +833,5 @@ private:
ValueMapT &BBMap,
LoopToScevMapT &LTS) override;
};
-}
+} // namespace polly
#endif
diff --git a/polly/include/polly/CodeGen/CodeGeneration.h b/polly/include/polly/CodeGen/CodeGeneration.h
index 03dc869c2e73..5c6430a7601d 100644
--- a/polly/include/polly/CodeGen/CodeGeneration.h
+++ b/polly/include/polly/CodeGen/CodeGeneration.h
@@ -23,6 +23,6 @@ enum VectorizerChoice {
VECTORIZER_POLLY,
};
extern VectorizerChoice PollyVectorizerChoice;
-}
+} // namespace polly
#endif // POLLY_CODEGENERATION_H
diff --git a/polly/include/polly/CodeGen/CodegenCleanup.h b/polly/include/polly/CodeGen/CodegenCleanup.h
index 779532f8a1fb..a1fd6805dfe5 100644
--- a/polly/include/polly/CodeGen/CodegenCleanup.h
+++ b/polly/include/polly/CodeGen/CodegenCleanup.h
@@ -4,14 +4,14 @@
namespace llvm {
class FunctionPass;
class PassRegistry;
-}
+} // namespace llvm
namespace polly {
llvm::FunctionPass *createCodegenCleanupPass();
-}
+} // namespace polly
namespace llvm {
void initializeCodegenCleanupPass(llvm::PassRegistry &);
-}
+} // namespace llvm
#endif
diff --git a/polly/include/polly/CodeGen/IRBuilder.h b/polly/include/polly/CodeGen/IRBuilder.h
index 169e288015f5..4367405b7822 100644
--- a/polly/include/polly/CodeGen/IRBuilder.h
+++ b/polly/include/polly/CodeGen/IRBuilder.h
@@ -21,7 +21,7 @@
namespace llvm {
class ScalarEvolution;
-}
+} // namespace llvm
namespace polly {
class Scop;
@@ -140,5 +140,5 @@ static inline PollyIRBuilder createPollyIRBuilder(llvm::BasicBlock *BB,
Builder.SetInsertPoint(BB->getTerminator());
return Builder;
}
-}
+} // namespace polly
#endif
diff --git a/polly/include/polly/CodeGen/IslAst.h b/polly/include/polly/CodeGen/IslAst.h
index 0ee9dffa20e7..3903cf2a0c5d 100644
--- a/polly/include/polly/CodeGen/IslAst.h
+++ b/polly/include/polly/CodeGen/IslAst.h
@@ -28,7 +28,7 @@
namespace llvm {
class raw_ostream;
-}
+} // namespace llvm
struct isl_pw_aff;
struct isl_ast_node;
@@ -183,10 +183,10 @@ public:
///}
};
-}
+} // namespace polly
namespace llvm {
class PassRegistry;
void initializeIslAstInfoPass(llvm::PassRegistry &);
-}
+} // namespace llvm
#endif /* POLLY_ISL_AST_H */
diff --git a/polly/include/polly/CodeGen/IslExprBuilder.h b/polly/include/polly/CodeGen/IslExprBuilder.h
index 3e112829e50b..12ed91518ca4 100644
--- a/polly/include/polly/CodeGen/IslExprBuilder.h
+++ b/polly/include/polly/CodeGen/IslExprBuilder.h
@@ -21,7 +21,7 @@
namespace llvm {
class DataLayout;
class ScalarEvolution;
-}
+} // namespace llvm
struct isl_id;
@@ -36,7 +36,7 @@ public:
}
enum { NumLowBitsAvailable = 0 };
};
-}
+} // namespace llvm
namespace polly {
@@ -227,6 +227,6 @@ private:
llvm::Value *createMul(llvm::Value *LHS, llvm::Value *RHS,
const llvm::Twine &Name = "");
};
-}
+} // namespace polly
#endif
diff --git a/polly/include/polly/CodeGen/LoopGenerators.h b/polly/include/polly/CodeGen/LoopGenerators.h
index 6e2dd4f9c58a..70eeaa2d5100 100644
--- a/polly/include/polly/CodeGen/LoopGenerators.h
+++ b/polly/include/polly/CodeGen/LoopGenerators.h
@@ -24,7 +24,7 @@ namespace llvm {
class Value;
class Pass;
class BasicBlock;
-}
+} // namespace llvm
namespace polly {
using namespace llvm;
diff --git a/polly/include/polly/CodeGen/RuntimeDebugBuilder.h b/polly/include/polly/CodeGen/RuntimeDebugBuilder.h
index 7ea1115e1586..7dd0453811c6 100644
--- a/polly/include/polly/CodeGen/RuntimeDebugBuilder.h
+++ b/polly/include/polly/CodeGen/RuntimeDebugBuilder.h
@@ -20,7 +20,7 @@
namespace llvm {
class Value;
class Function;
-}
+} // namespace llvm
namespace polly {
@@ -147,6 +147,6 @@ private:
static std::vector<llvm::Value *>
getGPUThreadIdentifiers(PollyIRBuilder &Builder);
};
-}
+} // namespace polly
#endif
diff --git a/polly/include/polly/CodeGen/Utils.h b/polly/include/polly/CodeGen/Utils.h
index 0752aa368ded..b8db254651c9 100644
--- a/polly/include/polly/CodeGen/Utils.h
+++ b/polly/include/polly/CodeGen/Utils.h
@@ -17,7 +17,7 @@ namespace llvm {
class Pass;
class Value;
class BasicBlock;
-}
+} // namespace llvm
namespace polly {
@@ -57,5 +57,5 @@ class Scop;
/// @return The 'StartBlock' to which new code can be added.
llvm::BasicBlock *executeScopConditionally(Scop &S, llvm::Pass *P,
llvm::Value *RTC);
-}
+} // namespace polly
#endif
diff --git a/polly/include/polly/DependenceInfo.h b/polly/include/polly/DependenceInfo.h
index 1654525fc32d..609e81076893 100644
--- a/polly/include/polly/DependenceInfo.h
+++ b/polly/include/polly/DependenceInfo.h
@@ -232,11 +232,11 @@ private:
std::unique_ptr<Dependences> D[Dependences::NumAnalysisLevels];
};
-} // End polly namespace.
+} // namespace polly
namespace llvm {
class PassRegistry;
void initializeDependenceInfoPass(llvm::PassRegistry &);
-}
+} // namespace llvm
#endif
diff --git a/polly/include/polly/LinkAllPasses.h b/polly/include/polly/LinkAllPasses.h
index 3225e0d78862..d9f07a06ef39 100644
--- a/polly/include/polly/LinkAllPasses.h
+++ b/polly/include/polly/LinkAllPasses.h
@@ -23,7 +23,7 @@ class Pass;
class PassInfo;
class PassRegistry;
class RegionPass;
-}
+} // namespace llvm
namespace polly {
llvm::Pass *createCodePreparationPass();
@@ -43,7 +43,7 @@ llvm::Pass *createCodeGenerationPass();
llvm::Pass *createIslScheduleOptimizerPass();
extern char &CodePreparationID;
-}
+} // namespace polly
namespace {
struct PollyForcePassLinking {
@@ -72,7 +72,7 @@ struct PollyForcePassLinking {
polly::createIslScheduleOptimizerPass();
}
} PollyForcePassLinking; // Force link by creating a global definition.
-}
+} // namespace
namespace llvm {
class PassRegistry;
@@ -84,6 +84,6 @@ void initializeIslAstInfoPass(llvm::PassRegistry &);
void initializeCodeGenerationPass(llvm::PassRegistry &);
void initializeIslScheduleOptimizerPass(llvm::PassRegistry &);
void initializePollyCanonicalizePass(llvm::PassRegistry &);
-}
+} // namespace llvm
#endif
diff --git a/polly/include/polly/RegisterPasses.h b/polly/include/polly/RegisterPasses.h
index 38aca82bff4f..dc2aa251445a 100644
--- a/polly/include/polly/RegisterPasses.h
+++ b/polly/include/polly/RegisterPasses.h
@@ -19,11 +19,11 @@
namespace llvm {
namespace legacy {
class PassManagerBase;
-}
-}
+} // namespace legacy
+} // namespace llvm
namespace polly {
void initializePollyPasses(llvm::PassRegistry &Registry);
void registerPollyPasses(llvm::legacy::PassManagerBase &PM);
-}
+} // namespace polly
#endif
diff --git a/polly/include/polly/ScheduleOptimizer.h b/polly/include/polly/ScheduleOptimizer.h
index f22784abe2f6..138f4b343dc5 100644
--- a/polly/include/polly/ScheduleOptimizer.h
+++ b/polly/include/polly/ScheduleOptimizer.h
@@ -23,7 +23,7 @@ struct isl_union_map;
namespace polly {
extern bool DisablePollyTiling;
class Scop;
-}
+} // namespace polly
class ScheduleTreeOptimizer {
public:
diff --git a/polly/include/polly/ScopDetection.h b/polly/include/polly/ScopDetection.h
index 38c8a834211a..0b73681edfcb 100644
--- a/polly/include/polly/ScopDetection.h
+++ b/polly/include/polly/ScopDetection.h
@@ -71,7 +71,7 @@ class CallInst;
class Instruction;
class Value;
class IntrinsicInst;
-}
+} // namespace llvm
namespace polly {
typedef std::set<const SCEV *> ParamSetType;
@@ -590,6 +590,6 @@ public:
namespace llvm {
class PassRegistry;
void initializeScopDetectionPass(llvm::PassRegistry &);
-}
+} // namespace llvm
#endif
diff --git a/polly/include/polly/ScopDetectionDiagnostic.h b/polly/include/polly/ScopDetectionDiagnostic.h
index 85d172326987..91ced7bcebd8 100644
--- a/polly/include/polly/ScopDetectionDiagnostic.h
+++ b/polly/include/polly/ScopDetectionDiagnostic.h
@@ -39,7 +39,7 @@ class SCEV;
class BasicBlock;
class Value;
class Region;
-}
+} // namespace llvm
namespace polly {
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h
index 7d02ec5b43c8..976045fbbc5c 100644
--- a/polly/include/polly/ScopInfo.h
+++ b/polly/include/polly/ScopInfo.h
@@ -43,7 +43,7 @@ class ScalarEvolution;
class SCEV;
class SCEVAddRecExpr;
class Type;
-}
+} // namespace llvm
struct isl_ctx;
struct isl_map;
@@ -2536,6 +2536,6 @@ public:
namespace llvm {
class PassRegistry;
void initializeScopInfoRegionPassPass(llvm::PassRegistry &);
-}
+} // namespace llvm
#endif
diff --git a/polly/include/polly/ScopPass.h b/polly/include/polly/ScopPass.h
index 5f18ebaa0acd..ca20cbaaf83a 100644
--- a/polly/include/polly/ScopPass.h
+++ b/polly/include/polly/ScopPass.h
@@ -52,6 +52,6 @@ private:
void print(raw_ostream &OS, const Module *) const override;
};
-} // End llvm namespace
+} // namespace polly
#endif
diff --git a/polly/include/polly/Support/GICHelper.h b/polly/include/polly/Support/GICHelper.h
index 87f644cc4bde..0b50954df70f 100644
--- a/polly/include/polly/Support/GICHelper.h
+++ b/polly/include/polly/Support/GICHelper.h
@@ -34,7 +34,7 @@ struct isl_space;
namespace llvm {
class Value;
-}
+} // namespace llvm
namespace polly {
__isl_give isl_val *isl_valFromAPInt(isl_ctx *Ctx, const llvm::APInt Int,
diff --git a/polly/include/polly/Support/SCEVAffinator.h b/polly/include/polly/Support/SCEVAffinator.h
index 98081409ad7d..011688a8987f 100644
--- a/polly/include/polly/Support/SCEVAffinator.h
+++ b/polly/include/polly/Support/SCEVAffinator.h
@@ -37,7 +37,7 @@ class Region;
class BasicBlock;
class DataLayout;
class ScalarEvolution;
-}
+} // namespace llvm
namespace polly {
class Scop;
@@ -130,6 +130,6 @@ private:
friend struct llvm::SCEVVisitor<SCEVAffinator, PWACtx>;
};
-}
+} // namespace polly
#endif
diff --git a/polly/include/polly/Support/SCEVValidator.h b/polly/include/polly/Support/SCEVValidator.h
index 15ec692f4da1..996044b48f50 100644
--- a/polly/include/polly/Support/SCEVValidator.h
+++ b/polly/include/polly/Support/SCEVValidator.h
@@ -23,7 +23,7 @@ class ScalarEvolution;
class Value;
class Loop;
class LoadInst;
-}
+} // namespace llvm
namespace polly {
/// @brief Find the loops referenced from a SCEV expression.
@@ -73,6 +73,6 @@ ParameterSetTy getParamsInAffineExpr(const llvm::Region *R, llvm::Loop *Scope,
/// @returns The constant factor in @p M and the rest of @p M.
std::pair<const llvm::SCEVConstant *, const llvm::SCEV *>
extractConstantFactor(const llvm::SCEV *M, llvm::ScalarEvolution &SE);
-}
+} // namespace polly
#endif
diff --git a/polly/include/polly/Support/ScopHelper.h b/polly/include/polly/Support/ScopHelper.h
index 1f73de88ed60..a182a65a948e 100644
--- a/polly/include/polly/Support/ScopHelper.h
+++ b/polly/include/polly/Support/ScopHelper.h
@@ -29,7 +29,7 @@ class Region;
class Pass;
class DominatorTree;
class RegionInfo;
-}
+} // namespace llvm
namespace polly {
class Scop;
@@ -275,7 +275,7 @@ private:
return llvm::cast<llvm::MemTransferInst>(I);
}
};
-}
+} // namespace polly
namespace llvm {
/// @brief Specialize simplify_type for MemAccInst to enable dyn_cast and cast
@@ -286,7 +286,7 @@ template <> struct simplify_type<polly::MemAccInst> {
return I.asInstruction();
}
};
-}
+} // namespace llvm
namespace polly {
@@ -414,5 +414,5 @@ bool canSynthesize(const llvm::Value *V, const Scop &S,
/// Non-instructions do not use operands at a specific point such that in this
/// case this function returns nullptr.
llvm::BasicBlock *getUseBlock(llvm::Use &U);
-}
+} // namespace polly
#endif
diff --git a/polly/include/polly/Support/ScopLocation.h b/polly/include/polly/Support/ScopLocation.h
index 83dc58e92edd..3c15615bf794 100644
--- a/polly/include/polly/Support/ScopLocation.h
+++ b/polly/include/polly/Support/ScopLocation.h
@@ -18,7 +18,7 @@
namespace llvm {
class Region;
-}
+} // namespace llvm
namespace polly {
@@ -30,6 +30,6 @@ namespace polly {
/// @param FileName The filename where the region was defined.
void getDebugLocation(const llvm::Region *R, unsigned &LineBegin,
unsigned &LineEnd, std::string &FileName);
-}
+} // namespace polly
#endif // POLLY_SCOP_LOCATION_H
diff --git a/polly/lib/Analysis/ScopDetectionDiagnostic.cpp b/polly/lib/Analysis/ScopDetectionDiagnostic.cpp
index 6b6b389895ce..e43a309717a3 100644
--- a/polly/lib/Analysis/ScopDetectionDiagnostic.cpp
+++ b/polly/lib/Analysis/ScopDetectionDiagnostic.cpp
@@ -58,7 +58,7 @@ template <typename T> std::string operator+(Twine LHS, const T &RHS) {
return LHS.concat(Buf).str();
}
-}
+} // namespace polly
namespace llvm {
// @brief Lexicographic order on (line, col) of our debug locations.
@@ -66,7 +66,7 @@ static bool operator<(const llvm::DebugLoc &LHS, const llvm::DebugLoc &RHS) {
return LHS.getLine() < RHS.getLine() ||
(LHS.getLine() == RHS.getLine() && LHS.getCol() < RHS.getCol());
}
-}
+} // namespace llvm
namespace polly {
BBPair getBBPairForRegion(const Region *R) {
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp
index ce1098fa4448..544855764474 100644
--- a/polly/lib/CodeGen/CodeGeneration.cpp
+++ b/polly/lib/CodeGen/CodeGeneration.cpp
@@ -249,7 +249,7 @@ public:
AU.addPreserved<ScopInfoRegionPass>();
}
};
-}
+} // namespace
char CodeGeneration::ID = 1;
diff --git a/polly/lib/CodeGen/CodegenCleanup.cpp b/polly/lib/CodeGen/CodegenCleanup.cpp
index 2d1e8f2bfb0d..44a12c4e6aab 100644
--- a/polly/lib/CodeGen/CodegenCleanup.cpp
+++ b/polly/lib/CodeGen/CodegenCleanup.cpp
@@ -118,7 +118,7 @@ public:
};
char CodegenCleanup::ID;
-}
+} // namespace
FunctionPass *polly::createCodegenCleanupPass() { return new CodegenCleanup(); }
diff --git a/polly/lib/CodeGen/IslAst.cpp b/polly/lib/CodeGen/IslAst.cpp
index 5bcd784dacd9..d0cd02c079e4 100644
--- a/polly/lib/CodeGen/IslAst.cpp
+++ b/polly/lib/CodeGen/IslAst.cpp
@@ -87,7 +87,7 @@ struct AstBuildUserInfo {
/// @brief The last iterator id created for the current SCoP.
isl_id *LastForNodeId;
};
-}
+} // namespace polly
/// @brief Free an IslAstUserPayload object pointed to by @p Ptr
static void freeIslAstUserPayload(void *Ptr) {
diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp
index 19c0489c26ed..11ee29761a87 100644
--- a/polly/lib/Exchange/JSONExporter.cpp
+++ b/polly/lib/Exchange/JSONExporter.cpp
@@ -87,7 +87,7 @@ struct JSONImporter : public ScopPass {
/// @brief Register all analyses and transformation required.
void getAnalysisUsage(AnalysisUsage &AU) const override;
};
-}
+} // namespace
char JSONExporter::ID = 0;
std::string JSONExporter::getFileName(Scop &S) const {
diff --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp
index 08f12846ffb2..b7ec53535581 100644
--- a/polly/lib/Support/RegisterPasses.cpp
+++ b/polly/lib/Support/RegisterPasses.cpp
@@ -336,4 +336,4 @@ static llvm::RegisterStandardPasses
static llvm::RegisterStandardPasses RegisterPollyOptimizerScalarLate(
llvm::PassManagerBuilder::EP_VectorizerStart,
registerPollyScalarOptimizerLatePasses);
-}
+} // namespace polly
diff --git a/polly/lib/Support/SCEVValidator.cpp b/polly/lib/Support/SCEVValidator.cpp
index 4b8516338e68..6b70ff72ee82 100644
--- a/polly/lib/Support/SCEVValidator.cpp
+++ b/polly/lib/Support/SCEVValidator.cpp
@@ -32,7 +32,7 @@ enum TYPE {
// An invalid expression.
INVALID
};
-}
+} // namespace SCEVType
/// @brief The result the validator returns for a SCEV expression.
class ValidatorResult {
@@ -635,4 +635,4 @@ extractConstantFactor(const SCEV *S, ScalarEvolution &SE) {
return std::make_pair(ConstPart, LeftOver);
}
-}
+} // namespace polly
diff --git a/polly/lib/Support/ScopLocation.cpp b/polly/lib/Support/ScopLocation.cpp
index 8625c317dde2..a4b3dec95664 100644
--- a/polly/lib/Support/ScopLocation.cpp
+++ b/polly/lib/Support/ScopLocation.cpp
@@ -43,4 +43,4 @@ void getDebugLocation(const Region *R, unsigned &LineBegin, unsigned &LineEnd,
LineEnd = std::max(LineEnd, NewLine);
}
}
-}
+} // namespace polly
diff --git a/polly/lib/Transform/Canonicalization.cpp b/polly/lib/Transform/Canonicalization.cpp
index da0034cf1784..75d711ce638a 100644
--- a/polly/lib/Transform/Canonicalization.cpp
+++ b/polly/lib/Transform/Canonicalization.cpp
@@ -65,7 +65,7 @@ public:
virtual void print(raw_ostream &OS, const Module *) const;
//@}
};
-}
+} // namespace
PollyCanonicalize::~PollyCanonicalize() {}
diff --git a/polly/lib/Transform/CodePreparation.cpp b/polly/lib/Transform/CodePreparation.cpp
index d9d9247861da..0fab4bf60681 100644
--- a/polly/lib/Transform/CodePreparation.cpp
+++ b/polly/lib/Transform/CodePreparation.cpp
@@ -57,7 +57,7 @@ public:
virtual void print(raw_ostream &OS, const Module *) const;
//@}
};
-}
+} // namespace
void CodePreparation::clear() {}
diff --git a/polly/lib/Transform/DeadCodeElimination.cpp b/polly/lib/Transform/DeadCodeElimination.cpp
index ceca4c846928..5bf5c0fb1462 100644
--- a/polly/lib/Transform/DeadCodeElimination.cpp
+++ b/polly/lib/Transform/DeadCodeElimination.cpp
@@ -76,7 +76,7 @@ private:
isl_union_set *getLiveOut(Scop &S);
bool eliminateDeadCode(Scop &S, int PreciseSteps);
};
-}
+} // namespace
char DeadCodeElim::ID = 0;
diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp
index a0f6ab3f613b..854b558c0185 100644
--- a/polly/lib/Transform/ScheduleOptimizer.cpp
+++ b/polly/lib/Transform/ScheduleOptimizer.cpp
@@ -606,7 +606,7 @@ public:
private:
isl_schedule *LastSchedule;
};
-}
+} // namespace
char IslScheduleOptimizer::ID = 0;