Bug fix/clang tidy warnings part2 (#296)

* core.StackAddressEscape

* cplusplus.VirtualCall

* clang-analyzer-deadcode.DeadStores

* clang-analyzer-core.NullDereference

* clang-analyzer-core.NonNullParamChecker

* change to nolint

---------

Co-authored-by: gtsoul-tech <gtsoulkanakis@gmail.com>
This commit is contained in:
gtsoul-tech
2024-06-04 16:18:17 +03:00
committed by GitHub
parent 4113a1f150
commit 8fc1a7efff
10 changed files with 34 additions and 26 deletions

View File

@@ -158,7 +158,7 @@ GlushkovBuildStateImpl::GlushkovBuildStateImpl(NFABuilder &b,
lasts.emplace_back(startState);
lasts.emplace_back(startDotstarState);
firsts.emplace_back(startDotstarState);
connectRegions(lasts, firsts);
connectRegions(lasts, firsts); //NOLINT (cplusplus.VirtualCall)
// accept to acceptEod edges already wired
@@ -341,7 +341,7 @@ void GlushkovBuildStateImpl::connectSuccessors(const PositionInfo &from,
Position fakedot = builder.makePositions(1);
builder.addCharReach(fakedot, CharReach(0x00, 0xff));
builder.setNodeReportID(fakedot, -1);
addSuccessor(fakedot, acceptState);
addSuccessor(fakedot, acceptState); //NOLINT (cplusplus.VirtualCall)
*accept = fakedot;
} else {
// We might lead to accept via an assertion vertex, so we add the