Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.
This repository was archived by the owner on May 6, 2026. It is now read-only.

BUG: etime.h never included, with filename macro #122

Description

@fiveseven-lambda

My project has a file named etime.h. When the 'Macro Type' is set to 'Filename', this file is never included, because the auto-generated include guard is named ETIME.

The following code reproduces the bug:

main.cpp

#include <iostream>
#include "etime.h"

int main(){
    greet();
}

etime.h

#ifndef ETIME
#define ETIME

int greet(){
    std::cout << "hello" << std::endl;
}

#endif /* ETIME */

Expected behavior: If the filename begins with e, avoid the macro name beginning with E by a digit or an uppercase letter (say, by inserting _ after E).

I'm using Arch Linux and gcc (GCC) 13.2.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions