Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pragma2ifndef #3716

Merged
merged 76 commits into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from 74 commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
68ea96e
add cmake git hooks options
jiayuehua Dec 1, 2021
ec45d70
Merge remote-tracking branch 'upstream/master'
jiayuehua Dec 9, 2021
0ab3ec5
githooks option
jiayuehua Dec 9, 2021
0124096
include what you use
jiayuehua Dec 10, 2021
a4b498a
Merge branch 'vesoft-inc:master' into master
jiayuehua Dec 10, 2021
2631efb
make name follow convention
jiayuehua Dec 10, 2021
fd73804
linker support lld, which is the fastest linker. If ci
jiayuehua Dec 13, 2021
d48a879
Merge branch 'master' into master
yixinglu Dec 13, 2021
be88514
Merge branch 'vesoft-inc:master' into master
jiayuehua Dec 14, 2021
d4737a0
Merge remote-tracking branch 'origin/master'
jiayuehua Dec 14, 2021
884177a
Merge branch 'master' into master
yixinglu Dec 16, 2021
3ff1b32
log rotate
jiayuehua Dec 16, 2021
11c7704
Merge branch 'master' into master
Sophie-Xie Dec 21, 2021
5017298
Merge remote-tracking branch 'upstream/master'
jiayuehua Dec 28, 2021
f3d8a5d
delete werror
jiayuehua Dec 28, 2021
6448ece
merge 3.0
jiayuehua Dec 28, 2021
71c0e39
Merge branch 'master' of https://github.com/jiayuehua/nebula
jiayuehua Jan 13, 2022
55debd2
pragma once => ifndef
jiayuehua Jan 13, 2022
da224c5
Merge remote-tracking branch 'upstream/master'
jiayuehua Jan 13, 2022
f37f2f9
pragma once => ifndef
jiayuehua Jan 13, 2022
2217275
Werror bison
jiayuehua Jan 13, 2022
ec21670
format code
jiayuehua Jan 13, 2022
567b1a7
Merge branch 'master' into pragma2
CPWstatic Jan 14, 2022
525da0e
fix issue 3601 (#3666)
cangfengzhs Jan 14, 2022
8ce51d1
fix meta upgrade for multi instance (#3734)
darionyaphet Jan 17, 2022
73dad09
drop host only when it registe heartbeat (#3739)
darionyaphet Jan 17, 2022
f3a27aa
Fix race of create tag and edge (#3735)
jackwener Jan 18, 2022
d8665e9
Add version for `show hosts` (#3702)
jackwener Jan 18, 2022
2bce24e
Enhancement/set expression depth by flag (#3722)
Shylock-Hg Jan 18, 2022
c1b90e8
Update client version to v3.0.0 (#3741)
Aiee Jan 18, 2022
311eb74
Fix create fulltext index failed (#3747)
panda-sheep Jan 18, 2022
14133f3
add comments and adjust log level for meta/processors/admin (#3662)
pengweisong Jan 19, 2022
0ffc73e
fix writternBy delete by optimizer (#3746)
heroicNeZha Jan 20, 2022
47b57d7
fix with & optimizer rule error (#3736)
nevermore3 Jan 20, 2022
bda53e9
fix upgrade bug (#3772)
cangfengzhs Jan 20, 2022
94e7090
fix 3727 (#3737)
darionyaphet Jan 20, 2022
4f4cf1e
Balance fix (#3668)
liwenhui-soul Jan 20, 2022
bdde526
Eliminte the useless row collect. (#3363)
Shylock-Hg Jan 21, 2022
7611005
Add snapshot for prefix iterate. (#3717)
SuperYoko Jan 21, 2022
b4f2b13
Read lock zone when create space. (#3693)
Shylock-Hg Jan 21, 2022
b3128bb
suppress undesired ASAN error (#3705)
critical27 Jan 21, 2022
49dcb78
1. add comments and change log level for meta (#3709)
pengweisong Jan 24, 2022
45c3a08
fix upgrade (#3787)
cangfengzhs Jan 24, 2022
06fb3d6
Create CODEOWNERS (#3770)
Sophie-Xie Jan 24, 2022
ac58676
disable data balance (#3756)
liwenhui-soul Jan 24, 2022
f8f16eb
Fix iterator with snapshot(parameter position) (#3785)
SuperYoko Jan 24, 2022
a302bad
disable meta upgrade from v1 (#3798)
darionyaphet Jan 26, 2022
61a051d
Add gflag validator for client_idle_timeout_secs (#3807)
Aiee Jan 26, 2022
46f85e4
disable zone commands (#3776)
darionyaphet Jan 26, 2022
663b516
Add ci for standalone compile and ut. (#3637)
SuperYoko Jan 26, 2022
af3eba0
Fix the promise/future. (#3814)
CPWstatic Jan 26, 2022
086df41
add comments & accumulate bug fix for TOSS (#3643)
liuyu85cn Jan 26, 2022
4562e08
disable add hosts into zone (#3825)
darionyaphet Jan 26, 2022
b0f550a
Check active zone before create space (#3822)
darionyaphet Jan 26, 2022
a1b136f
abandon upgrader for old version (#3818)
cangfengzhs Jan 26, 2022
e4f3443
put dataVersionKey on create space for storage (#3817)
cangfengzhs Jan 26, 2022
11fcc4c
Update PR template (#3809)
Aiee Jan 27, 2022
dcc6441
fix meta http replace host handler (#3794)
pengweisong Jan 27, 2022
4e9c2e8
Fix `Match cannot be followed by use space` (#3748)
jackwener Jan 27, 2022
d609a73
support toSet function (#3594)
czpmango Jan 27, 2022
f11d471
Enhance date parser (#3797)
jackwener Jan 27, 2022
4df057e
raft: fix always loop when no log need to send (#3819)
liwenhui-soul Jan 27, 2022
51f3086
Update CODEOWNERS (#3835)
Sophie-Xie Jan 28, 2022
72f8938
refactor AdminClient (#3781)
critical27 Jan 28, 2022
973137d
Feature/optimizer trait match (#3769)
Shylock-Hg Jan 28, 2022
2677728
Simplify datetime tostring. (#3712)
Shylock-Hg Jan 28, 2022
002790b
pragma once not allowd (#3842)
jiayuehua Jan 29, 2022
2b650b7
refactor LOG and add comment for meta, meta/processors/job (#3686)
liwenhui-soul Jan 29, 2022
7d641ff
replace STRING to name_label for zone's name (#3780)
liwenhui-soul Jan 29, 2022
01f7070
Add test for rc. (#3847)
CPWstatic Jan 29, 2022
eff0195
merge conflicts resolve
jiayuehua Feb 7, 2022
ee2f4e8
cpp lint
jiayuehua Feb 7, 2022
6e3baeb
Merge branch 'master' into pragma2
critical27 Feb 8, 2022
3567be1
Merge branch 'master' into pragma2
critical27 Feb 8, 2022
6ae9487
Merge branch 'master' into pragma2
critical27 Feb 8, 2022
ffac150
Merge branch 'master' into pragma2
jiayuehua Feb 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/clients/meta/stats/MetaClientStats.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once

#ifndef CLIENTIS_META_STATS_METACLIENTSTATS_H
#define CLIENTIS_META_STATS_METACLIENTSTATS_H
#include "common/stats/StatsManager.h"

namespace nebula {
Expand All @@ -15,3 +15,4 @@ extern stats::CounterId kNumRpcSentToMetadFailed;
void initMetaClientStats();

} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/clients/storage/StorageClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef CLIENTS_STORAGE_STORAGECLIENT_H
#define CLIENTS_STORAGE_STORAGECLIENT_H

#include <gtest/gtest_prod.h>

Expand Down Expand Up @@ -192,3 +193,4 @@ class StorageClient

} // namespace storage
} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/clients/storage/StorageClientBase-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef CLIENTS_STORAGE_STORAGECLIENTBASE_INL_H
#define CLIENTS_STORAGE_STORAGECLIENTBASE_INL_H

#include <folly/Try.h>

Expand Down Expand Up @@ -379,3 +380,4 @@ StorageClientBase<ClientType, ClientManagerType>::getHostPartsWithCursor(

} // namespace storage
} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/clients/storage/stats/StorageClientStats.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef CLIENTS_STORAGE_STATS_STORAGECLIENTSTATS_H
#define CLIENTS_STORAGE_STATS_STORAGECLIENTSTATS_H

#include "common/stats/StatsManager.h"

Expand All @@ -15,3 +16,4 @@ extern stats::CounterId kNumRpcSentToStoragedFailed;
void initStorageClientStats();

} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/codec/include/NebulaCodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef CODEC_INCLUDE_NEBULACODEC_H
#define CODEC_INCLUDE_NEBULACODEC_H

#include "common/base/StatusOr.h"
#include "common/meta/SchemaProviderIf.h"
Expand All @@ -24,3 +25,4 @@ class NebulaCodec {
};

} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/codec/test/RowWriterV1-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef CODEC_TEST_ROWWRITERV1_INL_H
#define CODEC_TEST_ROWWRITERV1_INL_H

namespace nebula {

Expand Down Expand Up @@ -45,3 +46,4 @@ typename std::enable_if<std::is_integral<T>::value>::type RowWriterV1::writeInt(
}

} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/base/CollectNSucceeded-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_BASE_COLLECTNSUCCEEDED_INL_H
#define COMMON_BASE_COLLECTNSUCCEEDED_INL_H

#include <folly/ExceptionWrapper.h>

Expand Down Expand Up @@ -67,3 +68,4 @@ folly::Future<SucceededResultList<FutureIter>> collectNSucceeded(FutureIter firs
}

} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/base/ICord.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_BASE_ICORD_H
#define COMMON_BASE_ICORD_H

#include "common/base/Base.h"

Expand Down Expand Up @@ -244,3 +245,4 @@ class ICord {
};

} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/datatypes/Duration.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_DATATYPES_DURATION_H
#define COMMON_DATATYPES_DURATION_H

#include <folly/dynamic.h>

Expand Down Expand Up @@ -150,3 +151,4 @@ struct hash<nebula::Duration> {
};

} // namespace std
#endif
4 changes: 3 additions & 1 deletion src/common/datatypes/DurationOps-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_DATATYPES_DURATIONOPS_INL_H
#define COMMON_DATATYPES_DURATIONOPS_INL_H

#include <thrift/lib/cpp2/GeneratedCodeHelper.h>
#include <thrift/lib/cpp2/gen/module_types_tcc.h>
Expand Down Expand Up @@ -199,3 +200,4 @@ uint32_t Cpp2Ops<nebula::Duration>::serializedSizeZC(Protocol const* proto,

} // namespace thrift
} // namespace apache
#endif
4 changes: 3 additions & 1 deletion src/common/datatypes/Geography.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_DATATYPES_GEOGRAPHY_H
#define COMMON_DATATYPES_GEOGRAPHY_H

#include <s2/s2point.h>
#include <s2/s2point_region.h>
Expand Down Expand Up @@ -239,3 +240,4 @@ struct hash<nebula::Geography> {
};

} // namespace std
#endif
4 changes: 3 additions & 1 deletion src/common/geo/GeoFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_GEO_GEOFUNCTION_H
#define COMMON_GEO_GEOFUNCTION_H

#include <s2/s2region_coverer.h>

Expand Down Expand Up @@ -73,3 +74,4 @@ class GeoFunction {

} // namespace geo
} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/geo/GeoIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_GEO_GEOINDEX_H
#define COMMON_GEO_GEOINDEX_H

#include <s2/s2region_coverer.h>

Expand Down Expand Up @@ -101,3 +102,4 @@ struct hash<S2CellId> {
};

} // namespace std
#endif
4 changes: 3 additions & 1 deletion src/common/geo/GeoUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_GEO_GEOUTILS_H
#define COMMON_GEO_GEOUTILS_H

#include <s2/s2latlng.h>
#include <s2/s2loop.h>
Expand Down Expand Up @@ -96,3 +97,4 @@ class GeoUtils final {

} // namespace geo
} // namespace nebula
#endif
14 changes: 11 additions & 3 deletions src/common/geo/io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
#
# This source code is licensed under Apache 2.0 License.

if(ENABLE_VERBOSE_BISON)
set(bison_flags "-Werror -v")
if(ENABLE_ERROR)
if(ENABLE_VERBOSE_BISON)
set(bison_flags "-Werror -v")
else()
set(bison_flags "-Werror")
endif()
else()
set(bison_flags "-Werror")
if(ENABLE_VERBOSE_BISON)
set(bison_flags "-v")
else()
set(bison_flags "")
endif()
endif()
bison_target(Parser wkt/wkt_parser.yy ${CMAKE_CURRENT_BINARY_DIR}/wkt/WKTParser.cpp COMPILE_FLAGS ${bison_flags})
flex_target(Scanner wkt/wkt_scanner.lex ${CMAKE_CURRENT_BINARY_DIR}/wkt/WKTScanner.cpp)
Expand Down
4 changes: 3 additions & 1 deletion src/common/geo/io/wkb/ByteOrder.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_GEO_IO_WKB_BYTEORDER_H
#define COMMON_GEO_IO_WKB_BYTEORDER_H

#include <boost/endian/conversion.hpp>

Expand Down Expand Up @@ -76,3 +77,4 @@ struct ByteOrderData {

} // namespace geo
} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/geo/io/wkb/ByteOrderDataIOStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_GEO_IO_WKB_BYTEORDERDATAIOSTREAM_H
#define COMMON_GEO_IO_WKB_BYTEORDERDATAIOSTREAM_H

#include <sstream>

Expand Down Expand Up @@ -73,3 +74,4 @@ class ByteOrderDataOutStream {

} // namespace geo
} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/geo/io/wkb/WKBReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_GEO_IO_WKB_WKBREADER_H
#define COMMON_GEO_IO_WKB_WKBREADER_H

#include "common/base/Base.h"
#include "common/base/StatusOr.h"
Expand Down Expand Up @@ -45,3 +46,4 @@ class WKBReader {

} // namespace geo
} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/geo/io/wkb/WKBWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_GEO_IO_WKB_WKBWRITER_H
#define COMMON_GEO_IO_WKB_WKBWRITER_H

#include "common/base/Base.h"
#include "common/datatypes/Geography.h"
Expand Down Expand Up @@ -43,3 +44,4 @@ class WKBWriter {

} // namespace geo
} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/geo/io/wkt/WKTReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_GEO_IO_WKT_WKTREADER_H
#define COMMON_GEO_IO_WKT_WKTREADER_H

#include "common/base/Base.h"
#include "common/base/StatusOr.h"
Expand Down Expand Up @@ -81,3 +82,4 @@ class WKTReader {

} // namespace geo
} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/geo/io/wkt/WKTScanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_GEO_IO_WKT_WKTSCANNER_H
#define COMMON_GEO_IO_WKT_WKTSCANNER_H

#include "common/base/Base.h"

Expand Down Expand Up @@ -75,3 +76,4 @@ class WKTScanner : public yyFlexLexer {

} // namespace geo
} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/geo/io/wkt/WKTWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_GEO_IO_WKT_WKTWRITER_H
#define COMMON_GEO_IO_WKT_WKTWRITER_H

#include "common/base/Base.h"
#include "common/datatypes/Geography.h"
Expand Down Expand Up @@ -31,3 +32,4 @@ class WKTWriter {

} // namespace geo
} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/log/LogMonitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
*
* This source code is licensed under Apache 2.0 License.
*/
#pragma once
#ifndef COMMON_LOG_LOGMONITOR_H
#define COMMON_LOG_LOGMONITOR_H

#include <boost/filesystem.hpp>
#include <boost/system/error_code.hpp>
Expand Down Expand Up @@ -41,3 +42,4 @@ class LogMonitor {
};

} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/memory/MemoryUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_MEMORY_MEMORYUTILS_H
#define COMMON_MEMORY_MEMORYUTILS_H

#include <atomic>
#include <cstdint>
Expand Down Expand Up @@ -33,3 +34,4 @@ class MemoryUtils final {
};

} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/ssl/SSLConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_SSL_SSLCONFIG_H
#define COMMON_SSL_SSLCONFIG_H

#include <folly/io/async/SSLContext.h>
#include <gflags/gflags.h>
Expand All @@ -23,3 +24,4 @@ extern std::shared_ptr<wangle::SSLContextConfig> sslContextConfig();
extern std::shared_ptr<folly::SSLContext> createSSLContext();

} // namespace nebula
#endif
4 changes: 3 additions & 1 deletion src/common/stats/StatsManager-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* This source code is licensed under Apache 2.0 License.
*/

#pragma once
#ifndef COMMON_STATS_STATSMANAGER_INL_H
#define COMMON_STATS_STATSMANAGER_INL_H

namespace nebula {
namespace stats {
Expand All @@ -30,3 +31,4 @@ StatsManager::VT StatsManager::readValue(StatsHolder& stats,

} // namespace stats
} // namespace nebula
#endif
Loading