User forums > Nightly builds

The 25 september 2010 build (6634) CODECOMPLETION BRANCH version is out.

<< < (23/24) > >>

Loaden:

--- Quote from: killerbot on October 13, 2010, 10:45:35 am ---One thing up for debate. You say local files don't show up in the list unless they are part of the project. Agreed, but when that directory is however added as an include directory, they should appear.
So in my case I added the directory where main.cpp resides as include directory, but the local, not part of the project, bar.h : doesn't show up. I would think it should ?

--- End quote ---


--- Quote ---wxArrayString& CodeCompletion::GetSystemIncludeDirs(Parser* parser, bool force)
{
    static Parser* lastParser = NULL;
    static wxArrayString incDirs;

    if ((!parser || !force) && parser == lastParser)
        return incDirs;
    else
    {
        incDirs.Clear();
        lastParser = parser;
    }

    cbProject* project = m_NativeParser.GetProjectByParser(parser);
    wxString prjPath;
    if (project)
        prjPath = project->GetCommonTopLevelPath();

    incDirs = parser->GetIncludeDirs();
    for (size_t i = 0; i < incDirs.GetCount();)
    {
        if (incDirs.Last() != wxFILE_SEP_PATH)
            incDirs.Append(wxFILE_SEP_PATH);
        if (project && incDirs.StartsWith(prjPath))
            incDirs.RemoveAt(i);
        else
            ++i;
    }

    return incDirs;
}
--- End quote ---
It seems can not have both! :(

If you comment two lines of code, we can solve your question.

--- Code: ---        if (project && incDirs[i].StartsWith(prjPath))
            incDirs.RemoveAt(i);
--- End code ---
However, this will produce more side effects.

Borr:
CC not show std::towlower
note: CC show std::tolower

ollydbg:

--- Quote from: Borr on October 14, 2010, 04:23:47 pm ---CC not show std::towlower
note: CC show std::tolower

--- End quote ---
hi,can you show the minimal sample code? also the steps to produce the bug.

thx.

MortenMacFly:

--- Quote from: Borr on October 14, 2010, 04:23:47 pm ---CC not show std::towlower
note: CC show std::tolower

--- End quote ---
Are you kidding??? Does it show or not show std::tolower ???

stahta01:

--- Quote from: MortenMacFly on October 14, 2010, 09:11:20 pm ---
--- Quote from: Borr on October 14, 2010, 04:23:47 pm ---CC not show std::towlower
note: CC show std::tolower

--- End quote ---
Are you kidding??? Does it show or not show std::tolower ???

--- End quote ---

Notice the w in one of them, I think wide char version.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version