Skip to content

Commit a83daa6

Browse files
Cite new issue #741 re unnecessary initializers for global variables.
1 parent 0bbfe7f commit a83daa6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/3C/DeclRewriter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,8 @@ void DeclRewriter::doDeclRewrite(SourceRange &SR, DeclReplacement *N) {
468468
// stdlib_checked.h is included
469469
// TODO: Centralize initialization logic for all types:
470470
// https://github.com/correctcomputation/checkedc-clang/issues/645#issuecomment-876474200
471+
// TODO: Don't add unnecessary initializers to global variables:
472+
// https://github.com/correctcomputation/checkedc-clang/issues/741
471473
if (VD->getStorageClass() != StorageClass::SC_Extern) {
472474
const std::string NullPtrStr = "((void *)0)";
473475
if (isPointerType(VD)) {

0 commit comments

Comments
 (0)