projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f7c328
)
Refactor: Simplify boolean expressions in libclang
author
Dmitri Gribenko
<gribozavr@gmail.com>
Mon, 23 Mar 2015 19:23:50 +0000
(19:23 +0000)
committer
Dmitri Gribenko
<gribozavr@gmail.com>
Mon, 23 Mar 2015 19:23:50 +0000
(19:23 +0000)
Simplify boolean expresions using true and false with clang-tidy.
Patch by Richard.
llvm-svn: 232996
clang/tools/libclang/CIndex.cpp
patch
|
blob
|
history
diff --git
a/clang/tools/libclang/CIndex.cpp
b/clang/tools/libclang/CIndex.cpp
index
0ce8672
..
b98cf5a
100644
(file)
--- a/
clang/tools/libclang/CIndex.cpp
+++ b/
clang/tools/libclang/CIndex.cpp
@@
-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: