Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator Parse Context always Obj-C instead of C++
Forum Updated to NodeBB v4.3 + New Features

Qt Creator Parse Context always Obj-C instead of C++

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 1.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    silau
    wrote on 9 Jul 2018, 14:43 last edited by silau 7 Sept 2018, 14:44
    #1

    Hello,

    everytime I open a C++ file, it is recognized as Obj-C. This is really annoying, because it bloats my windows with semantic issues.

    Is there a way to prevent Qt Creator to parse Obj-C or generally disable Obj-C?

    I am using QtCreator 4.6.0.

    Thanks

    A 1 Reply Last reply 9 Jul 2018, 15:49
    0
    • S silau
      9 Jul 2018, 14:43

      Hello,

      everytime I open a C++ file, it is recognized as Obj-C. This is really annoying, because it bloats my windows with semantic issues.

      Is there a way to prevent Qt Creator to parse Obj-C or generally disable Obj-C?

      I am using QtCreator 4.6.0.

      Thanks

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 9 Jul 2018, 15:49 last edited by
      #2

      @silau

      • Which platform are you on (Mac?!)
      • Which project type are you using?
      • Which extension does your C++ file have?
      • Have you enabled the Clang Code Model? (Help > Plugins > Clang Code Model)?

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        silau
        wrote on 9 Jul 2018, 15:55 last edited by silau 7 Sept 2018, 15:57
        #3

        I am using Ubuntu 16.04 with an Existing Project (Makefile). The C++ file is a .cpp file. And yes, I have enabled the Clang Code Model and I am using clang-tidy. Obviously, the clang code model resets the parse context when I change the file.

        Thanks

        A 1 Reply Last reply 9 Jul 2018, 15:58
        0
        • S silau
          9 Jul 2018, 15:55

          I am using Ubuntu 16.04 with an Existing Project (Makefile). The C++ file is a .cpp file. And yes, I have enabled the Clang Code Model and I am using clang-tidy. Obviously, the clang code model resets the parse context when I change the file.

          Thanks

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 9 Jul 2018, 15:58 last edited by
          #4

          Hi @silau,

          Interesting. I have nearly the opposite problem (C files treated as C++): QTCREATORBUG-20039 You can join me there, it seems there is really a bug :)

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          0

          1/4

          9 Jul 2018, 14:43

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved