diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-16 16:53:12 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-16 16:53:12 +0000 |
commit | fc4242972122823a109b5aa4b903f66e484b0e9f (patch) | |
tree | 475c2f535f4b7cd87f3e193e824ca4fd4b07b341 /lib | |
parent | 9abdaa6805e55a4ba7cd5b3d5de7b83298a604f2 (diff) | |
download | clang-fc4242972122823a109b5aa4b903f66e484b0e9f.tar.gz |
Move helper class into an anonymous namespace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229404 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/AnalysisBasedWarnings.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/AnalysisBasedWarnings.cpp b/lib/Sema/AnalysisBasedWarnings.cpp index da044d0ec2..f52bc6e64b 100644 --- a/lib/Sema/AnalysisBasedWarnings.cpp +++ b/lib/Sema/AnalysisBasedWarnings.cpp @@ -117,6 +117,7 @@ static void CheckUnreachable(Sema &S, AnalysisDeclContext &AC) { reachable_code::FindUnreachableCode(AC, S.getPreprocessor(), UC); } +namespace { /// \brief Warn on logical operator errors in CFGBuilder class LogicalErrorHandler : public CFGCallback { Sema &S; @@ -156,7 +157,7 @@ public: << DiagRange << isAlwaysTrue; } }; - +} // namespace //===----------------------------------------------------------------------===// // Check for infinite self-recursion in functions |