Skip to content

Commit

Permalink
Deshim //folly:dynamic to //folly/json:dynamic in fbpcf
Browse files Browse the repository at this point in the history
Summary:
The following headers were shimmed in //folly:dynamic and were modded:
  - folly/DynamicConverter.h -> folly/json/DynamicConverter.h
  - folly/dynamic.h -> folly/json/dynamic.h
  - folly/dynamic-inl.h -> folly/json/dynamic-inl.h
  - folly/json.h -> folly/json/json.h

`arc lint` was applied

Reviewed By: bcardosolopes

Differential Revision: D53837058
  • Loading branch information
Gownta authored and facebook-github-bot committed Mar 13, 2024
1 parent 76ee6a9 commit 0cac5db
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion example/billionaire_problem/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#include <folly/json.h>
#include <folly/json/json.h>

#include <gflags/gflags.h>
#include "fbpcf/scheduler/LazySchedulerFactory.h"
Expand Down
4 changes: 2 additions & 2 deletions example/edit_distance/EditDistanceCalculator_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

#pragma once

#include <folly/json.h>
#include <folly/json/json.h>
#include <stdexcept>
#include "./EditDistanceCalculator.h" // @manual
#include "folly/dynamic.h"
#include "folly/json/dynamic.h"
#include "folly/logging/xlog.h"

namespace fbpcf::edit_distance {
Expand Down
2 changes: 1 addition & 1 deletion example/edit_distance/EditDistanceResults.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "./MPCTypes.h" // @manual
#include "fbpcf/exception/exceptions.h"
#include "folly/dynamic.h"
#include "folly/json/dynamic.h"

namespace fbpcf::edit_distance {
struct EditDistanceResults {
Expand Down
2 changes: 1 addition & 1 deletion example/edit_distance/Validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#include <folly/json.h>
#include <folly/json/json.h>
#include <folly/logging/xlog.h>
#include <math.h>
#include <sstream>
Expand Down
2 changes: 1 addition & 1 deletion example/edit_distance/test/EditDistanceAppTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "../EditDistanceApp.h" // @manual
#include <folly/Format.h>
#include <folly/json.h>
#include <folly/json/json.h>
#include <gtest/gtest.h>
#include <fstream>
#include "../EditDistanceResults.h" // @manual
Expand Down
2 changes: 1 addition & 1 deletion example/edit_distance/test/EditDistanceCalculatorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

#include "../EditDistanceCalculator.h" // @manual
#include <folly/json.h>
#include <folly/json/json.h>
#include <gtest/gtest.h>
#include <memory>
#include "../EditDistanceInputReader.h" // @manual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#pragma once
#include <memory>

#include <folly/dynamic.h>
#include <folly/json/dynamic.h>
#include "fbpcf/engine/communication/IPartyCommunicationAgent.h"
#include "fbpcf/util/MetricCollector.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <thread>
#include <vector>

#include <folly/dynamic.h>
#include <folly/json/dynamic.h>
#include "fbpcf/engine/communication/InMemoryPartyCommunicationAgentFactory.h"
#include "fbpcf/engine/communication/InMemoryPartyCommunicationAgentHost.h"
#include "fbpcf/engine/communication/SocketPartyCommunicationAgentFactory.h"
Expand Down
2 changes: 1 addition & 1 deletion fbpcf/util/IMetricRecorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#pragma once

#include <folly/dynamic.h>
#include <folly/json/dynamic.h>

namespace fbpcf::util {
/**
Expand Down
2 changes: 1 addition & 1 deletion fbpcf/util/MetricCollector.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#pragma once

#include <folly/dynamic.h>
#include <folly/json/dynamic.h>
#include <folly/logging/xlog.h>
#include <string>
#include <unordered_map>
Expand Down
2 changes: 1 addition & 1 deletion fbpcf/util/test/MetricCollectorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

#include "fbpcf/util/MetricCollector.h"
#include <folly/dynamic.h>
#include <folly/json/dynamic.h>
#include <gtest/gtest.h>

namespace fbpcf::util {
Expand Down

0 comments on commit 0cac5db

Please sign in to comment.