[PATCH] D15469: Expose cxx constructor and method properties through libclang and python bindings.
Jonathan B Coe via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 17 03:37:25 PDT 2016
jbcoe added a comment.
If I remove `= delete` from the declaration of the member function `foo` in test/Index/index-file.cpp line 36 then `foo` is reported in the output as
[indexDeclaration]: kind: c++-instance-method | name: foo | USR: c:@S at B@F at foo# | lang: C++ | cursor: CXXMethod=foo:36:8 | loc: 36:8 | semantic-container: [B:27:7] | lexical-container: [B:27:7] | isRedecl: 0 | isDef: 0 | isContainer: 0 | isImplicit: 0
with `=delete` in place, `foo` is not reported at all.
This is a behaviour change since I wrote this patch. I'm not sure what the correct behaviour should be. I can update the test and not check for the deleted function `foo` when we are confident that behaviour is correct.
The changed behaviour (not reporting deleted functions) is not part of my patch.
http://reviews.llvm.org/D15469
More information about the cfe-commits
mailing list