New issue
Advanced search Search tips

Issue 695980 link

Starred by 2 users

Issue metadata

Status: Started
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

clang plugin shouldn't emit constructor warning for trivial constructors

Project Member Reported by dcheng@chromium.org, Feb 24 2017

Issue description

Requiring a constructor/destructor is problematic when we want to use these as global variables.
 

Comment 1 by dcheng@chromium.org, Feb 28 2017

Note: after looking into the problem more, it turns out the struct in question wasn't actually a POD, due to in-class member initializers. We may still want to tweak the plugin to ignore trivial constructors, as a trivial constructor (by definition) does no work.

Comment 2 by dcheng@chromium.org, Feb 28 2017

Summary: clang plugin shouldn't emit constructor warning for trivial constructors (was: clang plugin shouldn't require constructor/destructor for PODs)

Sign in to add a comment