Skip to content

clang-tidy: Fix IDEXTaint#456

Merged
pdschubert merged 7 commits intodevelopmentfrom
f-ClangTidyFixIDEXTaint
Jan 4, 2022
Merged

clang-tidy: Fix IDEXTaint#456
pdschubert merged 7 commits intodevelopmentfrom
f-ClangTidyFixIDEXTaint

Conversation

@MMory
Copy link
Copy Markdown
Member

@MMory MMory commented Dec 23, 2021

please merge after #455

Comment thread lib/PhasarLLVM/ControlFlow/Resolver/Resolver.cpp Outdated
Comment thread unittests/PhasarLLVM/ControlFlow/LLVMBasedICFGGlobCtorDtorTest.cpp Outdated
Comment thread unittests/PhasarLLVM/DataFlowSolver/IfdsIde/EdgeFunctionSingletonFactoryTest.cpp Outdated
Copy link
Copy Markdown
Member

@fabianbs96 fabianbs96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far; just some minor things

Comment thread include/phasar/PhasarLLVM/ControlFlow/LLVMBasedICFG.h
Comment thread include/phasar/PhasarLLVM/ControlFlow/LLVMBasedICFG.h
Comment on lines +52 to +53
EdgeFunctionComposer(EdgeFunctionPtrType &F, EdgeFunctionPtrType &G)
: EFComposerId(++CurrEFComposerId), F(F), G(G) {}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
EdgeFunctionComposer(EdgeFunctionPtrType &F, EdgeFunctionPtrType &G)
: EFComposerId(++CurrEFComposerId), F(F), G(G) {}
EdgeFunctionComposer(EdgeFunctionPtrType F, EdgeFunctionPtrType G)
: EFComposerId(++CurrEFComposerId), F(std::move(F)), G(std::move(G)) {}

Comment thread include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/FlowFunctions.h
Comment thread include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/FlowFunctions.h
bool isLLVMZeroValue(const llvm::Value *V) const {
if (V && V->hasName()) {
// checks if V's name start with "zero_value"
return V->getName().find(LLVMZeroValueInternalName) !=
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
bool isLLVMZeroValue(const llvm::Value *V) const {
if (V && V->hasName()) {
// checks if V's name start with "zero_value"
return V->getName().find(LLVMZeroValueInternalName) !=
bool isLLVMZeroValue(const llvm::Value *V) const {
return V == getInstance();
}

Comment thread include/phasar/PhasarLLVM/DataFlowSolver/IfdsIde/LLVMZeroValue.h
Comment thread lib/PhasarLLVM/ControlFlow/LLVMBasedICFG.cpp
Comment thread lib/PhasarLLVM/ControlFlow/LLVMBasedICFG.cpp
Comment thread lib/PhasarLLVM/ControlFlow/LLVMBasedICFG.cpp
Comment thread lib/PhasarLLVM/ControlFlow/LLVMBasedICFG.cpp Outdated
Comment thread lib/PhasarLLVM/ControlFlow/LLVMBasedICFG.cpp Outdated
@vulder vulder force-pushed the f-ClangTidyFixIDEXTaint branch from 493ed9c to 42f91ce Compare December 24, 2021 13:33
vulder and others added 2 commits December 24, 2021 14:43
…alysis/ComposeEdgeFunction.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…alysis/JoinEdgeFunction.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@pdschubert pdschubert merged commit e08348f into development Jan 4, 2022
@pdschubert pdschubert deleted the f-ClangTidyFixIDEXTaint branch January 4, 2022 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants