Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F Frama Clang
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • Frama Clang
  • Merge requests
  • !6

Update type_traits (integral_constant): template specialization where type T is bool

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged T-Gruber requested to merge T-Gruber/frama-clang:fix/integral_constant into master Mar 18, 2022
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

The goal is to fix the issue Incorrect representation of std::true_type::value after C++-C translation.

Static constant data members are represented correctly in the intermediate result (after the C++-C translation) as long as their type is not of type T (template parameter type). Within the type_traits header the integral_constant class or its specializations true_type & false_type are frequently used. To be able to analyze these correctly, a template specialization for the type bool has been implemented. This specialization ensures that the data member value is represented correctly in the intermediate result.

Edited Mar 18, 2022 by T-Gruber
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix/integral_constant