Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-18004

No C code highlighting in C-projects and files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • Qt Creator 3.5.1
    • C/C++/Obj-C++ Support
    • None
    • linux, ubuntu 16.04

    Description

      When I edit C project in QtCreator it still uses c++ code highlighting.
      Even when I create project via New-Other-Non-Qt-Plain C application.

      The macro __cplusplus is defined, words bool, virtual, template, namespace etc are highlighted as keywords, which brakes syntax. In every C file, despite the project kind.

      No matter if I choose clang code model, it still uses c++ code rules.

      QtCreator 3.5.1 (from Ubuntu 16.04 repo), Qt 5.5.1

      Attachments

        1. QtCreator-patched.png
          100 kB
          André Hartmann
        2. Screenshot - 11.04.2017 - 07-46-34.png
          15 kB
          Alex Cones
        3. Screenshot from 2017-04-11 00-04-05.png
          123 kB
          Anton Maklakov
        4. Снимок экрана_2017-04-10_18-44-09.png
          28 kB
          Alex Cones

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-18004
          # Subject Branch Project Status CR V

          Activity

            People

              kosjar Nikolai Kosjar
              sophos Alex Cones
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes