summaryrefslogtreecommitdiff
path: root/lib/Sema/AnalysisBasedWarnings.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-06-22 23:07:51 +0000
committerAlexander Kornienko <alexfh@google.com>2015-06-22 23:07:51 +0000
commit8ca7705aa3e5a2e0f39d00aaa170827369ec9784 (patch)
tree2a33ddff0e4b77ce71382ca30a2f6ed5875a4cff /lib/Sema/AnalysisBasedWarnings.cpp
parent4dcc0f7da78882b0946f6f46ec6397dd566b4e72 (diff)
downloadclang-8ca7705aa3e5a2e0f39d00aaa170827369ec9784.tar.gz
Revert r240270 ("Fixed/added namespace ending comments using clang-tidy").
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/AnalysisBasedWarnings.cpp')
-rw-r--r--lib/Sema/AnalysisBasedWarnings.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/Sema/AnalysisBasedWarnings.cpp b/lib/Sema/AnalysisBasedWarnings.cpp
index 8c5589b43a..36030b99a3 100644
--- a/lib/Sema/AnalysisBasedWarnings.cpp
+++ b/lib/Sema/AnalysisBasedWarnings.cpp
@@ -99,7 +99,7 @@ namespace {
}
}
};
-} // namespace
+}
/// CheckUnreachable - Check for unreachable code.
static void CheckUnreachable(Sema &S, AnalysisDeclContext &AC) {
@@ -493,7 +493,7 @@ struct CheckFallThroughDiagnostics {
}
};
-} // namespace
+}
/// CheckFallThroughForFunctionDef - Check that we don't fall off the end of a
/// function that should return a value. Check that we don't fall off the end
@@ -601,7 +601,7 @@ public:
bool doesContainReference() const { return FoundReference; }
};
-} // namespace
+}
static bool SuggestInitializationFixit(Sema &S, const VarDecl *VD) {
QualType VariableTy = VD->getType().getCanonicalType();
@@ -1059,7 +1059,7 @@ namespace {
Sema &S;
llvm::SmallPtrSet<const CFGBlock *, 16> ReachableBlocks;
};
-} // namespace
+}
static void DiagnoseSwitchLabelsFallthrough(Sema &S, AnalysisDeclContext &AC,
bool PerFunction) {
@@ -1414,7 +1414,7 @@ private:
});
}
};
-} // namespace
+}
namespace clang {
namespace {
@@ -1432,8 +1432,7 @@ struct SortDiagBySourceLocation {
return SM.isBeforeInTranslationUnit(left.first.first, right.first.first);
}
};
-} // namespace
-} // namespace clang
+}}
//===----------------------------------------------------------------------===//
// -Wthread-safety
@@ -1794,9 +1793,7 @@ public:
Warnings.emplace_back(std::move(Warning), OptionalNotes());
}
};
-} // namespace
-} // namespace consumed
-} // namespace clang
+}}}
//===----------------------------------------------------------------------===//
// AnalysisBasedWarnings - Worker object used by Sema to execute analysis-based