Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: ollydbg on May 29, 2011, 06:56:25 AM

Title: cc code refine
Post by: ollydbg on May 29, 2011, 06:56:25 AM
When reviewing the cc's code, I think these can be refined.

1, in parser.cpp line 539

       if (!m_IsPriority)
       {
           TRACE(_T("Parse() : Parallel Parsing %s"), bufferOrFilename.wx_str());

           // Add a task for all project files
           if (m_IsFirstBatch)
           {
               m_IsFirstBatch = false;
               m_PoolTask.push(PTVector());
           }

           if (m_IsParsing)
               m_Pool.AddTask(thread, true);
           else
               m_PoolTask.back().push_back(thread);
       }
       else if (m_IsPriority)


m_IsPriority is a bool variable.

2, in tokenizer.h line 470

bool                 m_IsOperator;

this variable is not used any more.
Title: Re: cc code refine
Post by: oBFusCATed on May 29, 2011, 08:38:23 AM
Please provide a patch which removes it, so people can test it:)
Title: Re: cc code refine
Post by: Loaden on May 29, 2011, 09:34:28 AM
Done!  :D
Title: Re: cc code refine
Post by: ollydbg on May 29, 2011, 01:15:25 PM
Quote from: Loaden on May 29, 2011, 09:34:28 AM
Done!  :D
thank you loaden!!