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 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
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

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

      (Z(:^

      1 Reply Last reply
      0

      • Login

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