Skip to content

Template argument deduction using SymbolDatabase#8720

Open
pfultz2 wants to merge 14 commits into
cppcheck-opensource:mainfrom
pfultz2:template-deduce-loop
Open

Template argument deduction using SymbolDatabase#8720
pfultz2 wants to merge 14 commits into
cppcheck-opensource:mainfrom
pfultz2:template-deduce-loop

Fix the results

1aa06fc
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / Cppcheck Premium failed Jul 14, 2026 in 3s

11 new alerts including 4 errors

New alerts in code changed by this pull request

  • 4 errors
  • 7 warnings

See annotations below for details.

View all branch alerts.

Annotations

Check failure on line 1096 in lib/templatesimplifier.cpp

See this annotation in the file changed.

Code scanning / Cppcheck Premium

Range check element access Error

Range check element access

Check failure on line 1189 in lib/templatesimplifier.cpp

See this annotation in the file changed.

Code scanning / Cppcheck Premium

Ensure that integer conversions do not result in lost or misinterpreted data Error

Ensure that integer conversions do not result in lost or misinterpreted data

Check failure on line 1199 in lib/templatesimplifier.cpp

See this annotation in the file changed.

Code scanning / Cppcheck Premium

Ensure that integer conversions do not result in lost or misinterpreted data Error

Ensure that integer conversions do not result in lost or misinterpreted data

Check failure on line 1283 in lib/templatesimplifier.cpp

See this annotation in the file changed.

Code scanning / Cppcheck Premium

Ensure that integer conversions do not result in lost or misinterpreted data Error

Ensure that integer conversions do not result in lost or misinterpreted data

Check warning on line 889 in lib/templatesimplifier.cpp

See this annotation in the file changed.

Code scanning / Cppcheck Premium

Use bitwise operators only on unsigned operands. Right operand of the shift operator should be of unsigned type or a positive constant expression Warning

Use bitwise operators only on unsigned operands. Right operand of the shift operator should be of unsigned type or a positive constant expression

Check warning on line 893 in lib/templatesimplifier.cpp

See this annotation in the file changed.

Code scanning / Cppcheck Premium

Use bitwise operators only on unsigned operands. Right operand of the shift operator should be of unsigned type or a positive constant expression Warning

Use bitwise operators only on unsigned operands. Right operand of the shift operator should be of unsigned type or a positive constant expression

Check warning on line 899 in lib/templatesimplifier.cpp

See this annotation in the file changed.

Code scanning / Cppcheck Premium

Use bitwise operators only on unsigned operands. Right operand of the shift operator should be of unsigned type or a positive constant expression Warning

Use bitwise operators only on unsigned operands. Right operand of the shift operator should be of unsigned type or a positive constant expression

Check warning on line 967 in lib/templatesimplifier.cpp

See this annotation in the file changed.

Code scanning / Cppcheck Premium

The structure of a switch statement shall be appropriate: switch statements shall have default label as the first or the last case Warning

The structure of a switch statement shall be appropriate: switch statements shall have default label as the first or the last case

Check warning on line 1000 in lib/templatesimplifier.cpp

See this annotation in the file changed.

Code scanning / Cppcheck Premium

Use bitwise operators only on unsigned operands. Right operand of the shift operator should be of unsigned type or a positive constant expression Warning

Use bitwise operators only on unsigned operands. Right operand of the shift operator should be of unsigned type or a positive constant expression

Check warning on line 1156 in lib/templatesimplifier.cpp

See this annotation in the file changed.

Code scanning / Cppcheck Premium

std::vector should not be specialized with bool Warning

std::vector should not be specialized with bool

Check warning on line 1304 in lib/templatesimplifier.cpp

See this annotation in the file changed.

Code scanning / Cppcheck Premium

std::vector should not be specialized with bool Warning

std::vector should not be specialized with bool