aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMariya Podchishchaeva <mariya.podchishchaeva@intel.com>2025-07-08 09:34:13 +0200
committerGitHub <noreply@github.com>2025-07-08 09:34:13 +0200
commit28375572f6679b659bb2e8a6535b4b2101b4410e (patch)
tree61cbdb5180a3f3d17a3c354ea4406cbc0242bb7f /clang/lib/CodeGen/CodeGenModule.cpp
parent6d14483912807072d35714538ae41123686d7abd (diff)
downloadllvm-28375572f6679b659bb2e8a6535b4b2101b4410e.zip
llvm-28375572f6679b659bb2e8a6535b4b2101b4410e.tar.gz
llvm-28375572f6679b659bb2e8a6535b4b2101b4410e.tar.bz2
[win][clang] Do not inject static_assert macro definition (#147030)
In ms-compatibility mode we inject static_assert macro definition if assert macro is defined. This is done by 8da090381d567d0ec555840f6b2a651d2997e4b3 for the sake of better diagnosing, in particular to emit a compatibility warning when static_assert keyword is used without inclusion of <assert.h>. Unfortunately it doesn't do a good job in c99 mode adding that macro unexpectedly for the users, so this patch removes macro injection and the diagnostics. --------- Co-authored-by: Corentin Jabot <corentinjabot@gmail.com>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions