Skip to content

Commit e838d09

Browse files
committed
Terminate more namespaces with comments
1 parent da982e8 commit e838d09

11 files changed

+13
-13
lines changed

llvm/lib/Analysis/CallPrinter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ using namespace llvm;
2929

3030
namespace llvm {
3131
template <class GraphType> struct GraphTraits;
32-
}
32+
} // namespace llvm
3333

3434
// This option shows static (relative) call counts.
3535
// FIXME:
@@ -215,7 +215,7 @@ struct DOTGraphTraits<CallGraphDOTInfo *> : public DefaultDOTGraphTraits {
215215
}
216216
};
217217

218-
} // end llvm namespace
218+
} // namespace llvm
219219

220220
namespace {
221221
void doCallGraphDOTPrinting(

llvm/lib/Analysis/CaptureTracking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ namespace {
192192

193193
Function &F;
194194
};
195-
}
195+
} // namespace
196196

197197
/// PointerMayBeCaptured - Return true if this pointer value may be captured
198198
/// by the enclosing function (which is required to exist). This routine can

llvm/lib/Analysis/CycleAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ using namespace llvm;
1515

1616
namespace llvm {
1717
class Module;
18-
}
18+
} // namespace llvm
1919

2020
CycleInfo CycleAnalysis::run(Function &F, FunctionAnalysisManager &) {
2121
CycleInfo CI;

llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ cl::opt<unsigned> MediumBasicBlockInstructionThreshold(
3939
"medium-basic-block-instruction-threshold", cl::Hidden, cl::init(15),
4040
cl::desc("The minimum number of instructions a basic block should contain "
4141
"before being considered medium-sized."));
42-
}
42+
} // namespace llvm
4343

4444
static cl::opt<unsigned> CallWithManyArgumentsThreshold(
4545
"call-with-many-arguments-threshold", cl::Hidden, cl::init(4),

llvm/lib/Analysis/ImportedFunctionsInliningStatistics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ cl::opt<InlinerFunctionImportStatsOpts> InlinerFunctionImportStats(
3232
clEnumValN(InlinerFunctionImportStatsOpts::Verbose, "verbose",
3333
"printing of statistics for each inlined function")),
3434
cl::Hidden, cl::desc("Enable inliner stats for imported functions"));
35-
}
35+
} // namespace llvm
3636

3737
ImportedFunctionsInliningStatistics::InlineGraphNode &
3838
ImportedFunctionsInliningStatistics::createInlineGraphNode(const Function &F) {

llvm/lib/Analysis/InlineAdvisor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static cl::opt<bool>
6464

6565
namespace llvm {
6666
extern cl::opt<InlinerFunctionImportStatsOpts> InlinerFunctionImportStats;
67-
}
67+
} // namespace llvm
6868

6969
namespace {
7070
using namespace llvm::ore;

llvm/lib/Analysis/LazyValueInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ INITIALIZE_PASS_END(LazyValueInfoWrapperPass, "lazy-value-info",
6161

6262
namespace llvm {
6363
FunctionPass *createLazyValueInfoPass() { return new LazyValueInfoWrapperPass(); }
64-
}
64+
} // namespace llvm
6565

6666
AnalysisKey LazyValueAnalysis::Key;
6767

@@ -258,7 +258,7 @@ namespace {
258258
/// flushes elements from the cache and does not add any.
259259
void threadEdgeImpl(BasicBlock *OldSucc,BasicBlock *NewSucc);
260260
};
261-
}
261+
} // namespace
262262

263263
void LazyValueInfoCache::eraseValue(Value *V) {
264264
for (auto &Pair : BlockCache) {

llvm/lib/Analysis/LoopAnalysisManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ LoopAnalysisManagerFunctionProxy::run(Function &F,
133133
FunctionAnalysisManager &AM) {
134134
return Result(*InnerAM, AM.getResult<LoopAnalysis>(F));
135135
}
136-
}
136+
} // namespace llvm
137137

138138
PreservedAnalyses llvm::getLoopPassPreservedAnalyses() {
139139
PreservedAnalyses PA;

llvm/lib/Analysis/LoopPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class PrintLoopPassWrapper : public LoopPass {
5959
};
6060

6161
char PrintLoopPassWrapper::ID = 0;
62-
}
62+
} // namespace
6363

6464
//===----------------------------------------------------------------------===//
6565
// LPPassManager

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13675,7 +13675,7 @@ raw_ostream &operator<<(raw_ostream &OS, ScalarEvolution::BlockDisposition BD) {
1367513675
}
1367613676
return OS;
1367713677
}
13678-
}
13678+
} // namespace llvm
1367913679

1368013680
void ScalarEvolution::print(raw_ostream &OS) const {
1368113681
// ScalarEvolution's implementation of the print method is to print

llvm/lib/Analysis/ScalarEvolutionDivision.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
namespace llvm {
2323
class Type;
24-
}
24+
} // namespace llvm
2525

2626
using namespace llvm;
2727

0 commit comments

Comments
 (0)