Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • scripts
  • kernel-doc
Find file BlameHistoryPermalink
  • Horia Geanta's avatar
    scripts/kernel-doc: handle object-like macros · cbb4d3e6
    Horia Geanta authored Jul 12, 2014
    Object-like macros are different than function-like macros:
    https://gcc.gnu.org/onlinedocs/cpp/Object-like-Macros.html
    https://gcc.gnu.org/onlinedocs/cpp/Function-like-Macros.html
    
    
    
    They are not parsed correctly, generating invalid intermediate
    files (xmls) for cases like:
        #define BIT_MASK    (0xFF << BIT_SHIFT)
    where "OxFF <<" is considered to be parameter type.
    
    When parsing, we can differentiate beween these two types of macros by
    checking whether there is at least one whitespace b/w "#define" and
    first opening parenthesis.
    
    Signed-off-by: default avatarHoria Geanta <horia.geanta@freescale.com>
    Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    cbb4d3e6
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7