]> granicus.if.org Git - clang/commit
[clang-format/ObjC] Fix counting selector name parts for ObjC
authorJacek Olesiak <jolesiak@google.com>
Mon, 9 Jul 2018 05:58:51 +0000 (05:58 +0000)
committerJacek Olesiak <jolesiak@google.com>
Mon, 9 Jul 2018 05:58:51 +0000 (05:58 +0000)
commitd3e19c829cf4adba7dacf8a93791104797626e3b
tree6aa7ed26b74ed77315fc70b96db74647a09ad492
parent1d7e46ba487d09f5a899ede8466831e1fdea8a6c
[clang-format/ObjC] Fix counting selector name parts for ObjC

Summary:
Counts selector parts also for method declarations and counts correctly for methods without arguments.
This is an internal change and doesn't influence formatting on its own (at the current state). Its lack would be visible after applying D48719.

Reviewers: benhamilton, klimek

Reviewed By: benhamilton

Subscribers: acoomans, cfe-commits

Differential Revision: https://reviews.llvm.org/D48716

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336518 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp