-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Capturing of return types in FunctionSymbol
FunctionSymbols can now deal with: - pointers - references - const specifiers
- Loading branch information
1 parent
f662fc5
commit f76298d
Showing
4 changed files
with
111 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
using namespace std; | ||
|
||
void *freePtr(); | ||
void *freePtrImpl() { return nullptr; } | ||
|
||
const std::string &freeReference(); | ||
const std::string &freeReferenceImpl() { | ||
return ""; | ||
} | ||
|
||
const class T *const freeConstPtr(); | ||
const class T *const freeConstPtrImpl() { return nullptr; } | ||
|
||
class MyClass { | ||
MyClass() = default(); | ||
~MyClass() = default(); | ||
|
||
void *memberPtr(); | ||
const string& memberReference(); | ||
const class T* const memberConstPtr(); | ||
}; | ||
|
||
void*MyClass::memberPtrImpl() { | ||
return nullptr; | ||
} | ||
|
||
const std::string& MyClass::memberReferenceImpl() { | ||
return m_thing; | ||
} | ||
|
||
const | ||
class | ||
T | ||
* | ||
const | ||
MyClass::memberConstPtrImpl() { | ||
return nullptr; | ||
} | ||
|
||
MyClassImpl::MyClassImpl() | ||
{ | ||
} | ||
|
||
MyClassImpl::~MyClassImpl() | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters