Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Datatype parser for C++ [modified]

Datatype parser for C++ [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
c++comquestion
3 Posts 2 Posters 0 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.
  • N Offline
    N Offline
    Nishad S
    wrote on last edited by
    #1

    Does anybody know any tool that can be used to identify data types used in files? I need to search and list out all the data types (primitive, MFC, STL data types) used as class members, function parameters, etc., in a large volume of c++ files (need to consider the header files only).

    - NS - [ODBaseBtn]

    modified on Friday, December 12, 2008 4:47 AM

    G 1 Reply Last reply
    0
    • N Nishad S

      Does anybody know any tool that can be used to identify data types used in files? I need to search and list out all the data types (primitive, MFC, STL data types) used as class members, function parameters, etc., in a large volume of c++ files (need to consider the header files only).

      - NS - [ODBaseBtn]

      modified on Friday, December 12, 2008 4:47 AM

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      my initial thought would be along the lines of find a parser & grammar for c++, generate a parse-tree and walk that looking for the declarations you need ... [edit] its not an easy thing you ask .. this is one way http://www.devincook.com/goldparser/[^] alternatively, I guess you can do a brute force match against an array of key-words representing what you'd like to identify, eg {"map","vector","int","string"...} there was an article about this on cp somewhere It depends on context/what/how you will use the info 'g'

      N 1 Reply Last reply
      0
      • G Garth J Lancaster

        my initial thought would be along the lines of find a parser & grammar for c++, generate a parse-tree and walk that looking for the declarations you need ... [edit] its not an easy thing you ask .. this is one way http://www.devincook.com/goldparser/[^] alternatively, I guess you can do a brute force match against an array of key-words representing what you'd like to identify, eg {"map","vector","int","string"...} there was an article about this on cp somewhere It depends on context/what/how you will use the info 'g'

        N Offline
        N Offline
        Nishad S
        wrote on last edited by
        #3

        Thank you... I have some time constraint too... :(

        - NS - [ODBaseBtn]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups