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:
Dmitri Gribenko 2015-03-23 19:23:50 +00:00
parent 1f7c328bf2
commit e5423a766b
1 changed files with 1 additions and 1 deletions

View File

@ -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: