diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-12-22 18:53:20 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-12-22 18:53:20 +0000 |
commit | 5a4f98ff943e6a501b0fe47ade007c9bbf96cb88 (patch) | |
tree | b6c6c22c073c7c51e497c9158fca08ab0e58f944 | |
parent | a7af5ea88a6c5bdf87497cca6c20831e8c546751 (diff) |
[analyzer] Refactoring: Move stuff into namespace 'GR'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122423 91177308-0d34-0410-b5e6-96231b3b80d8
118 files changed, 470 insertions, 196 deletions
diff --git a/include/clang/Analysis/DomainSpecific/CocoaConventions.h b/include/clang/Analysis/DomainSpecific/CocoaConventions.h index 81b71a7bdc..0212cbfb8b 100644 --- a/include/clang/Analysis/DomainSpecific/CocoaConventions.h +++ b/include/clang/Analysis/DomainSpecific/CocoaConventions.h @@ -17,6 +17,7 @@ #include "clang/AST/Type.h" namespace clang { +namespace GR { namespace cocoa { enum NamingConvention { NoConvention, CreateRule, InitRule }; @@ -34,6 +35,6 @@ namespace cocoa { bool isCocoaObjectRef(QualType T); -}} +}}} #endif diff --git a/include/clang/GR/AnalysisConsumer.h b/include/clang/GR/AnalysisConsumer.h index c236766f0a..805638867f 100644 --- a/include/clang/GR/AnalysisConsumer.h +++ b/include/clang/GR/AnalysisConsumer.h @@ -12,8 +12,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_CLANG_CHECKER_ANALYSISCONSUMER_H -#define LLVM_CLANG_CHECKER_ANALYSISCONSUMER_H +#ifndef LLVM_CLANG_GR_ANALYSISCONSUMER_H +#define LLVM_CLANG_GR_ANALYSISCONSUMER_H #include <string> @@ -23,6 +23,8 @@ class AnalyzerOptions; class ASTConsumer; class Preprocessor; +namespace GR { + /// CreateAnalysisConsumer - Creates an ASTConsumer to run various code /// analysis passes. (The set of analyses run is controlled by command-line /// options.) @@ -30,6 +32,8 @@ ASTConsumer* CreateAnalysisConsumer(const Preprocessor &pp, const std::string &output, const AnalyzerOptions& Opts); -} +} // end GR namespace + +} // end clang namespace #endif diff --git a/include/clang/GR/BugReporter/BugReporter.h b/include/clang/GR/BugReporter/BugReporter.h index 0b23ae61e8..b0afc5fe7a 100644 --- a/include/clang/GR/BugReporter/BugReporter.h +++ b/include/clang/GR/BugReporter/BugReporter.h @@ -12,8 +12,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_CLANG_ANALYSIS_BUGREPORTER -#define LLVM_CLANG_ANALYSIS_BUGREPORTER +#ifndef LLVM_CLANG_GR_BUGREPORTER +#define LLVM_CLANG_GR_BUGREPORTER #include "clang/Basic/SourceLocation.h" #include "clang/GR/PathSensitive/GRState.h" @@ -25,20 +25,23 @@ namespace clang { +class ASTContext; +class Diagnostic; +class Stmt; +class ParentMap; + +namespace GR { + class PathDiagnostic; class PathDiagnosticPiece; class PathDiagnosticClient; -class ASTContext; -class Diagnostic; class ExplodedNode; class ExplodedGraph; |