diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2017-09-22 19:07:37 +0000 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2017-09-22 19:07:37 +0000 |
commit | 4e7a6fef81b4bfd8842dec76f5179958d65ff087 (patch) | |
tree | ad4e2878facd2c2248721721a7d60c74ed71c4d1 /clang/test/Index/complete-with-annotations.cpp | |
parent | 3edda87c428236e263b872888e757b1f778878a4 (diff) | |
download | bcm5719-llvm-4e7a6fef81b4bfd8842dec76f5179958d65ff087.tar.gz bcm5719-llvm-4e7a6fef81b4bfd8842dec76f5179958d65ff087.zip |
Set completion priority of destructors and operators to CCP_Unlikely.
Summary:
It will move destructors and operators to the end of completion list.
Destructors and operators are currently very high on the completion
list, as they have the same priority as member functions. However,
they are clearly not something users usually choose in completion
lists.
Reviewers: arphaman, erikjv, bkramer, krasimir
Reviewed By: arphaman
Subscribers: eraman, klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D38081
llvm-svn: 314019
Diffstat (limited to 'clang/test/Index/complete-with-annotations.cpp')
-rw-r--r-- | clang/test/Index/complete-with-annotations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Index/complete-with-annotations.cpp b/clang/test/Index/complete-with-annotations.cpp index afa8d9ed660..7bad8f1b7cb 100644 --- a/clang/test/Index/complete-with-annotations.cpp +++ b/clang/test/Index/complete-with-annotations.cpp @@ -17,7 +17,7 @@ void X::doSomething() { // CHECK: FieldDecl:{ResultType int}{TypedText field} (35) ("three", "two", "one") // CHECK: CXXMethod:{ResultType void}{TypedText func2}{LeftParen (}{RightParen )} (34) ("some annotation") // CHECK: FieldDecl:{ResultType int}{TypedText member2} (35) ("another annotation", "some annotation") -// CHECK: CXXMethod:{ResultType X &}{TypedText operator=}{LeftParen (}{Placeholder const X &}{RightParen )} (34) +// CHECK: CXXMethod:{ResultType X &}{TypedText operator=}{LeftParen (}{Placeholder const X &}{RightParen )} (79) // CHECK: ClassDecl:{TypedText X}{Text ::} (75) -// CHECK: CXXDestructor:{ResultType void}{TypedText ~X}{LeftParen (}{RightParen )} (34) +// CHECK: CXXDestructor:{ResultType void}{TypedText ~X}{LeftParen (}{RightParen )} (79) |