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

No C code highlighting in C-projects and files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: Qt Creator 3.5.1
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      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

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              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