Refactorization: Reduced stack usage of givenACodeSampleToTokenize
Merged from LCppC.
This commit is contained in:
parent
4678a9cb45
commit
acafdb655c
|
@ -16,10 +16,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include "testutils.h"
|
||||
#include "testsuite.h"
|
||||
#include "utils.h"
|
||||
|
||||
const Settings givenACodeSampleToTokenize::settings;
|
||||
|
||||
class TestUtils : public TestFixture {
|
||||
public:
|
||||
TestUtils() : TestFixture("TestUtils") {
|
||||
|
|
|
@ -26,8 +26,8 @@ class Token;
|
|||
|
||||
class givenACodeSampleToTokenize {
|
||||
private:
|
||||
Settings settings;
|
||||
Tokenizer tokenizer;
|
||||
static const Settings settings;
|
||||
|
||||
public:
|
||||
explicit givenACodeSampleToTokenize(const char sample[], bool createOnly = false, bool cpp = true)
|
||||
|
|
Loading…
Reference in New Issue