simplify include directive involving inttypes (#5402)

Summary:
When using `PRIu64` type of printf specifier, current code base does the following:
```
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
```
However, this can be simplified to
```
#include <cinttypes>
```
as long as flag `-std=c++11` is used.
This should solve issues like https://github.com/facebook/rocksdb/issues/5159
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5402

Differential Revision: D15701195

Pulled By: miasantreble

fbshipit-source-id: 6dac0a05f52aadb55e9728038599d3d2e4b59d03
main
Zhongyi Xie 5 years ago committed by Facebook Github Bot
parent bee2f48a66
commit d68f9f4580
  1. 5
      cache/cache_bench.cc
  2. 4
      cache/lru_cache.cc
  3. 4
      cache/sharded_cache.cc
  4. 6
      db/column_family.cc
  5. 6
      db/compaction/compaction.cc
  6. 7
      db/compaction/compaction_job.cc
  7. 6
      db/compaction/compaction_job_stats_test.cc
  8. 6
      db/compaction/compaction_job_test.cc
  9. 6
      db/compaction/compaction_picker.cc
  10. 6
      db/compaction/compaction_picker_fifo.cc
  11. 4
      db/compaction/compaction_picker_level.cc
  12. 6
      db/compaction/compaction_picker_universal.cc
  13. 2
      db/corruption_test.cc
  14. 6
      db/db_filesnapshot.cc
  15. 3
      db/db_impl/db_impl.cc
  16. 5
      db/db_impl/db_impl_compaction_flush.cc
  17. 6
      db/db_impl/db_impl_experimental.cc
  18. 5
      db/db_impl/db_impl_files.cc
  19. 5
      db/db_impl/db_impl_open.cc
  20. 5
      db/db_impl/db_impl_secondary.cc
  21. 5
      db/db_impl/db_impl_write.cc
  22. 6
      db/db_info_dumper.cc
  23. 6
      db/db_test_util.h
  24. 6
      db/dbformat.cc
  25. 6
      db/external_sst_file_ingestion_job.cc
  26. 6
      db/flush_job.cc
  27. 4
      db/forward_iterator_bench.cc
  28. 6
      db/internal_stats.cc
  29. 6
      db/memtable_list.cc
  30. 2
      db/range_tombstone_fragmenter.cc
  31. 6
      db/repair.cc
  32. 5
      db/transaction_log_impl.cc
  33. 6
      db/version_builder.cc
  34. 6
      db/version_set.cc
  35. 6
      db/wal_manager.cc
  36. 2
      examples/multi_processes_example.cc
  37. 6
      file/delete_scheduler_test.cc
  38. 6
      file/filename.cc
  39. 6
      file/sst_file_manager_impl.cc
  40. 6
      include/rocksdb/utilities/backupable_db.h
  41. 6
      logging/event_logger.cc
  42. 4
      memtable/memtablerep_bench.cc
  43. 6
      monitoring/histogram.cc
  44. 6
      monitoring/statistics.cc
  45. 6
      options/cf_options.cc
  46. 6
      options/db_options.cc
  47. 6
      options/options.cc
  48. 4
      options/options_settable_test.cc
  49. 6
      options/options_test.cc
  50. 7
      table/block_based/block_based_table_factory.cc
  51. 2
      table/block_based/index_builder.cc
  52. 2
      table/block_based/index_builder.h
  53. 2
      table/block_fetcher.cc
  54. 6
      table/cuckoo/cuckoo_table_reader_test.cc
  55. 2
      table/format.cc
  56. 6
      table/plain/plain_table_index.cc
  57. 2
      table/sst_file_reader_test.cc
  58. 6
      test_util/transaction_test_util.cc
  59. 4
      tools/db_bench.cc
  60. 6
      tools/db_bench_tool.cc
  61. 6
      tools/db_stress.cc
  62. 6
      tools/dump/db_dump_tool.cc
  63. 6
      tools/ldb_cmd.cc
  64. 6
      tools/sst_dump_tool.cc
  65. 4
      tools/trace_analyzer_tool.cc
  66. 6
      tools/write_stress.cc
  67. 2
      util/crc32c_arm64.h
  68. 2
      util/crc32c_ppc.c
  69. 6
      util/duplicate_detector.h
  70. 6
      util/dynamic_bloom_test.cc
  71. 6
      util/rate_limiter_test.cc
  72. 6
      util/string_util.cc
  73. 6
      utilities/backupable/backupable_db.cc
  74. 6
      utilities/blob_db/blob_db.cc
  75. 6
      utilities/blob_db/blob_dump_tool.cc
  76. 6
      utilities/blob_db/blob_file.cc
  77. 6
      utilities/checkpoint/checkpoint_impl.cc
  78. 5
      utilities/options/options_util_test.cc
  79. 7
      utilities/persistent_cache/persistent_cache_tier.cc
  80. 6
      utilities/transactions/pessimistic_transaction_db.cc
  81. 6
      utilities/transactions/transaction_base.cc
  82. 6
      utilities/transactions/transaction_lock_mgr.cc
  83. 4
      utilities/transactions/transaction_test.cc
  84. 6
      utilities/transactions/transaction_test.h
  85. 6
      utilities/transactions/transaction_util.cc
  86. 6
      utilities/transactions/write_prepared_transaction_test.cc
  87. 6
      utilities/transactions/write_prepared_txn.cc
  88. 6
      utilities/transactions/write_prepared_txn_db.cc
  89. 6
      utilities/transactions/write_prepared_txn_db.h
  90. 4
      utilities/transactions/write_unprepared_transaction_test.cc
  91. 4
      utilities/transactions/write_unprepared_txn.cc
  92. 4
      utilities/transactions/write_unprepared_txn_db.cc
  93. 4
      utilities/transactions/write_unprepared_txn_db.h

@ -3,9 +3,6 @@
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#ifndef GFLAGS
#include <cstdio>
int main() {
@ -14,7 +11,7 @@ int main() {
}
#else
#include <inttypes.h>
#include <cinttypes>
#include <sys/types.h>
#include <stdio.h>

@ -7,10 +7,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "cache/lru_cache.h"
#include <assert.h>

@ -7,10 +7,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "cache/sharded_cache.h"
#include <string>

@ -9,11 +9,7 @@
#include "db/column_family.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <vector>
#include <string>
#include <algorithm>

@ -7,11 +7,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <vector>
#include "db/column_family.h"

@ -7,12 +7,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <functional>
#include <list>

@ -7,11 +7,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <iostream>
#include <mutex>

@ -5,11 +5,7 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <array>
#include <map>

@ -9,11 +9,7 @@
#include "db/compaction/compaction_picker.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <limits>
#include <queue>
#include <string>

@ -10,11 +10,7 @@
#include "db/compaction/compaction_picker_fifo.h"
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <string>
#include <vector>
#include "db/column_family.h"

@ -7,10 +7,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <string>
#include <utility>
#include <vector>

@ -10,11 +10,7 @@
#include "db/compaction/compaction_picker_universal.h"
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <limits>
#include <queue>
#include <string>

@ -13,7 +13,7 @@
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <cinttypes>
#include <sys/stat.h>
#include <sys/types.h>
#include "db/db_impl/db_impl.h"

@ -6,11 +6,7 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <stdint.h>
#include <algorithm>
#include <string>

@ -8,9 +8,6 @@
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/db_impl/db_impl.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <stdint.h>
#ifdef OS_SOLARIS
#include <alloca.h>

@ -8,10 +8,7 @@
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/db_impl/db_impl.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include "db/builder.h"
#include "db/error_handler.h"

@ -9,11 +9,7 @@
#include "db/db_impl/db_impl.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <vector>
#include "db/column_family.h"

@ -8,10 +8,7 @@
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/db_impl/db_impl.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <set>
#include <unordered_set>
#include "db/event_helpers.h"

@ -8,10 +8,7 @@
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/db_impl/db_impl.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include "db/builder.h"
#include "db/error_handler.h"

@ -5,10 +5,7 @@
#include "db/db_impl/db_impl_secondary.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include "db/db_iter.h"
#include "db/merge_context.h"

@ -8,10 +8,7 @@
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/db_impl/db_impl.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include "db/error_handler.h"
#include "db/event_helpers.h"
#include "monitoring/perf_context_imp.h"

@ -3,13 +3,9 @@
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "db/db_info_dumper.h"
#include <inttypes.h>
#include <cinttypes>
#include <stdio.h>
#include <string>
#include <algorithm>

@ -9,12 +9,8 @@
#pragma once
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <fcntl.h>
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <map>

@ -8,11 +8,7 @@
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/dbformat.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <stdio.h>
#include "monitoring/perf_context_imp.h"
#include "port/port.h"

@ -7,11 +7,7 @@
#include "db/external_sst_file_ingestion_job.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <string>
#include <vector>

@ -9,11 +9,7 @@
#include "db/flush_job.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <vector>

@ -3,10 +3,6 @@
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#if !defined(GFLAGS) || defined(ROCKSDB_LITE)
#include <cstdio>
int main() {

@ -10,11 +10,7 @@
#include "db/internal_stats.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <limits>
#include <string>

@ -5,11 +5,7 @@
//
#include "db/memtable_list.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <limits>
#include <queue>
#include <string>

@ -9,7 +9,7 @@
#include <functional>
#include <set>
#include <inttypes.h>
#include <cinttypes>
#include <stdio.h>
#include "util/autovector.h"

@ -60,11 +60,7 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include "db/builder.h"
#include "db/db_impl/db_impl.h"
#include "db/dbformat.h"

@ -4,12 +4,9 @@
// (found in the LICENSE.Apache file in the root directory).
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "db/transaction_log_impl.h"
#include <inttypes.h>
#include <cinttypes>
#include "db/write_batch_internal.h"
#include "util/file_reader_writer.h"

@ -9,11 +9,7 @@
#include "db/version_builder.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <atomic>
#include <functional>

@ -9,11 +9,7 @@
#include "db/version_set.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <stdio.h>
#include <algorithm>
#include <array>

@ -9,11 +9,7 @@
#include "db/wal_manager.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <vector>
#include <memory>

@ -14,7 +14,7 @@
// run for a while, tailing the logs of the primary. After process with primary
// instance exits, this process will keep running until you hit 'CTRL+C'.
#include <inttypes.h>
#include <cinttypes>
#include <chrono>
#include <cstdio>
#include <cstdlib>

@ -3,11 +3,7 @@
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <atomic>
#include <thread>
#include <vector>

@ -6,12 +6,8 @@
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "file/filename.h"
#include <inttypes.h>
#include <cinttypes>
#include <ctype.h>
#include <stdio.h>

@ -5,11 +5,7 @@
#include "file/sst_file_manager_impl.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <vector>
#include "db/db_impl/db_impl.h"

@ -10,11 +10,7 @@
#pragma once
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <functional>
#include <map>
#include <string>

@ -3,13 +3,9 @@
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "logging/event_logger.h"
#include <inttypes.h>
#include <cinttypes>
#include <cassert>
#include <sstream>
#include <string>

@ -7,10 +7,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#ifndef GFLAGS
#include <cstdio>
int main() {

@ -7,13 +7,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "monitoring/histogram.h"
#include <inttypes.h>
#include <cinttypes>
#include <cassert>
#include <math.h>
#include <stdio.h>

@ -5,11 +5,7 @@
//
#include "monitoring/statistics.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include "rocksdb/statistics.h"
#include "port/likely.h"
#include <algorithm>

@ -5,11 +5,7 @@
#include "options/cf_options.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <cassert>
#include <limits>
#include <string>

@ -5,11 +5,7 @@
#include "options/db_options.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include "logging/logging.h"
#include "port/port.h"

@ -9,11 +9,7 @@
#include "rocksdb/options.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <limits>
#include "monitoring/statistics.h"

@ -7,10 +7,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <cstring>
#include "options/options_helper.h"

@ -7,14 +7,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <cctype>
#include <cstring>
#include <unordered_map>
#include <inttypes.h>
#include <cinttypes>
#include "cache/lru_cache.h"
#include "cache/sharded_cache.h"

@ -7,12 +7,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <stdint.h>
#include <memory>

@ -10,7 +10,7 @@
#include "table/block_based/index_builder.h"
#include <assert.h>
#include <inttypes.h>
#include <cinttypes>
#include <list>
#include <string>

@ -10,7 +10,7 @@
#pragma once
#include <assert.h>
#include <inttypes.h>
#include <cinttypes>
#include <list>
#include <string>

@ -9,7 +9,7 @@
#include "table/block_fetcher.h"
#include <inttypes.h>
#include <cinttypes>
#include <string>
#include "logging/logging.h"

@ -13,11 +13,7 @@ int main() {
}
#else
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <vector>
#include <string>
#include <map>

@ -9,7 +9,7 @@
#include "table/format.h"
#include <inttypes.h>
#include <cinttypes>
#include <string>
#include "block_fetcher.h"

@ -5,11 +5,7 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include "table/plain/plain_table_index.h"
#include "util/coding.h"

@ -5,7 +5,7 @@
#ifndef ROCKSDB_LITE
#include <inttypes.h>
#include <cinttypes>
#include "rocksdb/db.h"
#include "rocksdb/sst_file_reader.h"

@ -4,13 +4,9 @@
// (found in the LICENSE.Apache file in the root directory).
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "test_util/transaction_test_util.h"
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <numeric>
#include <random>

@ -7,10 +7,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#ifndef GFLAGS
#include <cstdio>
int main() {

@ -7,10 +7,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#ifdef GFLAGS
#ifdef NUMA
#include <numa.h>
@ -20,7 +16,7 @@
#include <unistd.h>
#endif
#include <fcntl.h>
#include <inttypes.h>
#include <cinttypes>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>

@ -28,12 +28,8 @@ int main() {
}
#else
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif // __STDC_FORMAT_MACROS
#include <fcntl.h>
#include <inttypes.h>
#include <cinttypes>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>

@ -5,11 +5,7 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <iostream>
#include "rocksdb/db.h"

@ -7,11 +7,7 @@
#ifndef ROCKSDB_LITE
#include "rocksdb/utilities/ldb_cmd.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include "db/db_impl/db_impl.h"
#include "db/dbformat.h"

@ -8,11 +8,7 @@
#include "tools/sst_dump_tool_imp.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <iostream>
#include <map>
#include <memory>

@ -6,10 +6,6 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#ifdef GFLAGS
#ifdef NUMA
#include <numa.h>

@ -56,11 +56,7 @@ int main() {
}
#else
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif // __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <cinttypes>
#include <atomic>
#include <random>
#include <set>

@ -6,7 +6,7 @@
#ifndef UTIL_CRC32C_ARM64_H
#define UTIL_CRC32C_ARM64_H
#include <inttypes.h>
#include <cinttypes>
#if defined(__aarch64__) || defined(__AARCH64__)
#ifdef __ARM_FEATURE_CRC32

@ -6,7 +6,7 @@
// (found in the LICENSE.Apache file in the root directory).
#define CRC_TABLE
#include <inttypes.h>
#include <cinttypes>
#include <stdlib.h>
#include <strings.h>
#include "util/crc32c_ppc_constants.h"

@ -5,11 +5,7 @@
#pragma once
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include "util/set_comparator.h"

@ -11,11 +11,7 @@ int main() {
}
#else
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <atomic>
#include <functional>

@ -7,13 +7,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "util/rate_limiter.h"
#include <inttypes.h>
#include <cinttypes>
#include <chrono>
#include <limits>

@ -5,12 +5,8 @@
//
#include "util/string_util.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <errno.h>
#include <inttypes.h>
#include <cinttypes>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

@ -23,11 +23,7 @@
#include "util/string_util.h"
#include "utilities/checkpoint/checkpoint_impl.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif // __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <cinttypes>
#include <stdlib.h>
#include <algorithm>
#include <atomic>

@ -5,13 +5,9 @@
//
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "utilities/blob_db/blob_db.h"
#include <inttypes.h>
#include <cinttypes>
#include "utilities/blob_db/blob_db_impl.h"
namespace rocksdb {

@ -4,12 +4,8 @@
// (found in the LICENSE.Apache file in the root directory).
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "utilities/blob_db/blob_dump_tool.h"
#include <inttypes.h>
#include <cinttypes>
#include <stdio.h>
#include <iostream>
#include <memory>

@ -6,11 +6,7 @@
#ifndef ROCKSDB_LITE
#include "utilities/blob_db/blob_file.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <stdio.h>
#include <algorithm>

@ -11,11 +11,7 @@
#include "utilities/checkpoint/checkpoint_impl.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <string>
#include <vector>

@ -4,11 +4,8 @@
// (found in the LICENSE.Apache file in the root directory).
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <cctype>
#include <unordered_map>

@ -5,14 +5,9 @@
//
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "utilities/persistent_cache/persistent_cache_tier.h"
#include "inttypes.h"
#include <cinttypes>
#include <string>
#include <sstream>

@ -5,13 +5,9 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "utilities/transactions/pessimistic_transaction_db.h"
#include <inttypes.h>
#include <cinttypes>
#include <string>
#include <unordered_set>
#include <vector>

@ -7,11 +7,7 @@
#include "utilities/transactions/transaction_base.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include "db/column_family.h"
#include "db/db_impl/db_impl.h"

@ -5,13 +5,9 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "utilities/transactions/transaction_lock_mgr.h"
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <condition_variable>

@ -5,10 +5,6 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "utilities/transactions/transaction_test.h"
#include <algorithm>

@ -5,11 +5,7 @@
#pragma once
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <functional>
#include <string>

@ -5,13 +5,9 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "utilities/transactions/transaction_util.h"
#include <inttypes.h>
#include <cinttypes>
#include <string>
#include <vector>

@ -5,13 +5,9 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "utilities/transactions/transaction_test.h"
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <atomic>
#include <functional>

@ -7,11 +7,7 @@
#include "utilities/transactions/write_prepared_txn.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <map>
#include <set>

@ -5,13 +5,9 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "utilities/transactions/write_prepared_txn_db.h"
#include <inttypes.h>
#include <cinttypes>
#include <algorithm>
#include <string>
#include <unordered_set>

@ -6,11 +6,7 @@
#pragma once
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <cinttypes>
#include <mutex>
#include <queue>
#include <set>

@ -5,10 +5,6 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "utilities/transactions/transaction_test.h"
#include "utilities/transactions/write_unprepared_txn.h"
#include "utilities/transactions/write_unprepared_txn_db.h"

@ -10,10 +10,6 @@
#include "util/cast_util.h"
#include "utilities/transactions/write_unprepared_txn_db.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
namespace rocksdb {
bool WriteUnpreparedTxnReadCallback::IsVisibleFullCheck(SequenceNumber seq) {

@ -5,10 +5,6 @@
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "utilities/transactions/write_unprepared_txn_db.h"
#include "rocksdb/utilities/transaction_db.h"
#include "util/cast_util.h"

@ -6,10 +6,6 @@
#pragma once
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "utilities/transactions/write_prepared_txn_db.h"
#include "utilities/transactions/write_unprepared_txn.h"

Loading…
Cancel
Save