r189370 - [analyzer] Don't include Clang headers inside a namespace.

Jordan Rose jordan_rose at apple.com
Tue Aug 27 09:59:26 PDT 2013


Author: jrose
Date: Tue Aug 27 11:59:26 2013
New Revision: 189370

URL: http://llvm.org/viewvc/llvm-project?rev=189370&view=rev
Log:
[analyzer] Don't include Clang headers inside a namespace.

Found by Gabor Kozar!

Modified:
    cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerRegistry.h

Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerRegistry.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerRegistry.h?rev=189370&r1=189369&r2=189370&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerRegistry.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/CheckerRegistry.h Tue Aug 27 11:59:26 2013
@@ -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.





More information about the cfe-commits mailing list