diff options
author | Michael Liao <michael.hliao@gmail.com> | 2019-10-10 03:14:51 +0000 |
---|---|---|
committer | Michael Liao <michael.hliao@gmail.com> | 2019-10-10 03:14:51 +0000 |
commit | c9b0a7a79ad699210ce6b375a34963f06ff7e167 (patch) | |
tree | 6fbc889c8f72a555670a90f245a12bdb94286cd6 /include/clang | |
parent | c7e637b329eacf8dcd270b8d4fd9f429b72aa3f8 (diff) | |
download | clang-c9b0a7a79ad699210ce6b375a34963f06ff7e167.tar.gz |
[sema] Revise `getCurrentMangleNumberContext` interface. NFC.
- Prefer returning mulitple values using a tuple instead of
additional pointers/references.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/Sema/Sema.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 1cc6fc67bc..de7211437e 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -57,6 +57,7 @@ #include <deque> #include <memory> #include <string> +#include <tuple> #include <vector> namespace llvm { @@ -1092,15 +1093,12 @@ public: void WarnOnPendingNoDerefs(ExpressionEvaluationContextRecord &Rec); /// Compute the mangling number context for a lambda expression or - /// block literal. + /// block literal. Also return the extra mangling decl if any. /// /// \param DC - The DeclContext containing the lambda expression or /// block literal. - /// \param[out] ManglingContextDecl - Returns the ManglingContextDecl - /// associated with the context, if relevant. - MangleNumberingContext *getCurrentMangleNumberContext( - const DeclContext *DC, - Decl *&ManglingContextDecl); + std::tuple<MangleNumberingContext *, Decl *> + getCurrentMangleNumberContext(const DeclContext *DC); /// SpecialMemberOverloadResult - The overloading result for a special member |