From 642a4dbc220854927e2e390d11312f1e46a9ae63 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Tue, 27 Aug 2013 16:59:26 +0000 Subject: [PATCH] [analyzer] Don't include Clang headers inside a namespace. Found by Gabor Kozar! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189370 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/StaticAnalyzer/Core/CheckerRegistry.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/clang/StaticAnalyzer/Core/CheckerRegistry.h b/include/clang/StaticAnalyzer/Core/CheckerRegistry.h index 4557aa40ea..ca68a74fef 100644 --- a/include/clang/StaticAnalyzer/Core/CheckerRegistry.h +++ b/include/clang/StaticAnalyzer/Core/CheckerRegistry.h @@ -54,10 +54,6 @@ // // For a complete working example, see examples/analyzer-plugin. - -namespace clang { -namespace ento { - #ifndef CLANG_ANALYZER_API_VERSION_STRING // FIXME: The Clang version string is not particularly granular; // the analyzer infrastructure can change a lot between releases. @@ -67,6 +63,9 @@ namespace ento { #define CLANG_ANALYZER_API_VERSION_STRING CLANG_VERSION_STRING #endif +namespace clang { +namespace ento { + class CheckerOptInfo; /// Manages a set of available checkers for running a static analysis. -- 2.50.1