antlr / antlr/antlr4

Enable compiling C++ with -Weffc++

Open
#2,186 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
19k
Forks
3.5k
PR merge metrics
No merged PRs in 30d

Description

If compiling generated C++ code with -Weffc++ errors are generated because there are no copy constructor and an assignment operator. Would be great if the generated C++ headers defined private copy constructor and an assignment operator so these errors are avoided.

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by locating the C++ target's generated-header templates and reproduce compilation with -Weffc++; done means generated C++ headers declare private copy-constructor and assignment-operator members so that compilation no longer reports these errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.