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. Public keyword parsing in C source files
Forum Updated to NodeBB v4.3 + New Features

Public keyword parsing in C source files

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 759 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    mogrodnik
    wrote on 22 Sept 2014, 07:25 last edited by
    #1

    I have a bigger project with some C code in it. There are some structures with C++ keyword public (yes, I know, I did NOT write this code) e.g.
    @
    typedef struct foo
    {
    int public;
    float b;
    } foo_t;
    @
    I understand that parser have problems with that in header files, but everything is red also in .c files where this is completly legal code. Of course completion doesn't work at all. Does anybody know some workaroud for that?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 22 Sept 2014, 07:35 last edited by
      #2

      Try using the clang code model plugin (Qt Creator -> About -> Plugins).

      (Z(:^

      1 Reply Last reply
      0

      1/2

      22 Sept 2014, 07:25

      • Login

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