aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/CXComment.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libclang/CXComment.h')
-rw-r--r--tools/libclang/CXComment.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libclang/CXComment.h b/tools/libclang/CXComment.h
index 1e2561d585ea..d9d2bdef4127 100644
--- a/tools/libclang/CXComment.h
+++ b/tools/libclang/CXComment.h
@@ -16,6 +16,7 @@
#include "CXTranslationUnit.h"
#include "clang-c/Index.h"
+#include "clang-c/Documentation.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Comment.h"
#include "clang/Frontend/ASTUnit.h"
@@ -43,7 +44,7 @@ template<typename T>
static inline const T *getASTNodeAs(CXComment CXC) {
const comments::Comment *C = getASTNode(CXC);
if (!C)
- return NULL;
+ return nullptr;
return dyn_cast<T>(C);
}