Menu

#237 CC will not show all members in the namespace std

Undefined
open
nobody
Bug_Report
2015-11-12
2015-10-15
NearTox
No

This bug happens when the namespace std is not imported from the working area

#include <string>
///using namespace std;
int main() {
    std:: //< code completion will not show all members
}

Discussion

  • Teodor Petrov

    Teodor Petrov - 2015-10-15

    Let start with: what version and os are you using?

     
    • NearTox

      NearTox - 2015-10-15

      in the latest svn build 10528

       
  • Teodor Petrov

    Teodor Petrov - 2015-10-15

    OS, compiler? We cannot guess these things.

     
    • NearTox

      NearTox - 2015-10-15

      I'm on Windows, TDM-GCC 5.1

       
  • ollydbg

    ollydbg - 2015-10-19

    code completion will not show all members

    So, what is excat bug? It shows many members in my test environment.
    In you case, it shows nothing?

     
  • NearTox

    NearTox - 2015-10-19

    In my case not shows std::string, std::wstring, std::vector, std::queue, etc.
    In addition, I see this bug after the build 10320(I not remember with precision).

    #include <iostream>
    #include <string>
    #include <vector>
    #include <queue>
    #include <iostream>
    #include <string>
    #include <vector>
    #include <queue>
    //using namespace std;
    int main() {
        std::string _string;
        std::wstring _wstring;
        std::vector _vector;
        std::queue _queue;
        _string.leng; ///< not show members as length()
    
        string _string2;
        wstring _wstring2;
        vector _vector2;
        queue _queue2;
        _string2.leng; ///< but here yes
        return 0;
    }
    
     

    Last edit: NearTox 2015-10-19
  • NearTox

    NearTox - 2015-11-12

    Ok, it bug relationated by the missed of:
    Code completion -> Replacement tokens
    In latest Nightly Builds(Up of the build 10320)

     

    Last edit: NearTox 2015-11-12
    • ollydbg

      ollydbg - 2015-11-12

      Ok, it bug relationated by the missed of:
      Code completion -> Replacement tokens
      In latest Nightly Builds(Up of the build 10320)

      What does the above means? Sorry I can't understand.
      About the test.cpp, I don't understand the comments like:
      test_zone = 123456; ///< In the code completion are visible as test_zone
      Do you mean, if using_namespace_std is defined, then test_zone should be auto suggested.
      On the other hind, if using_namespace_std is not defined, then std::test_zone should be auto suggested?

       
      • NearTox

        NearTox - 2015-11-12

        I mean that CC not suggest std::test_zone as member of the namespace std (it the same case for std::string, std::wstring, etc.).
        When using_namespace_std is defined the users not look that CC have a problem parsing with the namespace std.
        In others words, CC not parsing correctly when is used preprocessor(see the attachments for examples, tested in build 10528):
        (Sorry if my translation is confusing or is erroneous)

         

        Last edit: NearTox 2015-11-12

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.