aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-06-16 00:46:02 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-06-16 00:46:02 +0000
commit33b4bfcef5385c39d8dab6181d53fcadc74756bf (patch)
tree4467b2ef79aa1a9f499c3c6f5bbf378964f010f8 /clang/lib/Basic/SourceManager.cpp
parent52de271da1d56fe80e924bb57659de96e06246fd (diff)
downloadllvm-33b4bfcef5385c39d8dab6181d53fcadc74756bf.zip
llvm-33b4bfcef5385c39d8dab6181d53fcadc74756bf.tar.gz
llvm-33b4bfcef5385c39d8dab6181d53fcadc74756bf.tar.bz2
[AST/libclang] Fix the selector locations that are reported for a
method definition that has its '{' attached to the method name without a space. With a method like: -(id)meth{ ..... } the logic in ObjCMethodDecl that determined the selector locations got confused because it was initialized based on an end location for '{' but that end location changed to '}' after the method was finished. Fix this by having an immutable end location for the declarator and for getLocEnd() get the end location from the body itself. Fixes rdar://11659739. llvm-svn: 158583
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions