diff options
author | Anna Zaks <ganna@apple.com> | 2011-07-21 00:34:39 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-07-21 00:34:39 +0000 |
commit | ffe9edd45f26873d58e7ddf79d403dd8072b748b (patch) | |
tree | b0e9055a7d9b0034fa6767dde07a9a9c461a5e97 /include/clang/Sema/Overload.h | |
parent | 40af63b91c15f3cdca5c896441123dc900e92e31 (diff) |
Addressing code review comments for commit 135509 - Add FixItHints in case a C++ function call is missing * or & operators on
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/Overload.h')
-rw-r--r-- | include/clang/Sema/Overload.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/clang/Sema/Overload.h b/include/clang/Sema/Overload.h index b3948c3de0..4f3d3e8f6f 100644 --- a/include/clang/Sema/Overload.h +++ b/include/clang/Sema/Overload.h @@ -531,7 +531,9 @@ namespace clang { enum OverloadFixItKind { OFIK_Undefined = 0, OFIK_Dereference, - OFIK_TakeAddress + OFIK_TakeAddress, + OFIK_RemoveDereference, + OFIK_RemoveTakeAddress }; /// OverloadCandidate - A single candidate in an overload set (C++ 13.3). @@ -565,7 +567,7 @@ namespace clang { /// The FixIt hints which can be used to fix the Bad candidate. struct FixInfo { /// The list of Hints (all have to be applied). - SmallVector<FixItHint, 4> Hints; + SmallVector<FixItHint, 1> Hints; /// The number of Conversions fixed. This can be different from the size /// of the Hints vector since we allow multiple FixIts per conversion. |