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. Howto configure QTCreator's Clang backend to treat c as c++ files
Forum Updated to NodeBB v4.3 + New Features

Howto configure QTCreator's Clang backend to treat c as c++ files

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 253 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.
  • T Offline
    T Offline
    ThisIsEusch
    wrote on last edited by
    #1

    My application was originally written in C (it has been around for more than a decade). Additions are written in C++. Loading a .c file into the editor of QTCreator will give me lot's of annotations. I know I could change the extension to .cpp to solve this. However if I do so, I lose the version history of the given source file (I use Tortoise SVN for vesion control).

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @ThisIsEusch said in Howto configure QTCreator's Clang backend to treat c as c++ files:

      However if I do so, I lose the version history of the given source file (I use Tortoise SVN for vesion control).

      This is a wrong assumption. Renaming in svn will not kill the history.

      If you want that a compiler treat a file as c++ file, rename it to .cpp

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3

      • Login

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