Skip to content
Snippets Groups Projects
Commit 0ef39435 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[cleanup] use proper C++-11 delete feature instead of assert(0)

parent 2f7ab104
No related branches found
No related tags found
No related merge requests found
...@@ -380,24 +380,9 @@ protected: ...@@ -380,24 +380,9 @@ protected:
void lexUsingClang(const clang::Sema* _sema, const std::string& input, clang::SourceLocation loc, std::list<clang::Token>& clangTokens); void lexUsingClang(const clang::Sema* _sema, const std::string& input, clang::SourceLocation loc, std::list<clang::Token>& clangTokens);
private: private:
//! copies a lexer, including its internal state
//! Lexer(const Lexer& source) = delete;
// Private because we have not implemented copying lexer state
Lexer(const Lexer& source)
: _currentToken(source._currentToken),
_context(source._context),
_extension(source._extension), _token(source._token),
_hasNewlineToken(source._hasNewlineToken),
_buffer(source._buffer),
_revised(source._revised),
_position(source._position),
_tokenLocation(source._tokenLocation),
_charLitKind(source._charLitKind),
_stateLexer(source._stateLexer),
_clangSema(source._clangSema),
_clangSourceLocation(source._clangSourceLocation),
_AcceptedUtf8Symbols()
{ assert(0); } // Not allowed to be used
public: public:
//! creates a lexer //! creates a lexer
Lexer(const clang::Sema* sema); Lexer(const clang::Sema* sema);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment