Fix method signature

This commit is contained in:
Carsten Larsen 2017-01-09 20:59:54 +01:00
parent 65f9d88562
commit cbb6c747f6
2 changed files with 4 additions and 4 deletions

View File

@ -54,11 +54,11 @@ public:
/**
* @brief Parses the input into a syntax tree.
*
* @return SyntaxNode* representing an pointer to the top node of the tree.
* @return SyntaxNode* representing a pointer to the top node of the tree.
* Notice: The caller is responsible for releasing memory.
*
*/
SyntaxNode* Parse();
SyntaxNode* Parse(); // Clang ns_returns_retained
private:
Lexer *lexer;

View File

@ -163,11 +163,11 @@ inline void operator delete[] (void* ptr) {
#ifdef __cplusplus
#if (__GNUC__ > 2) || defined (_WIN32)
#include <new>
inline void* operator new (size_t size) throw() {
inline void* operator new (size_t size) throw(std::bad_alloc) {
return AllocMemSafe(size);
}
inline void* operator new[] (size_t size) throw() {
inline void* operator new[] (size_t size) throw(std::bad_alloc) {
return AllocMemSafe(size);
}