Skip to content

Commit ccea7fe

Browse files
committed
[NFC] Fix formatting
1 parent 7eee805 commit ccea7fe

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

clang/lib/StaticAnalyzer/Core/EntryPointStats.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ template <typename Callback> void enumerateStatVectors(const Callback &Fn) {
6060
Fn(StatsRegistry->CounterStats);
6161
}
6262

63-
void clearSnapshots(void*) { StatsRegistry->Snapshots.clear(); }
63+
void clearSnapshots(void *) { StatsRegistry->Snapshots.clear(); }
6464

6565
} // namespace
6666

@@ -81,7 +81,8 @@ static void checkStatName(const EntryPointStat *M) {
8181
}
8282
}
8383

84-
void EntryPointStat::lockRegistry(llvm::StringRef CPPFileName, ASTContext &Ctx) {
84+
void EntryPointStat::lockRegistry(llvm::StringRef CPPFileName,
85+
ASTContext &Ctx) {
8586
auto CmpByNames = [](const EntryPointStat *L, const EntryPointStat *R) {
8687
return L->name() < R->name();
8788
};

clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ class AnalysisConsumer : public AnalysisASTConsumer,
140140
Injector(std::move(injector)), CTU(CI),
141141
MacroExpansions(CI.getLangOpts()) {
142142

143-
EntryPointStat::lockRegistry(getMainFileName(CI.getInvocation()), CI.getASTContext());
143+
EntryPointStat::lockRegistry(getMainFileName(CI.getInvocation()),
144+
CI.getASTContext());
144145
DigestAnalyzerOptions();
145146

146147
if (Opts.AnalyzerDisplayProgress || Opts.PrintStats ||

0 commit comments

Comments
 (0)