aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2025-05-13 10:59:55 -0400
committerGitHub <noreply@github.com>2025-05-13 10:59:55 -0400
commite3f87e15910a5f1c5552fc3ef57e7dda3f68901a (patch)
treec1dfcdc3eaa80162ca992e51ceaf03338d368ce0 /clang/lib/CodeGen/CodeGenModule.cpp
parent936481fdf5b0ab214e381aa96a151ec33348cfca (diff)
downloadllvm-e3f87e15910a5f1c5552fc3ef57e7dda3f68901a.zip
llvm-e3f87e15910a5f1c5552fc3ef57e7dda3f68901a.tar.gz
llvm-e3f87e15910a5f1c5552fc3ef57e7dda3f68901a.tar.bz2
[C] Fix a false-positive with tentative defn compat (#139738)
C++ has a carve-out that makes a declaration with 'extern' explicitly specified and no initializer be a declaration rather than a definition. We now account for that to silence a diagnostic with: ``` extern const int i; const int i = 12; ``` which is valid C++. Addresses an issue that was brought up via post-commit review.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions