Skip to content

Commit

Permalink
Remove unused headers from Frame.h
Browse files Browse the repository at this point in the history
Summary: `Frame.h` quite a few unused headers. Removed them and included them where necessary.

Reviewed By: dkgi

Differential Revision: D63342713

fbshipit-source-id: 414fa23d8f72d9fbf993e72c235ddf32b8db974f
  • Loading branch information
Anwesh Tuladhar authored and facebook-github-bot committed Sep 24, 2024
1 parent 37a7660 commit a0b020c
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 10 deletions.
1 change: 1 addition & 0 deletions source/BackwardTaintTransfer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#include <mariana-trench/AccessPathFactory.h>
#include <mariana-trench/ArtificialMethods.h>
#include <mariana-trench/BackwardTaintTransfer.h>
#include <mariana-trench/CallGraph.h>
Expand Down
1 change: 1 addition & 0 deletions source/ForwardTaintTransfer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#include <mariana-trench/AccessPathFactory.h>
#include <mariana-trench/ArtificialMethods.h>
#include <mariana-trench/CallGraph.h>
#include <mariana-trench/ClassProperties.h>
Expand Down
2 changes: 0 additions & 2 deletions source/Frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include <mariana-trench/JsonValidation.h>
#include <mariana-trench/Log.h>
#include <mariana-trench/OriginFactory.h>
#include <mariana-trench/SanitizerSetTransform.h>
#include <mariana-trench/TaggedRootSet.h>
#include <mariana-trench/TaintConfig.h>

namespace marianatrench {
Expand Down
9 changes: 1 addition & 8 deletions source/Frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@
#include <sparta/HashedSetAbstractDomain.h>

#include <mariana-trench/Access.h>
#include <mariana-trench/AccessPathFactory.h>
#include <mariana-trench/Assert.h>
#include <mariana-trench/CallClassIntervalContext.h>
#include <mariana-trench/CallInfo.h>
#include <mariana-trench/CallKind.h>
#include <mariana-trench/CanonicalName.h>
#include <mariana-trench/ClassIntervals.h>
#include <mariana-trench/Compiler.h>
#include <mariana-trench/ExportOriginsMode.h>
#include <mariana-trench/ExtraTraceSet.h>
Expand All @@ -31,16 +28,12 @@
#include <mariana-trench/FeatureSet.h>
#include <mariana-trench/IncludeMacros.h>
#include <mariana-trench/Kind.h>
#include <mariana-trench/KindFactory.h>
#include <mariana-trench/Method.h>
#include <mariana-trench/OriginSet.h>
#include <mariana-trench/PathTreeDomain.h>
#include <mariana-trench/PatriciaTreeSetAbstractDomain.h>
#include <mariana-trench/Position.h>
#include <mariana-trench/Sanitizer.h>
#include <mariana-trench/PropagationKind.h>
#include <mariana-trench/TaggedRootSet.h>
#include <mariana-trench/TransformKind.h>
#include <mariana-trench/TransformsFactory.h>

namespace marianatrench {

Expand Down
2 changes: 2 additions & 0 deletions source/KindFrames.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
#include <mariana-trench/CallClassIntervalContext.h>
#include <mariana-trench/Frame.h>
#include <mariana-trench/IncludeMacros.h>
#include <mariana-trench/Sanitizer.h>
#include <mariana-trench/TaintConfig.h>
#include <mariana-trench/TransformKind.h>

namespace marianatrench {

Expand Down
1 change: 1 addition & 0 deletions source/Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <Show.h>
#include <TypeUtil.h>

#include <mariana-trench/AccessPathFactory.h>
#include <mariana-trench/Assert.h>
#include <mariana-trench/ClassHierarchies.h>
#include <mariana-trench/ClassProperties.h>
Expand Down
1 change: 1 addition & 0 deletions source/PostprocessTraces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <mariana-trench/Methods.h>
#include <mariana-trench/PostprocessTraces.h>
#include <mariana-trench/Registry.h>
#include <mariana-trench/TransformsFactory.h>

namespace marianatrench {

Expand Down
2 changes: 2 additions & 0 deletions source/PropagationConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/

#include <mariana-trench/AccessPathFactory.h>
#include <mariana-trench/JsonValidation.h>
#include <mariana-trench/KindFactory.h>
#include <mariana-trench/PropagationConfig.h>
#include <mariana-trench/TransformsFactory.h>

Expand Down
1 change: 1 addition & 0 deletions source/Taint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <iterator>
#include <unordered_set>

#include <mariana-trench/AccessPathFactory.h>
#include <mariana-trench/Constants.h>
#include <mariana-trench/JsonValidation.h>
#include <mariana-trench/Taint.h>
Expand Down
1 change: 1 addition & 0 deletions source/TaintConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#include <mariana-trench/AccessPathFactory.h>
#include <mariana-trench/Context.h>
#include <mariana-trench/ExtraTraceSet.h>
#include <mariana-trench/JsonValidation.h>
Expand Down
1 change: 1 addition & 0 deletions source/model-generator/ModelGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <Resolver.h>
#include <Walkers.h>

#include <mariana-trench/AccessPathFactory.h>
#include <mariana-trench/FeatureFactory.h>
#include <mariana-trench/Fields.h>
#include <mariana-trench/JsonValidation.h>
Expand Down
1 change: 1 addition & 0 deletions source/model-generator/ModelTemplates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <mariana-trench/JsonValidation.h>
#include <mariana-trench/KindFactory.h>
#include <mariana-trench/Log.h>
#include <mariana-trench/TransformsFactory.h>
#include <mariana-trench/constraints/MethodConstraints.h>
#include <mariana-trench/constraints/ParameterConstraints.h>
#include <mariana-trench/model-generator/ModelTemplates.h>
Expand Down
1 change: 1 addition & 0 deletions source/tests/Test.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include <DexStore.h>

#include <mariana-trench/AccessPathFactory.h>
#include <mariana-trench/ArtificialMethods.h>
#include <mariana-trench/CallGraph.h>
#include <mariana-trench/ClassHierarchies.h>
Expand Down

0 comments on commit a0b020c

Please sign in to comment.