Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C CodeChecker
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • IU7-Projects
  • CodeChecker
  • Issues
  • #25
Closed
Open
Issue created Dec 30, 2021 by Romanov Alexey@mRrvzContributor

кодчекер ожидает, что enum'ы будут is_lower

#include <stdio.h>
#define MACRO 128

enum
{
    ENUM_MACRO = 129, 
};

int main() 
{
    int abcdef = 23;
    printf("%d %d %d %d", ENUM_MACRO, MACRO, 458, abcef);
    return 0;
}
main.c(6,5): Incorrect lexema's first symbol register (is upper, but expected is lower)
main.c(6,5): Incorrect register of lexema, (upper, but expected lower)
main.c(12,27): Incorrect lexema's first symbol register (is upper, but expected is lower)
main.c(12,27): Incorrect register of lexema, (upper, but expected lower)

https://www.kernel.org/doc/html/v4.10/process/coding-style.html#macros-enums-and-rtl

Edited Dec 30, 2021 by Romanov Alexey
Assignee
Assign to
Time tracking