Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 2114258

Browse files
committed
Chris Lattner has strong opinions about directory
layout. :) Rename the 'EntoSA' directories to 'StaticAnalyzer'. Internally we will still use the 'ento' namespace for the analyzer engine (unless there are further sabre rattlings...). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122514 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent fd03843 commit 2114258

File tree

255 files changed

+39743
-285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

255 files changed

+39743
-285
lines changed

examples/PrintFunctionNames/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ set( LLVM_USED_LIBS
1010
clangCodeGen
1111
clangParse
1212
clangSema
13-
clangEntoCheckers
14-
clangEntoCore
13+
clangStaticAnalyzerCheckers
14+
clangStaticAnalyzerCore
1515
clangAnalysis
1616
clangIndex
1717
clangRewrite

examples/clang-interpreter/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ set(LLVM_USED_LIBS
66
clangDriver
77
clangCodeGen
88
clangSema
9-
clangEntoCheckers
10-
clangEntoCore
9+
clangStaticAnalyzerCheckers
10+
clangStaticAnalyzerCore
1111
clangIndex
1212
clangAnalysis
1313
clangRewrite

examples/clang-interpreter/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ TOOL_NO_EXPORTS = 1
1818
LINK_COMPONENTS := jit interpreter nativecodegen bitreader bitwriter ipo \
1919
selectiondag asmparser
2020
USEDLIBS = clangFrontend.a clangSerialization.a clangDriver.a clangCodeGen.a \
21-
clangSema.a clangEntoCheckers.a clangEntoCore.a clangAnalysis.a clangRewrite.a \
21+
clangSema.a clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a clangAnalysis.a clangRewrite.a \
2222
clangAST.a clangParse.a clangLex.a clangBasic.a
2323

2424
include $(CLANG_LEVEL)/Makefile

examples/wpa/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ set(LLVM_USED_LIBS
77
clangSema
88
clangAnalysis
99
clangSerialization
10-
clangEntoCheckers
11-
clangEntoCore
10+
clangStaticAnalyzerCheckers
11+
clangStaticAnalyzerCore
1212
clangRewrite
1313
clangAST
1414
clangParse

examples/wpa/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ NO_INSTALL = 1
1616
TOOL_NO_EXPORTS = 1
1717

1818
LINK_COMPONENTS := asmparser bitreader mc core
19-
USEDLIBS = clangEntoCheckers.a clangEntoCore.a clangIndex.a clangFrontend.a clangDriver.a \
19+
USEDLIBS = clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a clangIndex.a clangFrontend.a clangDriver.a \
2020
clangSema.a clangAnalysis.a clangSerialization.a \
2121
clangAST.a clangParse.a clangLex.a clangBasic.a
2222

include/clang/EntoSA/BugReporter/BugReporter.h include/clang/StaticAnalyzer/BugReporter/BugReporter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#define LLVM_CLANG_GR_BUGREPORTER
1717

1818
#include "clang/Basic/SourceLocation.h"
19-
#include "clang/EntoSA/PathSensitive/GRState.h"
19+
#include "clang/StaticAnalyzer/PathSensitive/GRState.h"
2020
#include "llvm/ADT/FoldingSet.h"
2121
#include "llvm/ADT/ImmutableList.h"
2222
#include "llvm/ADT/ImmutableSet.h"

include/clang/EntoSA/BugReporter/BugType.h include/clang/StaticAnalyzer/BugReporter/BugType.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#ifndef LLVM_CLANG_ANALYSIS_BUGTYPE
1515
#define LLVM_CLANG_ANALYSIS_BUGTYPE
1616

17-
#include "clang/EntoSA/BugReporter/BugReporter.h"
17+
#include "clang/StaticAnalyzer/BugReporter/BugReporter.h"
1818
#include "llvm/ADT/FoldingSet.h"
1919
#include <string>
2020

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
//===--- AnalysisConsumer.h - Front-end Analysis Engine Hooks ---*- C++ -*-===//
2+
//
3+
// The LLVM Compiler Infrastructure
4+
//
5+
// This file is distributed under the University of Illinois Open Source
6+
// License. See LICENSE.TXT for details.
7+
//
8+
//===----------------------------------------------------------------------===//
9+
//
10+
// This header contains the functions necessary for a front-end to run various
11+
// analyses.
12+
//
13+
//===----------------------------------------------------------------------===//
14+
15+
#ifndef LLVM_CLANG_GR_ANALYSISCONSUMER_H
16+
#define LLVM_CLANG_GR_ANALYSISCONSUMER_H
17+
18+
#include <string>
19+
20+
namespace clang {
21+
22+
class AnalyzerOptions;
23+
class ASTConsumer;
24+
class Preprocessor;
25+
26+
namespace ento {
27+
28+
/// CreateAnalysisConsumer - Creates an ASTConsumer to run various code
29+
/// analysis passes. (The set of analyses run is controlled by command-line
30+
/// options.)
31+
ASTConsumer* CreateAnalysisConsumer(const Preprocessor &pp,
32+
const std::string &output,
33+
const AnalyzerOptions& Opts);
34+
35+
} // end GR namespace
36+
37+
} // end clang namespace
38+
39+
#endif

0 commit comments

Comments
 (0)