[PATCH] Fix segfault in hasDeclContext for nodes that have no decl context.
Samuel Benzaquen
sbenza at google.com
Mon Oct 27 13:40:21 PDT 2014
Hi klimek,
Some declarations do not have a declaration context, like TranslationUnitDecl.
Fix hasDeclContext() to not segfault on these nodes.
http://reviews.llvm.org/D6003
Files:
include/clang/ASTMatchers/ASTMatchers.h
unittests/ASTMatchers/ASTMatchersTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6003.15498.patch
Type: text/x-patch
Size: 1273 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141027/ec28ba0b/attachment.bin>
More information about the cfe-commits
mailing list