Skip to content

Commit 03692c8

Browse files
authored
Update build.sh and CMakeLists.txt (milvus-io#25)
Signed-off-by: yudong.cai <[email protected]>
1 parent 92cf607 commit 03692c8

22 files changed

+7614
-205
lines changed

Diff for: .clang-format

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
---
18+
BasedOnStyle: Google
19+
DerivePointerAlignment: false
20+
ColumnLimit: 120
21+
IndentWidth: 4
22+
AccessModifierOffset: -3
23+
AlwaysBreakAfterReturnType: All
24+
AllowShortBlocksOnASingleLine: false
25+
AllowShortFunctionsOnASingleLine: false
26+
AllowShortIfStatementsOnASingleLine: false
27+
AlignTrailingComments: true

Diff for: .clang-tidy

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# The checks defined here will be run and will display by default as warnings.
19+
Checks: >
20+
-*, clang-diagnostic-*, -clang-diagnostic-error,
21+
clang-analyzer-*, -clang-analyzer-alpha*,
22+
google-*, -google-runtime-references, -google-readability-todo,
23+
modernize-*, -modernize-pass-by-value, -modernize-use-equals-default,
24+
performance-faster-string-find, performance-for-range-copy,
25+
performance-implicit-conversion-in-loop, performance-inefficient-algorithm,
26+
performance-trivially-destructible, performance-inefficient-vector-operation,
27+
performance-move-const-arg, performance-move-constructor-init,
28+
performance-noexcept-move-constructor, performance-no-automatic-move,
29+
performance-type-promotion-in-math-fn
30+
31+
# produce HeaderFilterRegex from core/build-support/lint_exclusions.txt with:
32+
# echo -n '^?!('; sed -e 's/*/\.*/g' core/build-support/lint_exclusions.txt | tr '\n' '|'; echo ')$'
33+
HeaderFilterRegex: '^?!(.*cmake-build-debug.*|.*cmake-build-release.*|.*cmake_build.*|.*thirdparty.*|.*src/grpc.*|.*knowhere/include.*|.*unittest.*)$'
34+
AnalyzeTemporaryDtors: true
35+
CheckOptions:
36+
- key: google-readability-braces-around-statements.ShortStatementLines
37+
value: '1'
38+
- key: google-readability-function-size.StatementThreshold
39+
value: '800'
40+
- key: google-readability-namespace-comments.ShortNamespaceLines
41+
value: '10'
42+
- key: google-readability-namespace-comments.SpacesBeforeComments
43+
value: '2'

Diff for: .clang-tidy-ignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
#

0 commit comments

Comments
 (0)