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

        Issue Links

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

          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