File tree Expand file tree Collapse file tree 4 files changed +56
-28
lines changed
Expand file tree Collapse file tree 4 files changed +56
-28
lines changed Original file line number Diff line number Diff line change 1+ # Copyright 2023 Ericsson AB
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
115# cc_binary for simple C++ tests
216load (
317 "@rules_cc//cc:defs.bzl" ,
418 "cc_binary" ,
519 "cc_library" ,
620)
721
8- # compile_commands rule
9- load (
10- "@bazel_codechecker//src:compile_commands.bzl" ,
11- "compile_commands" ,
12- )
13-
14- # codechecker rules
15- load (
16- "@bazel_codechecker//src:codechecker.bzl" ,
17- "codechecker" ,
18- "codechecker_config" ,
19- "codechecker_suite" ,
20- "codechecker_test" ,
21- )
22-
23- # clang-tidy and clang -analyze rules
24- load (
25- "@bazel_codechecker//src:clang.bzl" ,
26- "clang_analyze_test" ,
27- "clang_tidy_test" ,
28- )
29-
30- # clang -analyze + CTU rule
31- load (
32- "@bazel_codechecker//src:clang_ctu.bzl" ,
33- "clang_ctu_test" ,
34- )
35-
3622# Prototype for CodeChecker analyze --file
3723# NOTE: CodeChecker analyze --file --ctu does not work
3824load (
Original file line number Diff line number Diff line change 1+ // Copyright 2023 Ericsson AB
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+
115#ifndef LINKING_H
216#define LINKING_H
317int foo ();
Original file line number Diff line number Diff line change 1+ // Copyright 2023 Ericsson AB
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+
115#include " linking.h"
216
317int main (){
Original file line number Diff line number Diff line change 1+ // Copyright 2023 Ericsson AB
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+
115#include " linking.h"
216
317int foo (){
You can’t perform that action at this time.
0 commit comments