File tree Expand file tree Collapse file tree 5 files changed +11
-6
lines changed Expand file tree Collapse file tree 5 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,15 @@ verible_used_stdenv.mkDerivation {
38
38
lcov # coverage html generation.
39
39
bazel-buildtools # buildifier
40
40
41
- clang-tools_18 # for clang-tidy
42
- clang-tools_17 # for clang-format
41
+ llvmPackages_19 . clang-tools # for clang-tidy
42
+ llvmPackages_17 . clang-tools # for clang-format
43
43
] ;
44
44
shellHook = ''
45
45
# clang tidy: use latest.
46
- export CLANG_TIDY=${ pkgs . clang-tools_18 } /bin/clang-tidy
46
+ export CLANG_TIDY=${ pkgs . llvmPackages_19 . clang-tools } /bin/clang-tidy
47
47
48
48
# There is too much volatility between even micro-versions of
49
- # clang-format 18 . Let's use 17 for now.
50
- export CLANG_FORMAT=${ pkgs . clang-tools_17 } /bin/clang-format
49
+ # later clang-format. Let's use stable 17 for now.
50
+ export CLANG_FORMAT=${ pkgs . llvmPackages_17 . clang-tools } /bin/clang-format
51
51
'' ;
52
52
}
Original file line number Diff line number Diff line change @@ -71,7 +71,9 @@ template <class M>
71
71
const typename M::mapped_type &FindWithDefault (
72
72
M &map, const typename M::key_type &key, const typename M::mapped_type &d) {
73
73
auto found = map.find (key);
74
- return (found == map.end ()) ? d : found->second ;
74
+ return (found == map.end ())
75
+ ? d // NOLINT(bugprone-return-const-ref-from-parameter)
76
+ : found->second ;
75
77
}
76
78
77
79
template <class M >
Original file line number Diff line number Diff line change 23
23
24
24
#include " verible/common/text/token-info.h"
25
25
#include " verible/common/util/logging.h"
26
+ #include " verible/common/util/with-reason.h"
26
27
#include " verible/verilog/parser/verilog-token-enum.h"
27
28
28
29
namespace verilog {
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ cc_library(
26
26
"//verible/common/text:text-structure" ,
27
27
"//verible/common/text:token-info" ,
28
28
"//verible/common/text:tree-utils" ,
29
+ "//verible/common/util:interval" ,
29
30
"//verible/common/util:logging" ,
30
31
"//verible/verilog/CST:declaration" ,
31
32
"//verible/verilog/CST:dimensions" ,
Original file line number Diff line number Diff line change 45
45
#include " verible/common/text/text-structure.h"
46
46
#include " verible/common/text/token-info.h"
47
47
#include " verible/common/text/tree-utils.h"
48
+ #include " verible/common/util/interval.h"
48
49
#include " verible/common/util/logging.h"
49
50
#include " verible/verilog/CST/declaration.h"
50
51
#include " verible/verilog/CST/dimensions.h"
You can’t perform that action at this time.
0 commit comments