compile

command_line: /opt/hostedtoolcache/cmake/4.2.1/x64/cmake-4.2.1-linux-x86_64/bin/cmake -E __run_co_compile --iwyu=iwyu;--driver-mode=g++ -- /usr/bin/clang++-17 -DABORT_ON_FAILED_ASSUME -DDEBUG -DDEBUG_LOCKCONTENTION -DDEBUG_LOCKORDER -DFALLTHROUGH_INTENDED=[[fallthrough]] -DHAVE_CRC32C=1 -DHAVE_FDATASYNC=1 -DHAVE_FULLFSYNC=0 -DHAVE_O_CLOEXEC=1 -DHAVE_SNAPPY=0 -DLEVELDB_PLATFORM_POSIX -DRPC_DOC_CHECK -I/home/runner/work/nightly-builds/nightly-builds/build/src -I/home/runner/work/nightly-builds/nightly-builds/src -I/home/runner/work/nightly-builds/nightly-builds/src/leveldb -I/home/runner/work/nightly-builds/nightly-builds/src/leveldb/include -I/home/runner/work/nightly-builds/nightly-builds/src/crc32c/include -O0 -ftrapv -g3 -std=c++20 -fPIC -fdebug-prefix-map=/home/runner/work/nightly-builds/nightly-builds/src=. -fmacro-prefix-map=/home/runner/work/nightly-builds/nightly-builds/src=. -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wloop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wsuggest-override -Wimplicit-fallthrough -Wunreachable-code -Wdocumentation -Wself-assign -Wundef -Wno-unused-parameter -Wno-conditional-uninitialized -MD -MT src/CMakeFiles/leveldb.dir/leveldb/db/db_impl.cc.o -MF src/CMakeFiles/leveldb.dir/leveldb/db/db_impl.cc.o.d -o src/CMakeFiles/leveldb.dir/leveldb/db/db_impl.cc.o -c /home/runner/work/nightly-builds/nightly-builds/src/leveldb/db/db_impl.cc

working_directory: "/home/runner/work/nightly-builds/nightly-builds/build"

Target: leveldb

Target Type: object file

Source: src/leveldb/db/db_impl.cc

Language: C++

stderr:

Warning: include-what-you-use reported diagnostics:

/home/runner/work/nightly-builds/nightly-builds/src/leveldb/db/db_impl.h should add these lines:
#include <stdint.h>                   // for int64_t, uint64_t, uint32_t
#include "leveldb/options.h"          // for ReadOptions (ptr only), WriteOp...
#include "leveldb/slice.h"            // for Slice
#include "leveldb/status.h"           // for Status
#include "port/port_stdcxx.h"         // for CondVar, Mutex
namespace leveldb { class Comparator; }
namespace leveldb { class Env; }
namespace leveldb { class FileLock; }
namespace leveldb { class Iterator; }
namespace leveldb { class WritableFile; }
namespace leveldb { class WriteBatch; }
namespace leveldb { namespace log { class Writer; } }

/home/runner/work/nightly-builds/nightly-builds/src/leveldb/db/db_impl.h should remove these lines:
- #include "db/log_writer.h"  // lines 14-14
- #include "leveldb/env.h"  // lines 17-17
- #include "port/port.h"  // lines 18-18

