Skip to content

4 * declaration and definition mismatch. #88716

Closed
@dcb314

Description

@dcb314

Static analyser cppcheck says

clang/lib/StaticAnalyzer/Core/RegionStore.cpp:1302:45: warning: Function 'invalidateRegions' argument order different: declaration 'store, Values, E, Count, LCtx, Call, IS, ITraits, Invalidated, InvalidatedTopLevel' definition 'store, Values, Ex, Count, LCtx, Call, IS, ITraits, TopLevelRegions, Invalidated' [funcArgOrderDifferent]

mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorIterator.cpp:1336:49: warning: Function 'makeSparseTensorLevel' argument order different: declaration 'builder, loc, t, tid, l' definition 'b, l, t, tid, lvl' [funcArgOrderDifferent]

llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:3155:54: warning: Function 'matchSelectFromAndOr' argument order different: declaration 'A, B, C, D, InvertFalseVal' definition 'A, C, B, D, InvertFalseVal' [funcArgOrderDifferent]

llvm/lib/Transforms/Vectorize/VPlan.cpp:998:48: warning: Function 'updateDominatorTree' argument order different: declaration 'DT, LoopLatchBB, LoopPreHeaderBB, LoopExitBB' definition 'DT, LoopHeaderBB, LoopLatchBB, LoopExitBB' [funcArgOrderDifferent]

Suggest code rework.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions