Skip to content

Commit

Permalink
Cite new issue #741 re unnecessary initializers for global variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmccutchen-cci committed Nov 16, 2021
1 parent 0bbfe7f commit a83daa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang/lib/3C/DeclRewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@ void DeclRewriter::doDeclRewrite(SourceRange &SR, DeclReplacement *N) {
// stdlib_checked.h is included
// TODO: Centralize initialization logic for all types:
// https://github.com/correctcomputation/checkedc-clang/issues/645#issuecomment-876474200
// TODO: Don't add unnecessary initializers to global variables:
// https://github.com/correctcomputation/checkedc-clang/issues/741
if (VD->getStorageClass() != StorageClass::SC_Extern) {
const std::string NullPtrStr = "((void *)0)";
if (isPointerType(VD)) {
Expand Down

0 comments on commit a83daa6

Please sign in to comment.