summaryrefslogtreecommitdiffstats
path: root/include/clang/StaticAnalyzer/Frontend
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/StaticAnalyzer/Frontend')
-rw-r--r--include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h49
-rw-r--r--include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h33
-rw-r--r--include/clang/StaticAnalyzer/Frontend/FrontendActions.h60
-rw-r--r--include/clang/StaticAnalyzer/Frontend/ModelConsumer.h44
4 files changed, 0 insertions, 186 deletions
diff --git a/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h b/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h
deleted file mode 100644
index 37ea05f..0000000
--- a/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h
+++ /dev/null
@@ -1,49 +0,0 @@
-//===--- AnalysisConsumer.h - Front-end Analysis Engine Hooks ---*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This header contains the functions necessary for a front-end to run various
-// analyses.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_CLANG_STATICANALYZER_FRONTEND_ANALYSISCONSUMER_H
-#define LLVM_CLANG_STATICANALYZER_FRONTEND_ANALYSISCONSUMER_H
-
-#include "clang/AST/ASTConsumer.h"
-#include "clang/Basic/LLVM.h"
-#include "clang/StaticAnalyzer/Core/AnalyzerOptions.h"
-#include "clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h"
-#include <string>
-
-namespace clang {
-
-class Preprocessor;
-class DiagnosticsEngine;
-class CodeInjector;
-class CompilerInstance;
-
-namespace ento {
-class CheckerManager;
-
-class AnalysisASTConsumer : public ASTConsumer {
-public:
- virtual void AddDiagnosticConsumer(PathDiagnosticConsumer *Consumer) = 0;
-};
-
-/// CreateAnalysisConsumer - Creates an ASTConsumer to run various code
-/// analysis passes. (The set of analyses run is controlled by command-line
-/// options.)
-std::unique_ptr<AnalysisASTConsumer>
-CreateAnalysisConsumer(CompilerInstance &CI);
-
-} // end GR namespace
-
-} // end clang namespace
-
-#endif
diff --git a/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h b/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h
deleted file mode 100644
index 2985b7c..0000000
--- a/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h
+++ /dev/null
@@ -1,33 +0,0 @@
-//===-- CheckerRegistration.h - Checker Registration Function ---*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_CLANG_STATICANALYZER_FRONTEND_CHECKERREGISTRATION_H
-#define LLVM_CLANG_STATICANALYZER_FRONTEND_CHECKERREGISTRATION_H
-
-#include "clang/Basic/LLVM.h"
-#include <memory>
-#include <string>
-
-namespace clang {
- class AnalyzerOptions;
- class LangOptions;
- class DiagnosticsEngine;
-
-namespace ento {
- class CheckerManager;
-
- std::unique_ptr<CheckerManager>
- createCheckerManager(AnalyzerOptions &opts, const LangOptions &langOpts,
- ArrayRef<std::string> plugins, DiagnosticsEngine &diags);
-
-} // end ento namespace
-
-} // end namespace clang
-
-#endif
diff --git a/include/clang/StaticAnalyzer/Frontend/FrontendActions.h b/include/clang/StaticAnalyzer/Frontend/FrontendActions.h
deleted file mode 100644
index 36afb4b..0000000
--- a/include/clang/StaticAnalyzer/Frontend/FrontendActions.h
+++ /dev/null
@@ -1,60 +0,0 @@
-//===-- FrontendActions.h - Useful Frontend Actions -------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_CLANG_STATICANALYZER_FRONTEND_FRONTENDACTIONS_H
-#define LLVM_CLANG_STATICANALYZER_FRONTEND_FRONTENDACTIONS_H
-
-#include "clang/Frontend/FrontendAction.h"
-#include "llvm/ADT/StringMap.h"
-#include "llvm/ADT/StringRef.h"
-
-namespace clang {
-
-class Stmt;
-
-namespace ento {
-
-//===----------------------------------------------------------------------===//
-// AST Consumer Actions
-//===----------------------------------------------------------------------===//
-
-class AnalysisAction : public ASTFrontendAction {
-protected:
- std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
- StringRef InFile) override;
-};
-
-/// \brief Frontend action to parse model files.
-///
-/// This frontend action is responsible for parsing model files. Model files can
-/// not be parsed on their own, they rely on type information that is available
-/// in another translation unit. The parsing of model files is done by a
-/// separate compiler instance that reuses the ASTContext and othen information
-/// from the main translation unit that is being compiled. After a model file is
-/// parsed, the function definitions will be collected into a StringMap.
-class ParseModelFileAction : public ASTFrontendAction {
-public:
- ParseModelFileAction(llvm::StringMap<Stmt *> &Bodies);
- bool isModelParsingAction() const override { return true; }
-
-protected:
- std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
- StringRef InFile) override;
-
-private:
- llvm::StringMap<Stmt *> &Bodies;
-};
-
-void printCheckerHelp(raw_ostream &OS, ArrayRef<std::string> plugins);
-
-} // end GR namespace
-
-} // end namespace clang
-
-#endif
diff --git a/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h b/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h
deleted file mode 100644
index 24f8042..0000000
--- a/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h
+++ /dev/null
@@ -1,44 +0,0 @@
-//===-- ModelConsumer.h -----------------------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-///
-/// \file
-/// \brief This file implements clang::ento::ModelConsumer which is an
-/// ASTConsumer for model files.
-///
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_CLANG_GR_MODELCONSUMER_H
-#define LLVM_CLANG_GR_MODELCONSUMER_H
-
-#include "clang/AST/ASTConsumer.h"
-#include "llvm/ADT/StringMap.h"
-
-namespace clang {
-
-class Stmt;
-
-namespace ento {
-
-/// \brief ASTConsumer to consume model files' AST.
-///
-/// This consumer collects the bodies of function definitions into a StringMap
-/// from a model file.
-class ModelConsumer : public ASTConsumer {
-public:
- ModelConsumer(llvm::StringMap<Stmt *> &Bodies);
-
- bool HandleTopLevelDecl(DeclGroupRef D) override;
-
-private:
- llvm::StringMap<Stmt *> &Bodies;
-};
-}
-}
-
-#endif
OpenPOWER on IntegriCloud