Skip to content

Commit

Permalink
sort build rules in folly/lang/, moving rule pretty
Browse files Browse the repository at this point in the history
Summary:
The only reasonable high-level order for build rules is lexicographical. Apply to `folly/lang/`, specifically moving `pretty` around.

Extracting from {D68150927} by Orvid.

Reviewed By: Gownta

Differential Revision: D69288292

fbshipit-source-id: e782ad4b14ee2bc838a95086f2a6f62338abff83
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Feb 7, 2025
1 parent dd4a5eb commit db31840
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions folly/lang/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ cpp_library(
],
)

cpp_library(
name = "pretty",
headers = ["Pretty.h"],
exported_deps = [
":c_array",
"//folly:portability",
],
)

cpp_library(
name = "propagate_const",
headers = ["PropagateConst.h"],
Expand Down Expand Up @@ -269,15 +278,6 @@ cpp_library(
],
)

cpp_library(
name = "pretty",
headers = ["Pretty.h"],
exported_deps = [
":c_array",
"//folly:portability",
],
)

cpp_library(
name = "uncaught_exceptions",
srcs = ["UncaughtExceptions.cpp"],
Expand Down
18 changes: 9 additions & 9 deletions folly/lang/test/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,15 @@ cpp_unittest(
],
)

cpp_unittest(
name = "pretty_test",
srcs = ["PrettyTest.cpp"],
deps = [
"//folly/lang:pretty",
"//folly/portability:gtest",
],
)

cpp_unittest(
name = "propagate_const_test",
srcs = ["PropagateConstTest.cpp"],
Expand Down Expand Up @@ -247,12 +256,3 @@ cpp_unittest(
"//folly/portability:gtest",
],
)

cpp_unittest(
name = "pretty_test",
srcs = ["PrettyTest.cpp"],
deps = [
"//folly/lang:pretty",
"//folly/portability:gtest",
],
)

0 comments on commit db31840

Please sign in to comment.