]> granicus.if.org Git - clang/commit
Record correct source range for defaulted/deleted members.
authorEli Bendersky <eliben@google.com>
Mon, 23 Mar 2015 21:43:28 +0000 (21:43 +0000)
committerEli Bendersky <eliben@google.com>
Mon, 23 Mar 2015 21:43:28 +0000 (21:43 +0000)
commit6ad2072125e9fdac5a59db424b093087b1518323
tree0ccfc78d31f8a9fef3fea6847314338a003dbea5
parent8cf0acf40295a77dc6c5d0b1982a6ac20411cb56
Record correct source range for defaulted/deleted members.

Fixes https://llvm.org/bugs/show_bug.cgi?id=20744

struct A {

A() = default;
};

Previously the source range of the declaration of A ended at the ')'. It should
include the '= default' part as well. The same for '= delete'.

Note: this will break one of the clang-tidy fixers, which is going to be
addessed in a follow-up patch.

Differential Revision: http://reviews.llvm.org/D8465

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233028 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseCXXInlineMethods.cpp
test/Analysis/inlining/path-notes.cpp
test/Misc/ast-dump-decl.cpp
unittests/AST/SourceLocationTest.cpp