The full include-list for /home/runner/work/nightly-builds/nightly-builds/src/leveldb/db/db_impl.h:
#include <stdint.h>                   // for int64_t, uint64_t, uint32_t
#include <atomic>                     // for atomic
#include <deque>                      // for deque
#include <set>                        // for set
#include <string>                     // for string
#include "db/dbformat.h"              // for InternalKeyComparator, Sequence...
#include "db/snapshot.h"              // for SnapshotList
#include "leveldb/db.h"               // for Snapshot (ptr only), DB, Range ...
#include "leveldb/options.h"          // for ReadOptions (ptr only), WriteOp...
#include "leveldb/slice.h"            // for Slice
#include "leveldb/status.h"           // for Status
#include "port/port_stdcxx.h"         // for CondVar, Mutex
#include "port/thread_annotations.h"  // for GUARDED_BY, EXCLUSIVE_LOCKS_REQ...
namespace leveldb { class Comparator; }
namespace leveldb { class Env; }
namespace leveldb { class FileLock; }
namespace leveldb { class Iterator; }
namespace leveldb { class MemTable; }  // lines 23-23
namespace leveldb { class TableCache; }  // lines 24-24
namespace leveldb { class Version; }  // lines 25-25
namespace leveldb { class VersionEdit; }  // lines 26-26
namespace leveldb { class VersionSet; }  // lines 27-27
namespace leveldb { class WritableFile; }
namespace leveldb { class WriteBatch; }
namespace leveldb { namespace log { class Writer; } }
namespace leveldb { struct DBImpl::CompactionState; }  // lines 76-76
namespace leveldb { struct DBImpl::Writer; }  // lines 77-77
---

/home/runner/work/nightly-builds/nightly-builds/src/leveldb/db/db_impl.cc should add these lines:
#include <assert.h>                   // for assert
#include <string.h>                   // for strlen
#include <utility>                    // for move
#include "db/version_edit.h"          // for FileMetaData, VersionEdit
#include "leveldb/cache.h"            // for Cache, NewLRUCache
#include "leveldb/comparator.h"       // for Comparator
#include "leveldb/iterator.h"         // for Iterator
#include "leveldb/write_batch.h"      // for WriteBatch

/home/runner/work/nightly-builds/nightly-builds/src/leveldb/db/db_impl.cc should remove these lines:
- #include "leveldb/table.h"  // lines 29-29
- #include "port/port.h"  // lines 31-31
- #include "table/block.h"  // lines 32-32
- #include "table/two_level_iterator.h"  // lines 34-34
- #include "util/coding.h"  // lines 35-35

The full include-list for /home/runner/work/nightly-builds/nightly-builds/src/leveldb/db/db_impl.cc:
#include "db/db_impl.h"
#include <assert.h>                   // for assert
#include <stdint.h>                   // for uint64_t, uint32_t, int64_t
#include <stdio.h>                    // for size_t, snprintf
#include <string.h>                   // for strlen
#include <algorithm>                  // for sort
#include <atomic>                     // for atomic, memory_order_acquire
#include <set>                        // for set, operator==, _Rb_tree_const...
#include <string>                     // for allocator, string, operator+
#include <utility>                    // for move
#include <vector>                     // for vector
#include "db/builder.h"               // for BuildTable
#include "db/db_iter.h"               // for NewDBIterator
#include "db/dbformat.h"              // for InternalKey, SequenceNumber
#include "db/filename.h"              // for FileType, LogFileName, ParseFil...
#include "db/log_reader.h"            // for Reader
#include "db/log_writer.h"            // for Writer
#include "db/memtable.h"              // for MemTable
#include "db/table_cache.h"           // for TableCache
#include "db/version_edit.h"          // for FileMetaData, VersionEdit
#include "db/version_set.h"           // for VersionSet, Compaction, Version
#include "db/write_batch_internal.h"  // for WriteBatchInternal
#include "leveldb/cache.h"            // for Cache, NewLRUCache
#include "leveldb/comparator.h"       // for Comparator
#include "leveldb/db.h"               // for DB, Range, Snapshot, DestroyDB
#include "leveldb/env.h"              // for Env, Log, WritableFile, FileLoc...
#include "leveldb/iterator.h"         // for Iterator
#include "leveldb/status.h"           // for Status
#include "leveldb/table_builder.h"    // for TableBuilder
#include "leveldb/write_batch.h"      // for WriteBatch
#include "table/merger.h"             // for NewMergingIterator
#include "util/logging.h"             // for ConsumeDecimalNumber
#include "util/mutexlock.h"           // for MutexLock
---
Status: 0
Loading...