[clang][ssaf][NFC] Move SSAF from Analysis/Scalable/ to ScalableStaticAnalysisFramework/ (#186156)
- Rename `clang/{include,lib,unittests}/Analysis/Scalable/` to
`clang/{include,lib,unittests}/ScalableStaticAnalysisFramework/Core/`
- Update header-guards with their new paths
- Rename the library `clangAnalysisScalable` to
`clangScalableStaticAnalysisFrameworkCore`
- Add a new `Clang_ScalableStaticAnalysisFramework` module to
`module.modulemap`
- Update GN build files, GitHub PR labeler, and documentation
- Harmonise license comments
- Add a missing header-guard
This commit is contained in:
parent
15b188835f
commit
fcd230adc6
6
.github/new-prs-labeler.yml
vendored
6
.github/new-prs-labeler.yml
vendored
@ -692,10 +692,10 @@ clang:analysis:
|
||||
clang:ssaf:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- clang/include/clang/Analysis/Scalable/**
|
||||
- clang/lib/Analysis/Scalable/**
|
||||
- clang/unittests/Analysis/Scalable/**
|
||||
- clang/docs/ScalableStaticAnalysisFramework/**
|
||||
- clang/include/clang/ScalableStaticAnalysisFramework/**
|
||||
- clang/lib/ScalableStaticAnalysisFramework/**
|
||||
- clang/unittests/ScalableStaticAnalysisFramework/**
|
||||
|
||||
clang:static analyzer:
|
||||
- changed-files:
|
||||
|
||||
@ -66,21 +66,21 @@ Header hierarchy
|
||||
SSAFForceLinker.h (umbrella — include this in binaries)
|
||||
└── SSAFBuiltinForceLinker.h (upstream built-in anchors only)
|
||||
|
||||
- ``clang/include/clang/Analysis/Scalable/SSAFBuiltinForceLinker.h`` — anchors for
|
||||
- ``clang/include/clang/ScalableStaticAnalysisFramework/SSAFBuiltinForceLinker.h`` — anchors for
|
||||
upstream-provided (built-in) extractors and formats (e.g. ``JSONFormat``).
|
||||
- ``clang/include/clang/Analysis/Scalable/SSAFForceLinker.h`` — umbrella header
|
||||
- ``clang/include/clang/ScalableStaticAnalysisFramework/SSAFForceLinker.h`` — umbrella header
|
||||
that includes ``SSAFBuiltinForceLinker.h``. This is the header that
|
||||
downstream projects should modify to add their own force-linker includes
|
||||
(see :doc:`HowToExtend`).
|
||||
|
||||
Include the umbrella header with ``// IWYU pragma: keep`` in any translation
|
||||
unit that must guarantee all registrations are active — typically the entry
|
||||
point of a binary that uses ``clangAnalysisScalable``:
|
||||
point of a binary that uses ``clangScalableStaticAnalysisFrameworkCore``:
|
||||
|
||||
.. code-block:: c++
|
||||
|
||||
// In ExecuteCompilerInvocation.cpp
|
||||
#include "clang/Analysis/Scalable/SSAFForceLinker.h" // IWYU pragma: keep
|
||||
#include "clang/ScalableStaticAnalysisFramework/SSAFForceLinker.h" // IWYU pragma: keep
|
||||
|
||||
Naming convention
|
||||
=================
|
||||
@ -103,10 +103,10 @@ library, regardless of whether any symbols are referenced:
|
||||
.. code-block:: bash
|
||||
|
||||
# GNU ld / lld (Linux, BSD)
|
||||
-Wl,--whole-archive -lclangAnalysisScalable -Wl,--no-whole-archive
|
||||
-Wl,--whole-archive -lclangScalableStaticAnalysisFrameworkCore -Wl,--no-whole-archive
|
||||
|
||||
# Apple ld
|
||||
-Wl,-force_load,libclangAnalysisScalable.a
|
||||
-Wl,-force_load,libclangScalableStaticAnalysisFrameworkCore.a
|
||||
|
||||
Since CMake 3.24, the ``$<LINK_LIBRARY:WHOLE_ARCHIVE,...>`` generator expression
|
||||
provides a portable way to do the same:
|
||||
@ -114,7 +114,7 @@ provides a portable way to do the same:
|
||||
.. code-block:: cmake
|
||||
|
||||
target_link_libraries(clang PRIVATE
|
||||
"$<LINK_LIBRARY:WHOLE_ARCHIVE,clangAnalysisScalable>")
|
||||
"$<LINK_LIBRARY:WHOLE_ARCHIVE,clangScalableStaticAnalysisFrameworkCore>")
|
||||
|
||||
**Why we did not choose this approach**:
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ SSAF is designed to be extensible with new **summary extractors** and **serializ
|
||||
Extensions can be added in three ways:
|
||||
|
||||
#. **Statically, in-tree** — built as part of the upstream LLVM/Clang tree.
|
||||
#. **Statically, out-of-tree (downstream)** — built in a downstream fork or project that links ``clangAnalysisScalable`` as a static library.
|
||||
#. **Statically, out-of-tree (downstream)** — built in a downstream fork or project that links ``clangScalableStaticAnalysisFrameworkCore`` as a static library.
|
||||
#. **Dynamically, via plugins** — loaded at runtime as shared objects.
|
||||
|
||||
All three approaches use the same ``llvm::Registry``-based registration mechanism.
|
||||
@ -28,7 +28,7 @@ Step 1: Implement the extractor
|
||||
.. code-block:: c++
|
||||
|
||||
//--- MyExtractor.h
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummaryExtractor.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummaryExtractor.h"
|
||||
|
||||
namespace clang::ssaf {
|
||||
|
||||
@ -49,7 +49,7 @@ Step 2: Register the extractor
|
||||
|
||||
//--- MyExtractor.cpp
|
||||
#include "MyExtractor.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/ExtractorRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/ExtractorRegistry.h"
|
||||
|
||||
using namespace clang::ssaf;
|
||||
|
||||
@ -74,7 +74,7 @@ Add the following to the appropriate force-linker header:
|
||||
SSAFMyExtractorAnchorSource;
|
||||
|
||||
For **in-tree** additions, add this to
|
||||
``clang/include/clang/Analysis/Scalable/SSAFBuiltinForceLinker.h``.
|
||||
``clang/include/clang/ScalableStaticAnalysisFramework/SSAFBuiltinForceLinker.h``.
|
||||
|
||||
For **downstream** additions, see `Out-of-tree (downstream) extensions`_ below.
|
||||
|
||||
@ -93,7 +93,7 @@ Your format class must inherit from ``SerializationFormat`` and define a ``Forma
|
||||
.. code-block:: c++
|
||||
|
||||
//--- MyFormat.h
|
||||
#include "clang/Analysis/Scalable/Serialization/SerializationFormat.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormat.h"
|
||||
#include "clang/Support/Compiler.h"
|
||||
#include "llvm/Support/Registry.h"
|
||||
|
||||
@ -121,7 +121,7 @@ Step 2: Register the format
|
||||
|
||||
//--- MyFormat.cpp
|
||||
#include "MyFormat.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/SerializationFormatRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormatRegistry.h"
|
||||
|
||||
using namespace clang::ssaf;
|
||||
|
||||
@ -172,8 +172,8 @@ In-tree extensions
|
||||
|
||||
For extensions that are part of the upstream LLVM/Clang tree:
|
||||
|
||||
#. Add the anchor to ``clang/include/clang/Analysis/Scalable/SSAFBuiltinForceLinker.h``.
|
||||
#. Add the source files to the ``clangAnalysisScalable`` CMake library target.
|
||||
#. Add the anchor to ``clang/include/clang/ScalableStaticAnalysisFramework/SSAFBuiltinForceLinker.h``.
|
||||
#. Add the source files to the ``clangScalableStaticAnalysisFrameworkCore`` CMake library target.
|
||||
#. That's it — the ``SSAFForceLinker.h`` umbrella includes ``SSAFBuiltinForceLinker.h``
|
||||
transitively, so any binary that includes the umbrella will pull in the registration.
|
||||
|
||||
|
||||
@ -6,11 +6,11 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_ASTENTITYMAPPING_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_ASTENTITYMAPPING_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ASTENTITYMAPPING_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ASTENTITYMAPPING_H
|
||||
|
||||
#include "clang/AST/Decl.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include <optional>
|
||||
|
||||
@ -44,4 +44,4 @@ std::optional<EntityName> getEntityNameForReturn(const FunctionDecl *FD);
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_ASTENTITYMAPPING_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ASTENTITYMAPPING_H
|
||||
@ -6,12 +6,12 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGE_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGE_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGE_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGE_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/EntitySummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/EntitySummary.h"
|
||||
#include "llvm/ADT/iterator_range.h"
|
||||
#include <set>
|
||||
|
||||
@ -117,4 +117,4 @@ public:
|
||||
};
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGE_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGE_H
|
||||
@ -5,11 +5,12 @@
|
||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGEBUILDER_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGEBUILDER_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Analyses/UnsafeBufferUsage/UnsafeBufferUsage.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummaryBuilder.h"
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGEBUILDER_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGEBUILDER_H
|
||||
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Analyses/UnsafeBufferUsage/UnsafeBufferUsage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummaryBuilder.h"
|
||||
#include <memory>
|
||||
|
||||
namespace clang::ssaf {
|
||||
@ -28,4 +29,4 @@ public:
|
||||
};
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGEBUILDER_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGEBUILDER_H
|
||||
@ -11,10 +11,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_ENTITYLINKER_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_ENTITYLINKER_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_ENTITYLINKER_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_ENTITYLINKER_H
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "llvm/Support/Error.h"
|
||||
#include <map>
|
||||
#include <memory>
|
||||
@ -88,4 +88,4 @@ private:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_ENTITYLINKER_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_ENTITYLINKER_H
|
||||
@ -11,10 +11,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_ENTITYSUMMARYENCODING_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_ENTITYSUMMARYENCODING_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_ENTITYSUMMARYENCODING_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_ENTITYSUMMARYENCODING_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "llvm/Support/Error.h"
|
||||
#include <map>
|
||||
|
||||
@ -39,4 +39,4 @@ public:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_ENTITYSUMMARYENCODING_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_ENTITYSUMMARYENCODING_H
|
||||
@ -11,15 +11,15 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_LUSUMMARY_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_LUSUMMARY_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_LUSUMMARY_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_LUSUMMARY_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityIdTable.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/EntitySummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityIdTable.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/EntitySummary.h"
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
||||
@ -51,4 +51,4 @@ public:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_LUSUMMARY_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_LUSUMMARY_H
|
||||
@ -11,15 +11,15 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_LUSUMMARYENCODING_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_LUSUMMARYENCODING_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_LUSUMMARYENCODING_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_LUSUMMARYENCODING_H
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/EntitySummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityIdTable.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/EntitySummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityIdTable.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
||||
@ -56,4 +56,4 @@ public:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_LUSUMMARYENCODING_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_LUSUMMARYENCODING_H
|
||||
@ -11,15 +11,15 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_TUSUMMARYENCODING_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_TUSUMMARYENCODING_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_TUSUMMARYENCODING_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_TUSUMMARYENCODING_H
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/EntitySummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityIdTable.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/EntitySummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityIdTable.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
||||
@ -57,4 +57,4 @@ public:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_TUSUMMARYENCODING_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_ENTITYLINKER_TUSUMMARYENCODING_H
|
||||
@ -15,8 +15,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_BUILDNAMESPACE_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_BUILDNAMESPACE_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_BUILDNAMESPACE_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_BUILDNAMESPACE_H
|
||||
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
@ -126,4 +126,4 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_BUILDNAMESPACE_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_BUILDNAMESPACE_H
|
||||
@ -12,8 +12,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_ENTITY_ID_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_ENTITY_ID_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_ENTITYID_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_ENTITYID_H
|
||||
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <cstddef>
|
||||
@ -51,4 +51,4 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const EntityId &Id);
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_ENTITY_ID_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_ENTITYID_H
|
||||
@ -6,11 +6,11 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_ENTITY_ID_TABLE_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_ENTITY_ID_TABLE_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_ENTITYIDTABLE_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_ENTITYIDTABLE_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
#include <functional>
|
||||
#include <map>
|
||||
|
||||
@ -50,4 +50,4 @@ public:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_ENTITY_ID_TABLE_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_ENTITYIDTABLE_H
|
||||
@ -6,8 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_ENTITYLINKAGE_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_ENTITYLINKAGE_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_ENTITYLINKAGE_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_ENTITYLINKAGE_H
|
||||
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
@ -49,4 +49,4 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_ENTITYLINKAGE_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_ENTITYLINKAGE_H
|
||||
@ -6,10 +6,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_ENTITYNAME_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_ENTITYNAME_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_ENTITYNAME_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_ENTITYNAME_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
@ -59,4 +59,4 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const EntityName &EN);
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_ENTITYNAME_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_ENTITYNAME_H
|
||||
@ -1,4 +1,4 @@
|
||||
//===-- PrivateFieldNames.def -----------------------------------*- C++ -*-===//
|
||||
//===- PrivateFieldNames.def ------------------------------------*- C++ -*-===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,8 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_SUMMARYNAME_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_SUMMARYNAME_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_SUMMARYNAME_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_SUMMARYNAME_H
|
||||
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
@ -38,4 +38,4 @@ private:
|
||||
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const SummaryName &SN);
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_SUMMARYNAME_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODEL_SUMMARYNAME_H
|
||||
@ -10,11 +10,11 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef CLANG_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMAT_H
|
||||
#define CLANG_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMAT_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_JSONFORMAT_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_JSONFORMAT_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/SerializationFormat.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormat.h"
|
||||
#include "clang/Support/Compiler.h"
|
||||
#include "llvm/ADT/STLFunctionalExtras.h"
|
||||
#include "llvm/Support/JSON.h"
|
||||
@ -199,4 +199,4 @@ extern template class CLANG_TEMPLATE_ABI
|
||||
Registry<clang::ssaf::JSONFormat::FormatInfo>;
|
||||
} // namespace llvm
|
||||
|
||||
#endif // CLANG_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMAT_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_JSONFORMAT_H
|
||||
@ -11,15 +11,15 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef CLANG_ANALYSIS_SCALABLE_SERIALIZATION_SERIALIZATION_FORMAT_H
|
||||
#define CLANG_ANALYSIS_SCALABLE_SERIALIZATION_SERIALIZATION_FORMAT_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_SERIALIZATIONFORMAT_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_SERIALIZATIONFORMAT_H
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummary.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummary.h"
|
||||
#include "llvm/ADT/STLFunctionalExtras.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/Error.h"
|
||||
@ -70,7 +70,7 @@ protected:
|
||||
#define FIELD(CLASS, FIELD_NAME) \
|
||||
static const auto &get##FIELD_NAME(const CLASS &X) { return X.FIELD_NAME; } \
|
||||
static auto &get##FIELD_NAME(CLASS &X) { return X.FIELD_NAME; }
|
||||
#include "clang/Analysis/Scalable/Model/PrivateFieldNames.def"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/PrivateFieldNames.def"
|
||||
};
|
||||
|
||||
template <class SerializerFn, class DeserializerFn> struct FormatInfoEntry {
|
||||
@ -87,4 +87,4 @@ template <class SerializerFn, class DeserializerFn> struct FormatInfoEntry {
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // CLANG_ANALYSIS_SCALABLE_SERIALIZATION_SERIALIZATION_FORMAT_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_SERIALIZATIONFORMAT_H
|
||||
@ -51,10 +51,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef CLANG_ANALYSIS_SCALABLE_SERIALIZATION_SERIALIZATION_FORMAT_REGISTRY_H
|
||||
#define CLANG_ANALYSIS_SCALABLE_SERIALIZATION_SERIALIZATION_FORMAT_REGISTRY_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_SERIALIZATIONFORMATREGISTRY_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_SERIALIZATIONFORMATREGISTRY_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Serialization/SerializationFormat.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormat.h"
|
||||
#include "clang/Support/Compiler.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/Registry.h"
|
||||
@ -80,4 +80,4 @@ extern template class CLANG_TEMPLATE_ABI
|
||||
Registry<clang::ssaf::SerializationFormat>;
|
||||
} // namespace llvm
|
||||
|
||||
#endif // CLANG_ANALYSIS_SCALABLE_SERIALIZATION_SERIALIZATION_FORMAT_REGISTRY_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_SERIALIZATIONFORMATREGISTRY_H
|
||||
@ -1,4 +1,4 @@
|
||||
//===- LUSummaryConsumer.h ------------------------------------------------===//
|
||||
//===- LUSummaryConsumer.h --------------------------------------*- C++ -*-===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -11,12 +11,12 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_LUSUMMARYCONSUMER_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_LUSUMMARYCONSUMER_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_LUSUMMARYCONSUMER_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_LUSUMMARYCONSUMER_H
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummary.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/Analysis/Scalable/SummaryData/SummaryDataStore.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/SummaryData/SummaryDataStore.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/Support/Error.h"
|
||||
#include <memory>
|
||||
@ -90,4 +90,4 @@ private:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_LUSUMMARYCONSUMER_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_LUSUMMARYCONSUMER_H
|
||||
@ -1,4 +1,4 @@
|
||||
//===- SummaryData.h ------------------------------------------------------===//
|
||||
//===- SummaryData.h --------------------------------------------*- C++ -*-===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -12,8 +12,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATA_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATA_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATA_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATA_H
|
||||
|
||||
namespace clang::ssaf {
|
||||
|
||||
@ -25,4 +25,4 @@ public:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATA_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATA_H
|
||||
@ -1,4 +1,4 @@
|
||||
//===- SummaryDataBuilder.h -----------------------------------------------===//
|
||||
//===- SummaryDataBuilder.h -------------------------------------*- C++ -*-===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -12,14 +12,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATABUILDER_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATABUILDER_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATABUILDER_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATABUILDER_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/Analysis/Scalable/SummaryData/SummaryData.h"
|
||||
#include "clang/Analysis/Scalable/SummaryData/SummaryDataTraits.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/EntitySummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/SummaryData/SummaryData.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/SummaryData/SummaryDataTraits.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/EntitySummary.h"
|
||||
#include <memory>
|
||||
|
||||
namespace clang::ssaf {
|
||||
@ -92,4 +92,4 @@ private:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATABUILDER_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATABUILDER_H
|
||||
@ -1,4 +1,4 @@
|
||||
//===- SummaryDataBuilderRegistry.h ---------------------------------------===//
|
||||
//===- SummaryDataBuilderRegistry.h -----------------------------*- C++ -*-===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -19,10 +19,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATABUILDERREGISTRY_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATABUILDERREGISTRY_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATABUILDERREGISTRY_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATABUILDERREGISTRY_H
|
||||
|
||||
#include "clang/Analysis/Scalable/SummaryData/SummaryDataBuilder.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/SummaryData/SummaryDataBuilder.h"
|
||||
#include "llvm/Support/Registry.h"
|
||||
#include <memory>
|
||||
#include <string>
|
||||
@ -69,4 +69,4 @@ public:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATABUILDERREGISTRY_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATABUILDERREGISTRY_H
|
||||
@ -1,4 +1,4 @@
|
||||
//===- SummaryDataStore.h -------------------------------------------------===//
|
||||
//===- SummaryDataStore.h ---------------------------------------*- C++ -*-===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -11,13 +11,13 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATASTORE_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATASTORE_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATASTORE_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATASTORE_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/Analysis/Scalable/SummaryData/SummaryData.h"
|
||||
#include "clang/Analysis/Scalable/SummaryData/SummaryDataTraits.h"
|
||||
#include "clang/Analysis/Scalable/Support/ErrorBuilder.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/SummaryData/SummaryData.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/SummaryData/SummaryDataTraits.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/ErrorBuilder.h"
|
||||
#include "llvm/Support/Error.h"
|
||||
#include <map>
|
||||
#include <memory>
|
||||
@ -112,4 +112,4 @@ public:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATASTORE_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATASTORE_H
|
||||
@ -1,4 +1,4 @@
|
||||
//===- SummaryDataTraits.h ------------------------------------------------===//
|
||||
//===- SummaryDataTraits.h --------------------------------------*- C++ -*-===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -10,10 +10,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATATRAITS_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATATRAITS_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATATRAITS_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATATRAITS_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include <type_traits>
|
||||
|
||||
namespace clang::ssaf {
|
||||
@ -35,4 +35,4 @@ struct HasSummaryName<T, std::void_t<decltype(T::summaryName())>>
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_SUMMARYDATA_SUMMARYDATATRAITS_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUMMARYDATA_SUMMARYDATATRAITS_H
|
||||
@ -11,8 +11,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_SUPPORT_ERRORBUILDER_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_SUPPORT_ERRORBUILDER_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUPPORT_ERRORBUILDER_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUPPORT_ERRORBUILDER_H
|
||||
|
||||
#include "llvm/Support/Error.h"
|
||||
#include "llvm/Support/FormatVariadic.h"
|
||||
@ -207,4 +207,4 @@ public:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_SUPPORT_ERRORBUILDER_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUPPORT_ERRORBUILDER_H
|
||||
@ -1,4 +1,4 @@
|
||||
//===- FormatProviders.h - llvm::formatv support for SSAF model types -----===//
|
||||
//===- FormatProviders.h - llvm::formatv support for SSAF types -*- C++ -*-===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -11,14 +11,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_SUPPORT_FORMATPROVIDERS_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_SUPPORT_FORMATPROVIDERS_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUPPORT_FORMATPROVIDERS_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUPPORT_FORMATPROVIDERS_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "llvm/Support/FormatProviders.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
@ -82,4 +82,4 @@ template <> struct format_provider<clang::ssaf::SummaryName> {
|
||||
|
||||
} // namespace llvm
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_SUPPORT_FORMATPROVIDERS_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_SUPPORT_FORMATPROVIDERS_H
|
||||
@ -6,10 +6,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_ENTITYSUMMARY_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_ENTITYSUMMARY_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_ENTITYSUMMARY_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_ENTITYSUMMARY_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include <type_traits>
|
||||
|
||||
namespace clang::ssaf {
|
||||
@ -27,4 +27,4 @@ using DerivesFromEntitySummary =
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_ENTITYSUMMARY_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_ENTITYSUMMARY_H
|
||||
@ -14,10 +14,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_EXTRACTORREGISTRY_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_EXTRACTORREGISTRY_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_EXTRACTORREGISTRY_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_EXTRACTORREGISTRY_H
|
||||
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummaryExtractor.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummaryExtractor.h"
|
||||
#include "clang/Support/Compiler.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/Registry.h"
|
||||
@ -45,4 +45,4 @@ extern template class CLANG_TEMPLATE_ABI
|
||||
Registry<clang::ssaf::TUSummaryExtractor, clang::ssaf::TUSummaryBuilder &>;
|
||||
} // namespace llvm
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_EXTRACTORREGISTRY_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_EXTRACTORREGISTRY_H
|
||||
@ -6,15 +6,15 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_TUSUMMARY_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_TUSUMMARY_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_TUSUMMARY_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_TUSUMMARY_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityIdTable.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/EntitySummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityIdTable.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/EntitySummary.h"
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
||||
@ -42,4 +42,4 @@ public:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_TUSUMMARY_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_TUSUMMARY_H
|
||||
@ -6,11 +6,11 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_TUSUMMARYBUILDER_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_TUSUMMARYBUILDER_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_TUSUMMARYBUILDER_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_TUSUMMARYBUILDER_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/EntitySummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/EntitySummary.h"
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
@ -73,4 +73,4 @@ TUSummaryBuilder::addSummary(EntityId Entity,
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_TUSUMMARYBUILDER_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_TUSUMMARYBUILDER_H
|
||||
@ -6,8 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_TUSUMMARYEXTRACTOR_H
|
||||
#define LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_TUSUMMARYEXTRACTOR_H
|
||||
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_TUSUMMARYEXTRACTOR_H
|
||||
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_TUSUMMARYEXTRACTOR_H
|
||||
|
||||
#include "clang/AST/ASTConsumer.h"
|
||||
|
||||
@ -25,4 +25,4 @@ protected:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_TUSUMMARYEXTRACTOR_H
|
||||
#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_CORE_TUSUMMARY_TUSUMMARYEXTRACTOR_H
|
||||
@ -8,8 +8,6 @@ module Clang_Analysis {
|
||||
umbrella "clang/Analysis"
|
||||
|
||||
textual header "clang/Analysis/Analyses/ThreadSafetyOps.def"
|
||||
textual header "clang/Analysis/Scalable/Model/PrivateFieldNames.def"
|
||||
|
||||
module * { export * }
|
||||
|
||||
// FIXME: Exclude these headers to avoid pulling all of the AST matchers
|
||||
@ -150,6 +148,15 @@ module Clang_Options { requires cplusplus umbrella "clang/Options" module * { ex
|
||||
module Clang_Parse { requires cplusplus umbrella "clang/Parse" module * { export * } }
|
||||
module Clang_Rewrite { requires cplusplus umbrella "clang/Rewrite/Core" module * { export * } }
|
||||
module Clang_RewriteFrontend { requires cplusplus umbrella "clang/Rewrite/Frontend" module * { export * } }
|
||||
module Clang_ScalableStaticAnalysisFramework {
|
||||
requires cplusplus
|
||||
umbrella "clang/ScalableStaticAnalysisFramework"
|
||||
|
||||
textual header "clang/ScalableStaticAnalysisFramework/Core/Model/PrivateFieldNames.def"
|
||||
|
||||
module * { export * }
|
||||
}
|
||||
|
||||
module Clang_Sema { requires cplusplus umbrella "clang/Sema" module * { export * } }
|
||||
|
||||
module Clang_Serialization {
|
||||
|
||||
@ -54,4 +54,3 @@ add_clang_library(clangAnalysis
|
||||
add_subdirectory(plugins)
|
||||
add_subdirectory(FlowSensitive)
|
||||
add_subdirectory(LifetimeSafety)
|
||||
add_subdirectory(Scalable)
|
||||
|
||||
@ -23,6 +23,7 @@ add_subdirectory(DirectoryWatcher)
|
||||
add_subdirectory(Index)
|
||||
add_subdirectory(IndexSerialization)
|
||||
add_subdirectory(InstallAPI)
|
||||
add_subdirectory(ScalableStaticAnalysisFramework)
|
||||
add_subdirectory(StaticAnalyzer)
|
||||
add_subdirectory(Format)
|
||||
if(CLANG_INCLUDE_TESTS)
|
||||
|
||||
1
clang/lib/ScalableStaticAnalysisFramework/CMakeLists.txt
Normal file
1
clang/lib/ScalableStaticAnalysisFramework/CMakeLists.txt
Normal file
@ -0,0 +1 @@
|
||||
add_subdirectory(Core)
|
||||
@ -1,4 +1,4 @@
|
||||
//===- ASTMapping.cpp - AST to SSAF Entity mapping --------------*- C++ -*-===//
|
||||
//===- ASTMapping.cpp - AST to SSAF Entity mapping ------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -10,9 +10,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/ASTEntityMapping.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/ASTEntityMapping.h"
|
||||
#include "clang/AST/Decl.h"
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/UnifiedSymbolResolution/USRGeneration.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
|
||||
@ -2,7 +2,7 @@ set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
add_clang_library(clangAnalysisScalable
|
||||
add_clang_library(clangScalableStaticAnalysisFrameworkCore
|
||||
ASTEntityMapping.cpp
|
||||
EntityLinker/EntityLinker.cpp
|
||||
Model/BuildNamespace.cpp
|
||||
@ -1,4 +1,4 @@
|
||||
//===- EntityLinker.cpp ----------------------------------------*- C++ -*-===//
|
||||
//===- EntityLinker.cpp ---------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,13 +6,13 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/EntityLinker.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/EntitySummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/Analysis/Scalable/Support/ErrorBuilder.h"
|
||||
#include "clang/Analysis/Scalable/Support/FormatProviders.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/EntityLinker.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/EntitySummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/ErrorBuilder.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/FormatProviders.h"
|
||||
#include <cassert>
|
||||
|
||||
using namespace clang::ssaf;
|
||||
@ -1,4 +1,4 @@
|
||||
//===- BuildNamespace.cpp ---------------------------------------*- C++ -*-===//
|
||||
//===- BuildNamespace.cpp -------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "../ModelStringConversions.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
@ -1,4 +1,4 @@
|
||||
//===- EntityId.cpp ---------------------------------------------*- C++ -*-===//
|
||||
//===- EntityId.cpp -------------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
|
||||
namespace clang::ssaf {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
//===- EntityIdTable.cpp ----------------------------------------*- C++ -*-===//
|
||||
//===- EntityIdTable.cpp --------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityIdTable.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityIdTable.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace clang::ssaf {
|
||||
@ -1,4 +1,4 @@
|
||||
//===- EntityLinkage.cpp ----------------------------------------*- C++ -*-===//
|
||||
//===- EntityLinkage.cpp --------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
|
||||
#include "../ModelStringConversions.h"
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
//===- EntityName.cpp -------------------------------------------*- C++ -*-===//
|
||||
//===- EntityName.cpp -----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
|
||||
namespace clang::ssaf {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
//===- SummaryName.cpp ------------------------------------------*- C++ -*-===//
|
||||
//===- SummaryName.cpp ----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
|
||||
namespace clang::ssaf {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
//===- ModelStringConversions.h -------------------------------------------===//
|
||||
//===- ModelStringConversions.h ---------------------------------*- C++ -*-===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -13,11 +13,11 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef CLANG_LIB_ANALYSIS_SCALABLE_MODELSTRINGCONVERSIONS_H
|
||||
#define CLANG_LIB_ANALYSIS_SCALABLE_MODELSTRINGCONVERSIONS_H
|
||||
#ifndef LLVM_CLANG_LIB_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODELSTRINGCONVERSIONS_H
|
||||
#define LLVM_CLANG_LIB_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODELSTRINGCONVERSIONS_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include <optional>
|
||||
@ -84,4 +84,4 @@ entityLinkageTypeFromString(llvm::StringRef Str) {
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // CLANG_LIB_ANALYSIS_SCALABLE_MODELSTRINGCONVERSIONS_H
|
||||
#endif // LLVM_CLANG_LIB_SCALABLESTATICANALYSISFRAMEWORK_CORE_MODELSTRINGCONVERSIONS_H
|
||||
@ -1,4 +1,4 @@
|
||||
//===- JSONEntitySummaryEncoding.h ----------------------------------------===//
|
||||
//===- JSONEntitySummaryEncoding.h ------------------------------*- C++ -*-===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -12,11 +12,11 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef CLANG_LIB_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMAT_JSONENTITYSUMMARYENCODING_H
|
||||
#define CLANG_LIB_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMAT_JSONENTITYSUMMARYENCODING_H
|
||||
#ifndef LLVM_CLANG_LIB_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_JSONFORMAT_JSONENTITYSUMMARYENCODING_H
|
||||
#define LLVM_CLANG_LIB_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_JSONFORMAT_JSONENTITYSUMMARYENCODING_H
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/EntitySummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/JSONFormat.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/EntitySummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat.h"
|
||||
#include "llvm/Support/JSON.h"
|
||||
|
||||
#include <map>
|
||||
@ -49,4 +49,4 @@ private:
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // CLANG_LIB_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMAT_JSONENTITYSUMMARYENCODING_H
|
||||
#endif // LLVM_CLANG_LIB_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_JSONFORMAT_JSONENTITYSUMMARYENCODING_H
|
||||
@ -8,8 +8,8 @@
|
||||
|
||||
#include "JSONFormatImpl.h"
|
||||
|
||||
#include "clang/Analysis/Scalable/Serialization/SerializationFormatRegistry.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormatRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummary.h"
|
||||
#include "llvm/Support/Registry.h"
|
||||
|
||||
LLVM_INSTANTIATE_REGISTRY(llvm::Registry<clang::ssaf::JSONFormat::FormatInfo>)
|
||||
@ -11,16 +11,16 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef CLANG_LIB_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMAT_JSONFORMATIMPL_H
|
||||
#define CLANG_LIB_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMAT_JSONFORMATIMPL_H
|
||||
#ifndef LLVM_CLANG_LIB_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_JSONFORMAT_JSONFORMATIMPL_H
|
||||
#define LLVM_CLANG_LIB_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_JSONFORMAT_JSONFORMATIMPL_H
|
||||
|
||||
#include "../../ModelStringConversions.h"
|
||||
#include "JSONEntitySummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/EntitySummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/JSONFormat.h"
|
||||
#include "clang/Analysis/Scalable/Support/ErrorBuilder.h"
|
||||
#include "clang/Analysis/Scalable/Support/FormatProviders.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/EntitySummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/ErrorBuilder.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/FormatProviders.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
@ -161,4 +161,4 @@ llvm::StringRef entityLinkageTypeToJSON(EntityLinkageType LT);
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // CLANG_LIB_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMAT_JSONFORMATIMPL_H
|
||||
#endif // LLVM_CLANG_LIB_SCALABLESTATICANALYSISFRAMEWORK_CORE_SERIALIZATION_JSONFORMAT_JSONFORMATIMPL_H
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
#include "JSONFormatImpl.h"
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummary.h"
|
||||
|
||||
#include <set>
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
#include "JSONFormatImpl.h"
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummaryEncoding.h"
|
||||
|
||||
#include <set>
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
#include "JSONFormatImpl.h"
|
||||
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummary.h"
|
||||
|
||||
#include <set>
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
#include "JSONFormatImpl.h"
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/TUSummaryEncoding.h"
|
||||
|
||||
#include <set>
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Serialization/SerializationFormatRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormatRegistry.h"
|
||||
#include <memory>
|
||||
|
||||
using namespace clang;
|
||||
@ -6,9 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/SummaryData/LUSummaryConsumer.h"
|
||||
#include "clang/Analysis/Scalable/SummaryData/SummaryDataBuilderRegistry.h"
|
||||
#include "clang/Analysis/Scalable/Support/ErrorBuilder.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/SummaryData/LUSummaryConsumer.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/SummaryData/SummaryDataBuilderRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/ErrorBuilder.h"
|
||||
|
||||
using namespace clang;
|
||||
using namespace ssaf;
|
||||
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/SummaryData/SummaryDataBuilderRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/SummaryData/SummaryDataBuilderRegistry.h"
|
||||
|
||||
using namespace clang;
|
||||
using namespace ssaf;
|
||||
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Support/ErrorBuilder.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/ErrorBuilder.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include <cassert>
|
||||
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/TUSummary/ExtractorRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/ExtractorRegistry.h"
|
||||
#include <memory>
|
||||
|
||||
using namespace clang;
|
||||
@ -1,7 +1,7 @@
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummaryBuilder.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/EntitySummary.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummaryBuilder.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/EntitySummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummary.h"
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
@ -9,6 +9,6 @@ add_clang_tool(clang-ssaf-format
|
||||
|
||||
clang_target_link_libraries(clang-ssaf-format
|
||||
PRIVATE
|
||||
clangAnalysisScalable
|
||||
clangScalableStaticAnalysisFrameworkCore
|
||||
clangBasic
|
||||
)
|
||||
|
||||
@ -11,10 +11,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/JSONFormat.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/SerializationFormatRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormatRegistry.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
|
||||
@ -9,6 +9,6 @@ add_clang_tool(clang-ssaf-linker
|
||||
|
||||
clang_target_link_libraries(clang-ssaf-linker
|
||||
PRIVATE
|
||||
clangAnalysisScalable
|
||||
clangScalableStaticAnalysisFrameworkCore
|
||||
clangBasic
|
||||
)
|
||||
|
||||
@ -11,12 +11,12 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/EntityLinker.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/JSONFormat.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/SerializationFormatRegistry.h"
|
||||
#include "clang/Analysis/Scalable/Support/ErrorBuilder.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/EntityLinker.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormatRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/ErrorBuilder.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
|
||||
@ -27,4 +27,3 @@ add_clang_unittest(ClangAnalysisTests
|
||||
)
|
||||
|
||||
add_subdirectory(FlowSensitive)
|
||||
add_subdirectory(Scalable)
|
||||
|
||||
@ -91,6 +91,7 @@ add_subdirectory(Tooling)
|
||||
add_subdirectory(Format)
|
||||
add_subdirectory(Frontend)
|
||||
add_subdirectory(Rewrite)
|
||||
add_subdirectory(ScalableStaticAnalysisFramework)
|
||||
add_subdirectory(Sema)
|
||||
add_subdirectory(CodeGen)
|
||||
if(HAVE_CLANG_REPL_SUPPORT)
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
//===- unittests/Analysis/Scalable/ASTEntityMappingTest.cpp --------------===//
|
||||
//===- ASTEntityMappingTest.cpp -------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/ASTEntityMapping.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/ASTEntityMapping.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/Decl.h"
|
||||
#include "clang/AST/DeclCXX.h"
|
||||
@ -1,4 +1,4 @@
|
||||
//===------- unittests/Analysis/Scalable/UnsafeBufferUsageTest.cpp --------===//
|
||||
//===- UnsafeBufferUsageTest.cpp ------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,10 +6,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Analyses/UnsafeBufferUsage/UnsafeBufferUsage.h"
|
||||
#include "clang/Analysis/Scalable/Analyses/UnsafeBufferUsage/UnsafeBufferUsageBuilder.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityIdTable.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Analyses/UnsafeBufferUsage/UnsafeBufferUsage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Analyses/UnsafeBufferUsage/UnsafeBufferUsageBuilder.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityIdTable.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
using namespace clang;
|
||||
@ -1,4 +1,4 @@
|
||||
//===- unittests/Analysis/Scalable/BuildNamespaceTest.cpp ----------------===//
|
||||
//===- BuildNamespaceTest.cpp ---------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,8 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Support/FormatProviders.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/FormatProviders.h"
|
||||
#include "llvm/Support/FormatVariadic.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "gtest/gtest.h"
|
||||
@ -24,7 +24,7 @@ add_distinct_clang_unittest(ClangScalableAnalysisTests
|
||||
TUSummaryBuilderTest.cpp
|
||||
|
||||
CLANG_LIBS
|
||||
clangAnalysisScalable
|
||||
clangScalableStaticAnalysisFrameworkCore
|
||||
clangAST
|
||||
clangASTMatchers
|
||||
clangBasic
|
||||
@ -32,9 +32,11 @@ add_distinct_clang_unittest(ClangScalableAnalysisTests
|
||||
clangSerialization
|
||||
clangTooling
|
||||
clangUnifiedSymbolResolution
|
||||
|
||||
LINK_LIBS
|
||||
clangTesting
|
||||
LLVMTestingSupport
|
||||
|
||||
LLVM_COMPONENTS
|
||||
FrontendOpenMP
|
||||
Support
|
||||
@ -1,4 +1,4 @@
|
||||
//===- unittests/Analysis/Scalable/EntityIdTableTest.cpp -----------------===//
|
||||
//===- EntityIdTableTest.cpp ----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,10 +6,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityIdTable.h"
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityIdTable.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
namespace clang {
|
||||
@ -1,4 +1,4 @@
|
||||
//===- unittests/Analysis/Scalable/EntityIdTest.cpp ----------------------===//
|
||||
//===- EntityIdTest.cpp ---------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,10 +6,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityIdTable.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/Analysis/Scalable/Support/FormatProviders.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityIdTable.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/FormatProviders.h"
|
||||
#include "llvm/Support/FormatVariadic.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "gtest/gtest.h"
|
||||
@ -1,4 +1,4 @@
|
||||
//===- unittests/Analysis/Scalable/EntityLinkageTest.cpp -----------------===//
|
||||
//===- EntityLinkageTest.cpp ----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,8 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/Analysis/Scalable/Support/FormatProviders.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/FormatProviders.h"
|
||||
#include "llvm/Support/FormatVariadic.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "gtest/gtest.h"
|
||||
@ -1,4 +1,4 @@
|
||||
//===- unittests/Analysis/Scalable/EntityLinkerTest.cpp -------------------===//
|
||||
//===- EntityLinkerTest.cpp -----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,17 +6,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/EntityLinker.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/EntityLinker.h"
|
||||
#include "TestFixture.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/EntitySummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityIdTable.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/EntitySummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityIdTable.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "llvm/Testing/Support/Error.h"
|
||||
#include "gmock/gmock.h"
|
||||
#include "gtest/gtest.h"
|
||||
@ -1,4 +1,4 @@
|
||||
//===- unittests/Analysis/Scalable/EntityNameTest.cpp --------------------===//
|
||||
//===- EntityNameTest.cpp -------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,9 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Support/FormatProviders.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/FormatProviders.h"
|
||||
#include "llvm/Support/FormatVariadic.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "gtest/gtest.h"
|
||||
@ -1,4 +1,4 @@
|
||||
//===- unittests/Analysis/Scalable/ErrorBuilderTest.cpp ------------------===//
|
||||
//===- ErrorBuilderTest.cpp -----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Support/ErrorBuilder.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/ErrorBuilder.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include <system_error>
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "../../../lib/Analysis/Scalable/ModelStringConversions.h"
|
||||
#include "../../lib/ScalableStaticAnalysisFramework/Core/ModelStringConversions.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
using namespace clang::ssaf;
|
||||
@ -7,7 +7,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Registries/MockSerializationFormat.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/EntitySummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/EntitySummary.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/Registry.h"
|
||||
|
||||
@ -7,15 +7,15 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Registries/MockSerializationFormat.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummary.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/SerializationFormat.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/SerializationFormatRegistry.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormat.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormatRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummary.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
@ -6,11 +6,11 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_UNITTESTS_ANALYSIS_SCALABLE_REGISTRIES_MOCKSERIALIZATIONFORMAT_H
|
||||
#define LLVM_CLANG_UNITTESTS_ANALYSIS_SCALABLE_REGISTRIES_MOCKSERIALIZATIONFORMAT_H
|
||||
#ifndef LLVM_CLANG_UNITTESTS_SCALABLESTATICANALYSISFRAMEWORK_REGISTRIES_MOCKSERIALIZATIONFORMAT_H
|
||||
#define LLVM_CLANG_UNITTESTS_SCALABLESTATICANALYSISFRAMEWORK_REGISTRIES_MOCKSERIALIZATIONFORMAT_H
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/SerializationFormat.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormat.h"
|
||||
#include "clang/Support/Compiler.h"
|
||||
#include "llvm/ADT/STLFunctionalExtras.h"
|
||||
#include "llvm/Support/Registry.h"
|
||||
@ -71,4 +71,4 @@ extern template class CLANG_TEMPLATE_ABI
|
||||
Registry<clang::ssaf::MockSerializationFormat::FormatInfo>;
|
||||
} // namespace llvm
|
||||
|
||||
#endif // LLVM_CLANG_UNITTESTS_ANALYSIS_SCALABLE_REGISTRIES_MOCKSERIALIZATIONFORMAT_H
|
||||
#endif // LLVM_CLANG_UNITTESTS_SCALABLESTATICANALYSISFRAMEWORK_REGISTRIES_MOCKSERIALIZATIONFORMAT_H
|
||||
@ -8,8 +8,8 @@
|
||||
|
||||
#include "MockTUSummaryBuilder.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/ExtractorRegistry.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummaryBuilder.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/ExtractorRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummaryBuilder.h"
|
||||
|
||||
using namespace clang;
|
||||
using namespace ssaf;
|
||||
@ -8,8 +8,8 @@
|
||||
|
||||
#include "MockTUSummaryBuilder.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/ExtractorRegistry.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummaryBuilder.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/ExtractorRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummaryBuilder.h"
|
||||
|
||||
using namespace clang;
|
||||
using namespace ssaf;
|
||||
@ -6,7 +6,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummaryBuilder.h"
|
||||
#ifndef LLVM_CLANG_UNITTESTS_SCALABLESTATICANALYSISFRAMEWORK_REGISTRIES_MOCKTUSUMMARYBUILDER_H
|
||||
#define LLVM_CLANG_UNITTESTS_SCALABLESTATICANALYSISFRAMEWORK_REGISTRIES_MOCKTUSUMMARYBUILDER_H
|
||||
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummaryBuilder.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
@ -24,3 +27,5 @@ private:
|
||||
};
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_UNITTESTS_SCALABLESTATICANALYSISFRAMEWORK_REGISTRIES_MOCKTUSUMMARYBUILDER_H
|
||||
@ -6,8 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Serialization/SerializationFormatRegistry.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormatRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummary.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/ScopeExit.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
@ -7,9 +7,9 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "MockTUSummaryBuilder.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/ExtractorRegistry.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummary.h"
|
||||
#include "clang/Frontend/MultiplexConsumer.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/ExtractorRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummary.h"
|
||||
#include "clang/Tooling/Tooling.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "gtest/gtest.h"
|
||||
@ -12,7 +12,7 @@
|
||||
|
||||
#include "JSONFormatTest.h"
|
||||
|
||||
#include "clang/Analysis/Scalable/Serialization/JSONFormat.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/Support/FormatVariadic.h"
|
||||
#include "llvm/Support/Registry.h"
|
||||
@ -10,8 +10,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_UNITTESTS_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMATTEST_JSONFORMATTEST_H
|
||||
#define LLVM_CLANG_UNITTESTS_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMATTEST_JSONFORMATTEST_H
|
||||
#ifndef LLVM_CLANG_UNITTESTS_SCALABLESTATICANALYSISFRAMEWORK_SERIALIZATION_JSONFORMATTEST_JSONFORMATTEST_H
|
||||
#define LLVM_CLANG_UNITTESTS_SCALABLESTATICANALYSISFRAMEWORK_SERIALIZATION_JSONFORMATTEST_JSONFORMATTEST_H
|
||||
|
||||
#include "TestFixture.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
@ -169,4 +169,4 @@ struct MismatchedEntitySummaryForJSONFormatTest final : EntitySummary {
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_UNITTESTS_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMATTEST_JSONFORMATTEST_H
|
||||
#endif // LLVM_CLANG_UNITTESTS_SCALABLESTATICANALYSISFRAMEWORK_SERIALIZATION_JSONFORMATTEST_JSONFORMATTEST_H
|
||||
@ -13,9 +13,9 @@
|
||||
|
||||
#include "JSONFormatTest.h"
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummary.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/JSONFormat.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat.h"
|
||||
#include "llvm/Testing/Support/Error.h"
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
@ -13,9 +13,9 @@
|
||||
|
||||
#include "JSONFormatTest.h"
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/JSONFormat.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummary.h"
|
||||
#include "llvm/Testing/Support/Error.h"
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
@ -7,16 +7,16 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "../TestFixture.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummary.h"
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityIdTable.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/Analysis/Scalable/SummaryData/LUSummaryConsumer.h"
|
||||
#include "clang/Analysis/Scalable/SummaryData/SummaryDataBuilderRegistry.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/EntitySummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityIdTable.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/SummaryData/LUSummaryConsumer.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/SummaryData/SummaryDataBuilderRegistry.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/EntitySummary.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/Testing/Support/Error.h"
|
||||
#include "gtest/gtest.h"
|
||||
@ -1,4 +1,4 @@
|
||||
//===- unittests/Analysis/Scalable/SummaryNameTest.cpp --------------------===//
|
||||
//===- SummaryNameTest.cpp ------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,8 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/Analysis/Scalable/Support/FormatProviders.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Support/FormatProviders.h"
|
||||
#include "llvm/Support/FormatVariadic.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "gtest/gtest.h"
|
||||
@ -1,4 +1,4 @@
|
||||
//===- unittests/Analysis/Scalable/TUSummaryBuilderTest.cpp ---------------===//
|
||||
//===- TUSummaryBuilderTest.cpp -------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -6,15 +6,15 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummaryBuilder.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummaryBuilder.h"
|
||||
#include "TestFixture.h"
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/Analysis/Scalable/Serialization/SerializationFormat.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/EntitySummary.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/SerializationFormat.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/EntitySummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummary.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
@ -1,4 +1,4 @@
|
||||
//===- unittests/Analysis/Scalable/TestFixture.cpp ------------------------===//
|
||||
//===- TestFixture.cpp ----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,11 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "TestFixture.h"
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
|
||||
@ -6,19 +6,19 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_UNITTESTS_ANALYSIS_SCALABLE_TESTFIXTURE_H
|
||||
#define LLVM_CLANG_UNITTESTS_ANALYSIS_SCALABLE_TESTFIXTURE_H
|
||||
#ifndef LLVM_CLANG_UNITTESTS_SCALABLESTATICANALYSISFRAMEWORK_TESTFIXTURE_H
|
||||
#define LLVM_CLANG_UNITTESTS_SCALABLESTATICANALYSISFRAMEWORK_TESTFIXTURE_H
|
||||
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummary.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/Analysis/Scalable/Model/BuildNamespace.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityId.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityIdTable.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityLinkage.h"
|
||||
#include "clang/Analysis/Scalable/Model/EntityName.h"
|
||||
#include "clang/Analysis/Scalable/Model/SummaryName.h"
|
||||
#include "clang/Analysis/Scalable/TUSummary/TUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummary.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/LUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/EntityLinker/TUSummaryEncoding.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/BuildNamespace.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityId.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityIdTable.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityLinkage.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/EntityName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/SummaryName.h"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/TUSummary/TUSummary.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include <iosfwd>
|
||||
|
||||
@ -29,7 +29,7 @@ protected:
|
||||
#define FIELD(CLASS, FIELD_NAME) \
|
||||
static const auto &get##FIELD_NAME(const CLASS &X) { return X.FIELD_NAME; } \
|
||||
static auto &get##FIELD_NAME(CLASS &X) { return X.FIELD_NAME; }
|
||||
#include "clang/Analysis/Scalable/Model/PrivateFieldNames.def"
|
||||
#include "clang/ScalableStaticAnalysisFramework/Core/Model/PrivateFieldNames.def"
|
||||
};
|
||||
|
||||
void PrintTo(const BuildNamespace &BN, std::ostream *OS);
|
||||
@ -41,4 +41,4 @@ void PrintTo(const SummaryName &N, std::ostream *OS);
|
||||
|
||||
} // namespace clang::ssaf
|
||||
|
||||
#endif // LLVM_CLANG_UNITTESTS_ANALYSIS_SCALABLE_TESTFIXTURE_H
|
||||
#endif // LLVM_CLANG_UNITTESTS_SCALABLESTATICANALYSISFRAMEWORK_TESTFIXTURE_H
|
||||
@ -1,5 +1,5 @@
|
||||
static_library("Scalable") {
|
||||
output_name = "clangAnalysisScalable"
|
||||
static_library("Core") {
|
||||
output_name = "clangScalableStaticAnalysisFrameworkCore"
|
||||
configs += [ "//llvm/utils/gn/build:clang_code" ]
|
||||
deps = [
|
||||
"//clang/lib/AST",
|
||||
@ -29,7 +29,7 @@ group("unittests") {
|
||||
deps += [
|
||||
"Analysis:ClangAnalysisTests",
|
||||
"Analysis/FlowSensitive:ClangAnalysisFlowSensitiveTests",
|
||||
"Analysis/Scalable:ClangScalableAnalysisTests",
|
||||
"ScalableStaticAnalysisFramework:ClangScalableAnalysisTests",
|
||||
"StaticAnalyzer:StaticAnalysisTests",
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,8 +5,8 @@ unittest("ClangScalableAnalysisTests") {
|
||||
deps = [
|
||||
"//clang/lib/AST",
|
||||
"//clang/lib/ASTMatchers",
|
||||
"//clang/lib/Analysis/Scalable",
|
||||
"//clang/lib/Basic",
|
||||
"//clang/lib/ScalableStaticAnalysisFramework/Core",
|
||||
"//clang/lib/Serialization",
|
||||
"//clang/lib/Tooling",
|
||||
"//llvm/lib/Support",
|
||||
Loading…
x
Reference in New Issue
Block a user