Skip to content

Commit

Permalink
Deshim //folly:dynamic to //folly/json:dynamic in folly
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: Orvid

Differential Revision: D53837111

fbshipit-source-id: ef2a1c422c21c62bcd67b5f3eada91ad106eea72
  • Loading branch information
Gownta authored and facebook-github-bot committed Feb 20, 2024
1 parent a951ff7 commit b1c5c74
Show file tree
Hide file tree
Showing 32 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion folly/Benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <folly/MapUtil.h>
#include <folly/String.h>
#include <folly/detail/PerfScoped.h>
#include <folly/json.h>
#include <folly/json/json.h>

// This needs to be at the end because some versions end up including
// Windows.h without defining NOMINMAX, which breaks uses
Expand Down
2 changes: 1 addition & 1 deletion folly/docs/examples/folly/DynamicConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#include <vector>
#include <folly/DynamicConverter.h>
#include <folly/json/DynamicConverter.h>
#include <folly/portability/GTest.h>

using namespace folly;
Expand Down
2 changes: 1 addition & 1 deletion folly/docs/examples/folly/dynamic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

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

using folly::dynamic;
Expand Down
2 changes: 1 addition & 1 deletion folly/docs/examples/folly/dynamic/array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

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

TEST(dynamic, arrayCtor) {
Expand Down
2 changes: 1 addition & 1 deletion folly/docs/examples/folly/dynamic/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

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

TEST(dynamic, objectCtor) {
Expand Down
2 changes: 1 addition & 1 deletion folly/experimental/bser/Bser.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

#include <folly/CPortability.h>
#include <folly/Optional.h>
#include <folly/dynamic.h>
#include <folly/io/IOBuf.h>
#include <folly/io/IOBufQueue.h>
#include <folly/json/dynamic.h>

/* This is an implementation of the BSER binary serialization scheme.
* BSER was created as a binary, local-system-only representation of
Expand Down
2 changes: 1 addition & 1 deletion folly/experimental/tool/JSONSchemaTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <string>

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

/**
* A binary that supports testing against the official tests from:
Expand Down
2 changes: 1 addition & 1 deletion folly/futures/test/FutureTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#include <folly/Executor.h>
#include <folly/Memory.h>
#include <folly/Unit.h>
#include <folly/dynamic.h>
#include <folly/executors/ManualExecutor.h>
#include <folly/json/dynamic.h>
#include <folly/portability/GTest.h>
#include <folly/synchronization/Baton.h>

Expand Down
2 changes: 1 addition & 1 deletion folly/futures/test/SemiFutureTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
#include <folly/Executor.h>
#include <folly/Memory.h>
#include <folly/Unit.h>
#include <folly/dynamic.h>
#include <folly/executors/ManualExecutor.h>
#include <folly/futures/Future.h>
#include <folly/io/async/EventBase.h>
#include <folly/json/dynamic.h>
#include <folly/portability/GTest.h>
#include <folly/synchronization/Baton.h>

Expand Down
2 changes: 1 addition & 1 deletion folly/gen/test/BaseTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#include <folly/MapUtil.h>
#include <folly/Memory.h>
#include <folly/String.h>
#include <folly/dynamic.h>
#include <folly/experimental/TestUtil.h>
#include <folly/json/dynamic.h>
#include <folly/portability/GFlags.h>
#include <folly/portability/GTest.h>

Expand Down
2 changes: 1 addition & 1 deletion folly/json/DynamicParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

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

namespace folly {

Expand Down
2 changes: 1 addition & 1 deletion folly/json/JSONSchema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <folly/Optional.h>
#include <folly/Singleton.h>
#include <folly/String.h>
#include <folly/json.h>
#include <folly/json/json.h>
#include <folly/portability/Math.h>

namespace folly {
Expand Down
2 changes: 1 addition & 1 deletion folly/json/JSONSchema.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

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

/**
* Validation according to the draft v4 standard: http://json-schema.org/
Expand Down
2 changes: 1 addition & 1 deletion folly/json/JsonTestUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <cmath>

#include <folly/Conv.h>
#include <folly/json.h>
#include <folly/json/json.h>
#include <folly/lang/Assume.h>

namespace folly {
Expand Down
2 changes: 1 addition & 1 deletion folly/json/JsonTestUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <string>

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

namespace folly {

Expand Down
2 changes: 1 addition & 1 deletion folly/json/json_patch.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <folly/Expected.h>
#include <folly/Optional.h>
#include <folly/dynamic.h>
#include <folly/json/dynamic.h>
#include <folly/json_pointer.h>

namespace folly {
Expand Down
2 changes: 1 addition & 1 deletion folly/json/test/DynamicBenchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

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

#include <folly/Benchmark.h>
#include <folly/init/Init.h>
Expand Down
2 changes: 1 addition & 1 deletion folly/json/test/DynamicConverterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

// @author Nicholas Ormrod <[email protected]>

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

#include <algorithm>
#include <map>
Expand Down
4 changes: 2 additions & 2 deletions folly/json/test/DynamicOtherTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

#include <iostream>

#include <folly/dynamic.h>
#include <folly/gen/Base.h>
#include <folly/json.h>
#include <folly/json/dynamic.h>
#include <folly/json/json.h>
#include <folly/portability/GFlags.h>
#include <folly/portability/GTest.h>

Expand Down
4 changes: 2 additions & 2 deletions folly/json/test/DynamicTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

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

#include <cmath>
#include <iterator>
Expand All @@ -23,7 +23,7 @@

#include <folly/Range.h>
#include <folly/hash/Hash.h>
#include <folly/json.h>
#include <folly/json/json.h>
#include <folly/portability/GTest.h>
#include <folly/test/ComparisonOperatorTestUtil.h>

Expand Down
2 changes: 1 addition & 1 deletion folly/json/test/JSONSchemaTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#include <folly/experimental/JSONSchema.h>
#include <folly/json.h>
#include <folly/json/json.h>
#include <folly/portability/GTest.h>

using folly::dynamic;
Expand Down
2 changes: 1 addition & 1 deletion folly/json/test/JsonBenchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

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

#include <folly/Benchmark.h>

Expand Down
2 changes: 1 addition & 1 deletion folly/json/test/JsonOtherTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

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

TEST(Json, StripComments) {
Expand Down
2 changes: 1 addition & 1 deletion folly/json/test/JsonTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

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

#include <cstdint>
#include <iterator>
Expand Down
2 changes: 1 addition & 1 deletion folly/json/test/json_patch_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#include <folly/json.h>
#include <folly/json/json.h>
#include <folly/json_patch.h>
#include <folly/json_pointer.h>
#include <folly/portability/GMock.h>
Expand Down
4 changes: 2 additions & 2 deletions folly/logging/LogConfigParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include <folly/Conv.h>
#include <folly/String.h>
#include <folly/dynamic.h>
#include <folly/json.h>
#include <folly/json/dynamic.h>
#include <folly/json/json.h>
#include <folly/lang/SafeAssert.h>
#include <folly/logging/LogName.h>

Expand Down
4 changes: 2 additions & 2 deletions folly/logging/test/ConfigParserTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*/

#include <folly/String.h>
#include <folly/dynamic.h>
#include <folly/json.h>
#include <folly/json/dynamic.h>
#include <folly/json/json.h>
#include <folly/logging/LogCategory.h>
#include <folly/logging/LogConfig.h>
#include <folly/logging/LogConfigParser.h>
Expand Down
4 changes: 2 additions & 2 deletions folly/logging/test/ConfigUpdateTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

#include <folly/dynamic.h>
#include <folly/json.h>
#include <folly/json/dynamic.h>
#include <folly/json/json.h>
#include <folly/logging/LogCategory.h>
#include <folly/logging/LogConfig.h>
#include <folly/logging/LogConfigParser.h>
Expand Down
2 changes: 1 addition & 1 deletion folly/support/test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <folly/SocketAddress.h>
#include <folly/container/F14Map.h>
#include <folly/container/F14Set.h>
#include <folly/dynamic.h>
#include <folly/json/dynamic.h>
#include <folly/small_vector.h>
#include <folly/support/test/GdbUtil.h>

Expand Down
4 changes: 2 additions & 2 deletions folly/test/FormatBenchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
#include <folly/Benchmark.h>
#include <folly/FBVector.h>
#include <folly/Utility.h>
#include <folly/dynamic.h>
#include <folly/init/Init.h>
#include <folly/json.h>
#include <folly/json/dynamic.h>
#include <folly/json/json.h>

FOLLY_GNU_DISABLE_WARNING("-Wdeprecated-declarations")

Expand Down
4 changes: 2 additions & 2 deletions folly/test/FormatOtherTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include <folly/FileUtil.h>
#include <folly/Format.h>
#include <folly/Portability.h>
#include <folly/dynamic.h>
#include <folly/json.h>
#include <folly/json/dynamic.h>
#include <folly/json/json.h>
#include <folly/portability/GFlags.h>
#include <folly/portability/GTest.h>
#include <folly/small_vector.h>
Expand Down
2 changes: 1 addition & 1 deletion folly/tool/BenchmarkCompare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <folly/Benchmark.h>
#include <folly/FileUtil.h>
#include <folly/init/Init.h>
#include <folly/json.h>
#include <folly/json/json.h>

/**
* Utility to produce a relative benchmark result from JSON result dumps
Expand Down

0 comments on commit b1c5c74

Please sign in to comment.