text
stringlengths
1
24.5M
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "InlinerConfig.h" #include <boost/algorithm/string/predicate.hpp> #include "AnnoUtils.h" #include "DexClass.h" #includ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DeterministicContainers.h" #include "DexClass.h" #include "ShrinkerConfig.h" // When to consider running...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <functional> #include <type_traits> #include <utility> #include "IRInstruction.h" #include "TemplateUtil....
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "InstructionLowering.h" #include "ConfigFiles.h" #include "Debug.h" #include "DeterministicContainers.h" #include "DexI...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstddef> #include <cstdint> #include <map> #include <optional> #include <vector> struct ConfigFiles; cla...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "Macros.h" #if !IS_WINDOWS #include "InteractiveDebugging.h" #include "ControlFlow.h" #include "DexClass.h" #include ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "Macros.h" #include <stddef.h> #if !IS_WINDOWS namespace cfg { class ControlFlowGraph; class Block; usin...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "IODIMetadata.h" #include <fstream> #include "DexOutput.h" #include "DexUtil.h" #include "Trace.h" namespace { // Ret...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DeterministicContainers.h" #include "DexClass.h" #include "DexStore.h" // This class contains the infra ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "IRAssembler.h" #include <boost/optional/optional.hpp> #include <cstdint> #include <cstdio> #include <sstream> #include...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <memory> #include <string> #include <vector> #include <sparta/S_Expression.h> class DexClass; class DexF...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "IRCode.h" #include <algorithm> #include <boost/bimap/bimap.hpp> #include <boost/bimap/unordered_set_of.hpp> #include <...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DexClass.h" #include "DexDebugInstruction.h" #include "IRInstruction.h" #include "IRList.h" namespace cf...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "IRInstruction.h" #include "DexCallSite.h" #include "DexClass.h" #include "DexInstruction.h" #include "DexMethodHandle....
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/range/iterator_range.hpp> #include <limits> #include <memory> #include <string> #include <vector> ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "IRList.h" #include <iterator> #include <sstream> #include <vector> #include "DexClass.h" #include "DexDebugInstructio...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/intrusive/list.hpp> #include <boost/optional.hpp> #include <boost/range/sub_range.hpp> #include <fu...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "IRMetaIO.h" #include <fstream> #include <iostream> #include "DexEncoding.h" #include "Show.h" #include "StringBuilder...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <iosfwd> #include "DexClass.h" #include "ReferencedState.h" namespace ir_meta_io { void dump(const Scop...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "IROpcode.h" #include "Debug.h" #include "DexClass.h" #include "DexInstruction.h" #include "DexOpcode.h" #include "DexU...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstdint> #include <iosfwd> #include <optional> #include <string> #include "Debug.h" class DexField; cla...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "IRTypeChecker.h" #include <boost/optional/optional.hpp> #include <utility> #include "BigBlocks.h" #include "Debug.h" ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/optional.hpp> #include <memory> #include "TypeInference.h" class DexMethod; class DexType; class ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <boost/algorithm/string/predicate.hpp> #include <boost/iostreams/device/mapped_file.hpp> #include <array> #include <cst...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once class DexClass; class DexLocation; class DexField; class DexMethod; // NOLINTNEXTLINE #include "boost/variant.hpp"...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "JavaParserUtil.h" #include "Debug.h" #include "DeterministicContainers.h" namespace java_declarations { static bool i...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DexMemberRefs.h" namespace java_declarations { /* * @param line Java field declaration * @return Fiel...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "JsonWrapper.h" #include <algorithm> #include <json/value.h> #include <stdexcept> JsonWrapper::JsonWrapper() : JsonWra...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstdint> #include <memory> #include <string> #include <vector> #include "DeterministicContainers.h" nam...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "KeepReason.h" #include <ostream> #include "ConcurrentContainers.h" #include "ProguardPrintConfiguration.h" #include "...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/functional/hash.hpp> #include <iosfwd> #include "Debug.h" #include "DeterministicContainers.h" cl...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <functional> #include <memory> #include <utility> #include "Debug.h" #include "DeterministicContainers.h"...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #if defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__) #define IS_WINDOWS 1 #else #define IS_WINDOWS...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "Match.h" namespace m { namespace detail { bool is_assignable_to_interface(const DexType* type, const DexType* iface) ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <functional> #include <type_traits> #include <vector> #include "ControlFlow.h" #incl...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "MatchFlow.h" #include "DeterministicContainers.h" #include "Show.h" #include "Trace.h" #include <ostream> #include <u...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <iosfwd> #include <memory> #include <unordered_map> #include <vector> #include "ControlFlow.h" #include "...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "MatchFlowDetail.h" #include <algorithm> #include <queue> #include <boost/optional/optional.hpp> #include <sparta/Mon...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/functional/hash.hpp> #include <cstddef> #include <limits> #include <map> #include <memory> #include...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "MethodDevirtualizer.h" #include "AnnoUtils.h" #include "MethodOverrideGraph.h" #include "Mutators.h" #include "Resolve...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DeterministicContainers.h" #include "Pass.h" struct DevirtualizerConfigs { DevirtualizerConfigs(bool v...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "MethodFixup.h" #include "IRCode.h" #include "Show.h" #include "Walkers.h" namespace method_fixup { void fixup_refere...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DeterministicContainers.h" #include "DexClass.h" namespace method_fixup { void fixup_references_to_remo...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "MethodOverrideGraph.h" #include <iterator> #include <sparta/PatriciaTreeMap.h> #include <sparta/PatriciaTreeSet.h> #i...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "ConcurrentContainers.h" #include "DeterministicContainers.h" #include "DexClass.h" // The definition of ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "MethodProfiles.h" #include <vector> #include "RedexContext.h" #include <boost/algorithm/string.hpp> #include <boost/...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/optional.hpp> #include <string_view> #include "BaselineProfileConfig.h" #include "DeterministicCon...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "MethodSimilarityCompressionConsciousOrderer.h" #include <inttypes.h> #include "BalancedPartitioning.h" #include "Debu...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <vector> #include "DexClass.h" #include "DexOutput.h" /** * This object defines compression-conscious c...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "MethodSimilarityGreedyOrderer.h" #include "DexInstruction.h" #include "Show.h" #include "Timer.h" #include "Trace.h" #...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <set> #include <boost/dynamic_bitset.hpp> #include "DeterministicContainers.h" #include "DexClass.h" cl...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "MethodUtil.h" #include "ControlFlow.h" #include "DexAnnotation.h" #include "EditableCfgAdapter.h" #include "RedexConte...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <optional> #include <string_view> #include "ConcurrentContainers.h" #include "ControlFlow.h" #include "De...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "MonitorCount.h" #include <algorithm> #include "DexClass.h" #include "Show.h" namespace { bool has_catch(const cfg::...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/ConstantAbstractDomain.h> #include "BaseIRAnalyzer.h" #include "DexClass.h" namespace monitor_co...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "Mutators.h" #include "DexUtil.h" #include "ScopedCFG.h" #include "Show.h" namespace { void drop_this(DexMethod* metho...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "DexClass.h" namespace mutators { enum class KeepThis { No, Yes, }; // Make a non-static direct or virtual method...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "Native.h" #include <fstream> #include <json/json.h> #include <json/value.h> #include <string_view> #include "Debug.h"...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/filesystem/directory.hpp> #include <boost/filesystem/operations.hpp> #include <boost/filesystem/pat...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "NativeNames.h" #include <boost/algorithm/string.hpp> #include <cctype> #include <sstream> // Implements name generati...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <string> #include "DexClass.h" namespace native_names { // If native method is not overloaded with anoth...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "NoOptimizationsMatcher.h" #include "Walkers.h" namespace keep_rules { void process_no_optimizations_rules( const ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "ConfigFiles.h" namespace keep_rules { /** * This method walks all methods in the given scope and looks...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "NullnessDomain.h" NullnessLattice lattice({NN_BOTTOM, UNINITIALIZED, IS_NULL, NOT_NULL, NN_TOP}, ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/FiniteAbstractDomain.h> #include "DexUtil.h" enum Nullness { NN_BOTTOM, UNINITIALIZED, // Th...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "ControlFlow.h" #include "Resolver.h" #include "Show.h" namespace npe { class NullPointerExceptionCreato...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "OptData.h" #include <cstdlib> #include <json/value.h> #include <mutex> #include <string> #include <utility> #include ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <memory> #include <mutex> #include <string> #include "DeterministicContainers.h" #include "DexClass.h" #i...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <string> enum OptReason : int { // Inline Passes INLINED, // RemoveUnusedArgsPass CALLSITE_ARGS_...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "Pass.h" #include <utility> #include "AnalysisUsage.h" #include "DexUtil.h" #include "PassRegistry.h" Pass::Pass(std:...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <string> #include "Configurable.h" #include "DeterministicContainers.h" #include "DexStore.h" #include "R...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "PassManager.h" #include "DexAssessments.h" #include <cstdio> #include <cstdlib> #include <ctime> #include <fstream> #i...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <list> #include <memory> #include <mutex> #include <string> #include <typeinfo> #include <utility> #includ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "PassRegistry.h" PassRegistry& PassRegistry::get() { static PassRegistry registry; return registry; } void PassReg...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <vector> class Pass; /** * Global registry of passes. Construction of a pass automatically registers ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "PluginRegistry.h" #include "Debug.h" PluginRegistry& PluginRegistry::get() { // TODO t19478845 static PluginRegist...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <functional> #include <vector> #include "DeterministicContainers.h" #include "Util.h" struct Plugin { ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "PointsToSemantics.h" #include <algorithm> #include <cstdint> #include <deque> #include <fstream> #include <iomanip> #i...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <bitset> #include <cstdint> #include <initializer_list> #include <iosfwd> #include <utility> #include <vec...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "PointsToSemanticsUtils.h" #include "DexClass.h" #include "IROpcode.h" #include "Resolver.h" bool PointsToSemanticsUti...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DexClass.h" #include "IRInstruction.h" #include "TypeUtil.h" /* * This class contains a set of utility ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "PrintSeeds.h" #include <iostream> #include <ostream> #include "DexUtil.h" #include "ProguardConfiguration.h" #include...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <iosfwd> #include "DexClass.h" struct ProguardMap; namespace keep_rules { void print_seeds(std::ostrea...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <atomic> #include <chrono> #include <condition_variable> #include <mutex> #include <queue> #include <thre...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstdint> #include "ConcurrentContainers.h" #include "DeterministicContainers.h" #include "PriorityThread...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ProguardConfiguration.h" #include <algorithm> #include <boost/functional/hash.hpp> namespace keep_rules { namespace ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <algorithm> #include <boost/functional/hash.hpp> #include <functional> #include <iosfwd> #include <set> #i...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ProguardLexer.h" #include <algorithm> #include <cctype> #include <utility> #include <vector> #include "Debug.h" #incl...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** This ProGuard lexer is designed to lex only the output of running -printconfiguration from ProGuard which produces a singl...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ProguardLineRange.h" #include <utility> ProguardLineRange::ProguardLineRange( uint32_t s, uint32_t e, uint32_t os...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <memory> #include <stdint.h> #include <string> #include <vector> /** * ProguardLineRange stores line numb...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ProguardMap.h" #include <fstream> #include "DexEncoding.h" #include "DexPosition.h" #include "DexUtil.h" #include "IR...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <cstddef> #include <iosfwd> #include <string> #include "DeterministicContainers.h" #include "DexClass.h" ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <algorithm> #include <boost/regex.hpp> #include <fstream> #include <iostream> #include <mutex> #include <sstream> #inclu...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "ConcurrentContainers.h" #include "DexClass.h" #include "ProguardConfiguration.h" #include "ProguardMap.h"...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <filesystem> #include <iostream> #include <sstream> #include <system_error> #include <vector> #include "Debug.h" #inclu...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <iosfwd> #include <string> #include "ProguardConfiguration.h" namespace keep_rules { namespace proguard_...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ProguardPrintConfiguration.h" #include <ostream> #include <sstream> namespace { std::string show_keep_style(const kee...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <iosfwd> #include <string_view> #include "DexUtil.h" #include "ProguardConfiguration.h" namespace keep_r...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <cstring> #include "ProguardMap.h" #include "ProguardRegex.h" namespace keep_rules { namespace proguard_parser { // C...