Skip to content

Commit

Permalink
Clean up some new clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePopoloski committed Jan 18, 2025
1 parent d8f2ee8 commit b8ead97
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ Checks: >
-modernize-use-emplace,
-modernize-return-braced-init-list,
-modernize-loop-convert,
-modernize-use-designated-initializers,
-bugprone-suspicious-semicolon,
-bugprone-branch-clone,
-bugprone-sizeof-expression,
3 changes: 2 additions & 1 deletion scripts/syntax_gen.py
Original file line number Diff line number Diff line change
@@ -868,6 +868,7 @@ def generateSyntaxClone(builddir, alltypes, kindmap):
SyntaxNode* clone(const SyntaxListBase&, BumpAllocator&) {
return nullptr;
}
"""
)
# Write out deepClone methods for each derived type.
@@ -876,7 +877,7 @@ def generateSyntaxClone(builddir, alltypes, kindmap):
continue
if v.final:
clonef.write(
"SyntaxNode* clone(const {0}& node, BumpAllocator& alloc) {{\n".format(
"static SyntaxNode* clone(const {0}& node, BumpAllocator& alloc) {{\n".format(
k
)
)

0 comments on commit b8ead97

Please sign in to comment.