forked from OSchip/llvm-project
Refactor: Simplify boolean expressions in libclang
Simplify boolean expresions using true and false with clang-tidy. Patch by Richard. llvm-svn: 232996
This commit is contained in:
parent
1f7c328bf2
commit
e5423a766b
|
@ -1718,7 +1718,7 @@ public:
|
|||
return VJ->getKind() == DeclVisitKind;
|
||||
}
|
||||
const Decl *get() const { return static_cast<const Decl *>(data[0]); }
|
||||
bool isFirst() const { return data[1] ? true : false; }
|
||||
bool isFirst() const { return data[1] != nullptr; }
|
||||
};
|
||||
class TypeLocVisit : public VisitorJob {
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue